Skip to content

Latest commit

 

History

History
23 lines (20 loc) · 754 Bytes

File metadata and controls

23 lines (20 loc) · 754 Bytes

Math Library

math.arc provides additional mathematical functions. These can be used by adding IMPORT "math.arc" at the top of your script.

Constants

  • PI: 3.141592653589793
  • E: 2.718281828459045
  • TAU: 6.283185307179586

Mathematical Functions

  • exp(x): Exponential function ($E^x$).
  • logn(x): Natural logarithm.
  • log(base, x): Logarithm with a specific base.
  • sqrt(x): Square root.
  • abs(x): Absolute value.
  • sign(x): Returns -1 if x < 0, 0 if x == 0, 1 if x > 0.
  • floor(x): Rounds down to the nearest integer.
  • fmod(x, y): Floating-point modulo.
  • sin(x): Sine.
  • cos(x): Cosine.
  • tan(x): Tangent.
  • max(list): Returns the maximum value in a list.
  • min(list): Returns the minimum value in a list.