all repos — min @ 060ffb02f582d26207e28237b0fa63311e34f419

A small but practical concatenative programming language.

site/contents/reference-math.md

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
-----
content-type: "page"
title: "math Module"
-----
{@ _defs_.md || 0 @}

{#op||acos||{{n1}}||{{n2}}||
Calculates the arc cosine of {{n1}} (in radians). #}

{#op||asin||{{n1}}||{{n2}}||
Calculates the arc sine of {{n1}} (in radians). #}

{#op||atan||{{n1}}||{{n2}}||
Calculates the arc tangent of {{n1}} (in radians). #}

{#op||ceil||{{n}}||{{i}}||
Returns the smallest integer {{i}} that is not smaller than {{n}}. #}

{#op||cos||{{n1}}||{{n2}}||
Calculates the cosine of {{n1}} (in radians). #}

{#op||cosh||{{n1}}||{{n2}}||
Calculates the hyperbolic cosine of {{n1}} (in radians). #}

{#op||d2r||{{n1}}||{{n2}}||
Converts {{n1}} from degrees to radians. #}

{#op||e||{{none}}||{{n}}||
Returns the value of the _e_ constant (Euler's number). #}

{#op||floor||{{n}}||{{i}}||
Returns the largest integer {{i}} that is not greater than {{n}}. #}

{#op||ln||{{n1}}||{{n2}}||
Calculates the natural logarithm of {{n1}}. #}

{#op||log10||{{n1}}||{{n2}}||
Calculates the common logarithm of {{n1}}. #}

{#op||log2||{{n1}}||{{n2}}||
Calculates the binary logarithm of {{n1}}. #}

{#op||pi||{{none}}||{{n}}||
Returns the value of the π constant. #}

{#op||pow||{{n1}} {{n2}}||{{n3}}||
Computes {{n1}} to power raised of {{n2}}.#}

{#op||r2d||{{n1}}||{{n2}}||
Converts {{n1}} from radians to degrees. #}

{#op||round||{{n1}} {{i}}||{{n2}}||
Rounds {{n1}} to the {{i}}^th decimal place. #}

{#op||sin||{{n1}}||{{n2}}||
Calculates the sine of {{n1}} (in radians). #}

{#op||sinh||{{n1}}||{{n2}}||
Calculates the hyperbolic sine of {{n1}} (in radians). #}

{#op||sqrt||{{n1}}||{{n2}}||
Returns square root of {{n1}}. #}

{#op||tan||{{n1}}||{{n2}}||
Calculates the tangent of {{n1}} (in radians). #}

{#op||tanh||{{n1}}||{{n2}}||
Calculates the hyperbolic tangent of {{n1}} (in radians). #}

{#op||tau||{{none}}||{{n}}||
Returns the value of the τ constant (2π). #}

{#op||trunc||{{n1}}||{{n2}}||
Truncates {{n}} to the decimal point. #}