Standard mathematical and trigonometric functions are accessed in Planarly via the Math namespace. They accept tables and single values as inputs. Any non-numeric input values will trigger an error. The returned value has the same dimensions as the input value.

Math.Exp(a)

Takes the exponent of all values in a.

Math.Pow(a, exp)

This function takes two single values, a table and a single exponent, or a single value and a table of exponents.

If a is a table, exp must be a single value and every value in a is raised to exp. The result is a table of the same dimensions as a

If exp is a table, a must be a single value. The result is a table with the same dimensions as exp with a raised to each value in exp. This is shown below.

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/95af5250-8fe9-49ce-a8a5-818eb21bd3df/Screenshot_2021-06-01_at_10.23.57.png

Math.Sin(a)

Calculate Sine value of a. The unit of a is radians and it must be a numeric type. Please refer to Sine definition in mathematics

Math.Cos(a)

Calculate Cos value of a. The unit of a is radians and it must be a numeric type. Please refer to Cos definition in mathematics

Math.Tan(a)

Calculate tangent value of a. The unit of a is radians and it must be a numeric type. Please refer to trigonometric functions

Math.Asin(a)

Calculate arcsine value of a. The return unit is radians and a must be a numeric type. Please refer to Inverse trigonometric functions

Math.Acos(a)

Calculate arccosine value of a. The return unit is radians and a must be a numeric type. Please refer to Inverse trigonometric functions

Math.Atan(a)

Calculate arctangent value of a. The return unit is radians and a must be a numeric type. Please refer to Inverse trigonometric functions