# Math

- area_circle [edit] v0.1
*Calculate the area of a circle.* - calculate_e [edit] v0.1
*Calculate the digits in the mathematical constant e, which can be represented as 1/0! + 1/1! + 1/2! + 1/3! + ...* - calculate_median [edit] v0.2
*Calculate the median (middle value) of a set of numbers.* - convert2base [edit] v0.1
*Convert number from base 10 to another base. Similar to the built in PHP function base_convert().* - degtorad [edit] v0.1
*Returns degrees converted to radians.* - derivative [edit] v0.3
*Take the derivative of a function.* - diceRoll [edit] v0.2
*Rolls a number of dice and returns the results of each roll as well as the total.* - draw_bezier [edit] v0.1
*Draw a Bezier curve specified by the four points p0, p1, p2, p3.* - draw_mandelbrot [edit] v0.1
*Draw the Mandelbrot set fractal. See http://en.wikipedia.org/wiki/Mandelbrot_set* - draw_sierpinski [edit] v0.5
*Draw a Sierpinski fractal triangle.* - equilateral_shape [edit] v0.2
*Draw a shape that has a number of equal-length sides.* - evaluate_equation [edit] v0.2
*Evaluate an equation. The values for variables must be passed in the values array.* - evaluate_for_x [edit] v0.3
*Evaluate an equation for x.* - even_number [edit] v0.1
*Return true if the number is even, false if odd. When run stand-alone, the handler is configured to return text saying whether it's even or odd.* - factorial [edit] v0.1
*Returns the factorial.* - gaussian_curve [edit] v0.1
*Plot the Gaussian function (a bell curve)* - gcd_euclid [edit] v0.1
*Find the greatest common divisor (also known as the greatest common factor or highest common factor) of two numbers using the Euclidean algorithm.* - hailstone [edit] v0.3
*Calculates a hailstone sequence. http://en.wikipedia.org/wiki/Collatz_conjecture* - lcm [edit] v0.1
*Find the least common multiple (a.k.a. lowest common multiple, smallest common multiple or lowest common denominator) of two numbers.* - list_prime [edit] v0.1
*returns a list of prime numbers*