Math (math)

Trigonometric functions

acos

Return the arc cosine of x, in radians.

 

{ }
[{"paths":[],"data":{"math":"math","call":"math.acos","math.acos":"acos","uuid":"071651f79538c5be3173b651cc9bcb7e","args":{"x":0.5},"height":32,"width":120,"step":"get acos of 0.5","data_to_var":"acos","y":0,"x":0,"type":"library","maxpaths":1}}]

Example Response

{"acos":1.05}

asin

Return the arc sine of x, in radians.

 

{ }
[{"paths":[],"data":{"math":"math","call":"math.asin","math.asin":"asin","uuid":"071651f79538c5be3173b651cc9bcb7e","args":{"x":0.5},"height":32,"width":120,"step":"get asin of 0.5","data_to_var":"asin","y":0,"x":0,"type":"library","maxpaths":1}}]

Example Response

{"asin":0.52}

atan

Return the arc tangent of x, in radians.

 

{ }
[{"paths":[],"data":{"math":"math","call":"math.atan","math.atan":"atan","uuid":"071651f79538c5be3173b651cc9bcb7e","args":{"x":0.5},"height":32,"width":120,"step":"get atan of 0.5","data_to_var":"atan","y":0,"x":0,"type":"library","maxpaths":1}}]

Example Response

{"atan":0.46}

atan2

Return atan(y / x), in radians. The result is between -pi and pi. The vector in the plane from the origin to point (x, y) makes this angle with the positive X axis. The point of atan2() is that the signs of both inputs are known to it, so it can compute the correct quadrant for the angle. For example, atan(1) and atan2(1, 1) are both pi/4, but atan2(-1, -1) is -3*pi/4.

 

{ }
[{"paths":[],"data":{"math":"math","call":"math.atan2","math.atan2":"atan2","uuid":"071651f79538c5be3173b651cc9bcb7e","args":{"y":8,"x":4},"height":32,"width":120,"step":"get atan2","data_to_var":"atan2","y":0,"x":0,"type":"library","maxpaths":1}}]

Example Response

{"atan2":1.1071487177940904}

cos

Return the cosine of x radians.

 

{ }
[{"paths":[],"data":{"math":"math","call":"math.cos","math.cos":"cos","uuid":"071651f79538c5be3173b651cc9bcb7e","args":{"x":3},"height":32,"width":120,"step":"get cos of 3","data_to_var":"cos","y":0,"x":0,"type":"library","maxpaths":1}}]

Example Response

{"cos":-0.9899924966004454}

hypot

Return the Euclidean norm, sqrt(x*x + y*y). This is the length of the vector from the origin to point (x, y).

 

{ }
[{"paths":[],"data":{"math":"math","call":"math.hypot","math.hypot":"hypot","uuid":"071651f79538c5be3173b651cc9bcb7e","args":{"x":1,"y":1},"height":32,"width":120,"step":"get hypot","data_to_var":"hypot","y":0,"x":0,"type":"library","maxpaths":1}}]

Example Response

{"hypot":1.41}

sin

Return the sine of x radians.

 

{ }
[{"paths":[],"data":{"math":"math","call":"math.sin","math.sin":"sin","uuid":"071651f79538c5be3173b651cc9bcb7e","args":{"x":3},"height":32,"width":120,"step":"get sin of 3","data_to_var":"sin","y":0,"x":0,"type":"library","maxpaths":1}}]

Example Response

{"sin":0.1411200080598672}

tan

Return the tangent of x radians.

 

{ }
[{"paths":[],"data":{"math":"math","call":"math.tan","math.tan":"tan","uuid":"071651f79538c5be3173b651cc9bcb7e","args":{"x":90},"height":32,"width":120,"step":"get tan of 90","data_to_var":"tan","y":0,"x":0,"type":"library","maxpaths":1}}]

Example Response

{"tan":-1.995200412208242}