- Contents
- Functions
- Shared variables
Math
This is the Math package.
Functions
tan
Math.tan($θ: Num)
Tangent, expressed in radians.
Domain: x â Ï/2 + kÏ
for all integers k
Range: â
.
-
θ: Num
atan2
Math.atan2($y: Num, $x: Num)
Two-argument inverse tangent.
Domain: â
Range: (-Ï, Ï]
atan2(y, x) =
atan(y/x) x > 0 atan(y/x) + Ï x < 0 and y ⥠0 atan(y/x) - Ï x < 0 and y < 0 Ï/2 x = 0 and y > 0 -Ï/2 x = 0 and y < 0 indeterminate x = 0 and y = 0
Note that atan2(0, 0)
is not well-defined.
atan
Math.atan($num: Num)
Inverse tangent.
Domain: â
Range: (-Ï/2, Ï/2)
Note that the range of this function is (-Ï/2, Ï/2)
,
unlike atan2()
which adjusts to the proper quadrant.
-
num: Num
sec
Math.sec($θ: Num)
Secant, expressed in radians.
Domain: x â Ï/2 + kÏ
for all integers k
Range: (ââ, â1] ⪠[1, â)
.
-
θ: Num
csc
Math.csc($θ: Num)
Cosecant, expressed in radians.
Domain: x â kÏ
for all integers k
Range: (ââ, â1] ⪠[1, â)
.
-
θ: Num
cot
Math.cot($θ: Num)
Cotangent, expressed in radians.
Domain: x â kÏ
for all integers k
Range: â
.
-
θ: Num
Shared variables
ÃÂ
Math.Ï
Ratio of a circle's circumference to it's diameter.
pi
Math.pi
Alias for Math.Ï
.
e
Math.e
Base of the natural logarithm.
End of the Math package.
This file was generated automatically by the Ferret compiler from Math.frt.