Anonymous user
Trigonometric functions: Difference between revisions
Replaced "radians" and "degrees" procs with "degTorRad" and "radToDeg" which are now provided by the module "math". Changed output formatting. Added output section.
Alextretyak (talk | contribs) (Added 11l) |
(Replaced "radians" and "degrees" procs with "degTorRad" and "radToDeg" which are now provided by the module "math". Changed output formatting. Added output section.) |
||
Line 2,364:
=={{header|Nim}}==
<lang nim>import math, strformat
let rad = Pi/4
let deg = 45.0
echo &"Sine:
echo &"Cosine :
echo &"Tangent:
echo &"Arcsine:
echo &"
echo &"Arctangent:
</lang>
{{out}}
<pre>Sine: 0.7071067812 0.7071067812
Cosine : 0.7071067812 0.7071067812
Tangent: 1.0000000000 1.0000000000
Arcsine: 0.7853981634 45.0000000000
Arccosine: 0.7853981634 45.0000000000
Arctangent: 0.7853981634 45.0000000000</pre>
=={{header|OCaml}}==
|