This is the Math package.
Math.sin($θ: Num)
Sine, expressed in radians.
Domain: ℝ
Range: [-1, 1]
.
- θ: Num
Math.asin($num: Num)
Inverse sine.
Domain: [-1, 1]
Range: ℝ
.
- num: Num
Math.cos($θ: Num)
Cosine, expressed in radians.
Domain: ℝ
Range: [-1, 1]
.
- θ: Num
Math.acos($num: Num)
Inverse cosine.
Domain: [-1, 1]
Range: [0, π]
.
- num: Num
Math.tan($θ: Num)
Tangent, expressed in radians.
Domain: x ≠ π/2 + kπ
for all integers k
Range: ℝ
.
- θ: Num
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.
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
Math.sec($θ: Num)
Secant, expressed in radians.
Domain: x ≠ π/2 + kπ
for all integers k
Range: (–∞, –1] ∪ [1, ∞)
.
- θ: Num
Math.csc($θ: Num)
Cosecant, expressed in radians.
Domain: x ≠ kπ
for all integers k
Range: (–∞, –1] ∪ [1, ∞)
.
- θ: Num
Math.cot($θ: Num)
Cotangent, expressed in radians.
Domain: x ≠ kπ
for all integers k
Range: ℝ
.
- θ: Num
Math.log($num: Num)
Natural logarithm (base e).
- num: Num
Math.log10($num: Num)
Log base 10.
- num: Num
Math.logb($base: Num, $num: Num)
Log base $base
.
Math.exp($num: Num)
Takes e
(the base of the natural logarithm) to a power.
- num: Num
Math.π
Ratio of a circle's circumference to it's diameter.
Math.pi
Alias for Math.π
.
Math.e
Base of the natural logarithm.
End of the Math package.
This file was generated automatically by the Ferret compiler from Math.frt.