Trigonometric functions: Difference between revisions

Content added Content deleted
Line 1,627: Line 1,627:
<lang Oforth>func: testTrigo
<lang Oforth>func: testTrigo
{
{
| rad deg z |
| rad deg hyp z |
Pi 4 / ->rad
Pi 4 / ->rad
45.0 ->deg
45.0 ->deg
0.5 ->hyp


System.Out rad sin << " - " << deg asRadian sin << cr
System.Out rad sin << " - " << deg asRadian sin << cr
Line 1,645: Line 1,646:
rad tan atan ->z
rad tan atan ->z
System.Out z << " - " << z asDegree << cr
System.Out z << " - " << z asDegree << cr
printcr

System.Out hyp sinh << " - " << hyp sinh asinh << cr
System.Out hyp cosh << " - " << hyp cosh acosh << cr
System.Out hyp tanh << " - " << hyp tanh atanh << cr
}</lang>
}</lang>


Line 1,656: Line 1,663:
0.785398163397448 - 45
0.785398163397448 - 45
0.785398163397448 - 45
0.785398163397448 - 45

0.521095305493747 - 0.5
1.12762596520638 - 0.5
0.46211715726001 - 0.5
</pre>
</pre>