Real constants and functions: Difference between revisions
Content added Content deleted
Thundergnat (talk | contribs) m (→{{header|Perl 6}}: Add tau, mention method forms, expand explanation a bit) |
No edit summary |
||
Line 1,742: | Line 1,742: | ||
cc=x2c(hhh) /*converts hexadecimal to character. */ |
cc=x2c(hhh) /*converts hexadecimal to character. */ |
||
dd=x2d(hhh) /*converts hexadecimal to decimal. */</lang> |
dd=x2d(hhh) /*converts hexadecimal to decimal. */</lang> |
||
=={{header|Ring}}== |
|||
<lang ring> |
|||
See "Mathematical Functions" + nl |
|||
See "Sin(0) = " + sin(0) + nl |
|||
See "Sin(90) radians = " + sin(90) + nl |
|||
See "Sin(90) degree = " + sin(90*3.14/180) + nl |
|||
See "Cos(0) = " + cos(0) + nl |
|||
See "Cos(90) radians = " + cos(90) + nl |
|||
See "Cos(90) degree = " + cos(90*3.14/180) + nl |
|||
See "Tan(0) = " + tan(0) + nl |
|||
See "Tan(90) radians = " + tan(90) + nl |
|||
See "Tan(90) degree = " + tan(90*3.14/180) + nl |
|||
See "asin(0) = " + asin(0) + nl |
|||
See "acos(0) = " + acos(0) + nl |
|||
See "atan(0) = " + atan(0) + nl |
|||
See "atan2(1,1) = " + atan2(1,1) + nl |
|||
See "sinh(0) = " + sinh(0) + nl |
|||
See "sinh(1) = " + sinh(1) + nl |
|||
See "cosh(0) = " + cosh(0) + nl |
|||
See "cosh(1) = " + cosh(1) + nl |
|||
See "tanh(0) = " + tanh(0) + nl |
|||
See "tanh(1) = " + tanh(1) + nl |
|||
See "exp(0) = " + exp(0) + nl |
|||
See "exp(1) = " + exp(1) + nl |
|||
See "log(1) = " + log(1) + nl |
|||
See "log(2) = " + log(2) + nl |
|||
See "log10(1) = " + log10(1) + nl |
|||
See "log10(2) = " + log10(2) + nl |
|||
See "log10(10) = " + log10(10) + nl |
|||
See "Ceil(1.12) = " + Ceil(1.12) + nl |
|||
See "Ceil(1.72) = " + Ceil(1.72) + nl |
|||
See "Floor(1.12) = " + floor(1.12) + nl |
|||
See "Floor(1.72) = " + floor(1.72) + nl |
|||
See "fabs(1.12) = " + fabs(1.12) + nl |
|||
See "fabs(1.72) = " + fabs(1.72) + nl |
|||
See "pow(2,3) = " + pow(2,3) + nl |
|||
see "sqrt(16) = " + sqrt(16) + nl |
|||
</lang> |
|||
=={{header|RLaB}}== |
=={{header|RLaB}}== |