Circle Calculater

This script make the nice environment of calculate circles for console of the developer tools.

이 스크립트를 설치하려면 Tampermonkey, Greasemonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey 또는 Userscripts와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 유저 스크립트 관리자 확장 프로그램이 필요합니다.

(이미 유저 스크립트 관리자가 설치되어 있습니다. 설치를 진행합니다!)

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

(이미 유저 스타일 관리자가 설치되어 있습니다. 설치를 진행합니다!)

// ==UserScript==
// @name Circle Calculater
// @description This script make the nice environment of calculate circles for console of the developer tools.
// @version 1.0.1
// @author Mike Michael
// @match http://*
// @match https://*
// @grant none
// @namespace https://github.com/Mike-Michael/
// @namespace https://greasyfork.org/en/users/311628/mike-michael/
// ==/UserScript==
'use strict'

var π = Math.PI;

let circleAreaCalculater = (rad) => {
    console.log(rad * rad * π);
};

// ↑ That function calculates area of the circle. ↑

let circumferentialLengthCalculater = (dia) => {
    console.log(dia * π);
};

// ↑ That function calculates circumferential length of the circle. ↑

circleAreaCalculater(3);

// ↑ That code calls the function and sent "3" to the argument of the function, so the circle radius is 3. please change the value of the argument for you want to calculate circle's radius. ↑

circumferentialLengthCalculater(6);

// ↑ That code calls the function and sent "6" to the argument of the function, so the circle diameter is 6. please change the value of the argument for you want to calculate circle's diameter. ↑