For those wishing to automate queries to this page, use the following format to return the value of a supported function "func" applied to value "x" and, as necessary, "y" where x equals 123.456 and y equals 3.21 and results are computed to an accuracy of "acc" digits where func equals "add" and acc equals 500 (for example):
http://www.markknowsnothing.com/cgi-bin/calculator.cgi?x=123.456&y=3.21&acc=500&func=add

Permited values for "func" are:
"add" results in x + y
"sub" results in x - y
"mul" results in x * y
"sqrt" results in sqrt(x)
"root" results in x ^ (1/y)
"log" results in log(x)
"exp" results in exp(x)
"sin" results in sin(x)
"cos" results in cos(x)
"tan" results in tan(x)
"sec" results in sec(x)
"csc" results in csc(x)
"cot" results in cot(x)
"asin" results in arcsin(x)
"acos" results in arccos(x)
"atan" results in arctan(x)
"sinh" results in hyperbolic sine of (x)
"cosh" results in hyperbolic cosine of (x)
"tanh" results in hyperbolic tangent of (x)
"asinh" results in inverse hyperbolic sine of (x)
"acosh" results in inverse hyperbolic cosine of (x)
"atanh" results in inverse hyperbolic tangent of (x)
"fact" results in x!
"comb" results in combinations of x things taken y at a time
"perm" results in permutations of x things taken y at a time
"isaprime" results in a test to see whether x is a prime number
"factor" results in an attempt to find the prime factors of x

Permitted values for "acc" are: 100, 200, 300, 400, 500, 600, 700, 800, 900, 1000, 1100, 1200, 1300, 1400, 1500, max

For trigonometric functions, the angle scale "ang" must also be specified. Use one of: deg, rad, grad

Thus, to compute the cosine of an angle x where x is given as 2.34 radians, to an accuracy of 400 digits, the URL would be: http://www.markknowsnothing.com/cgi-bin/calculator.cgi?x=2.34&acc=400&func=cos&ang=rad

Only one of any of these automated requests will be honored in any two-minute period.