Talk:Trigonometric functions: Difference between revisions

m
Line 38:
A possible remedy is to compute the function with a higher precision
and then round the result to the desired one
<pre>
 
ps=0.09983341664682815230681419841062199
0.0998334166468281523068141984106
</pre>
 
These lines come from
pSIN: procedure
/* Calculate sin(x) to the specified precision */
parse arg X, P
Numeric Digits (p+2)
ps=sin(x)
Say 'ps='ps
Numeric Digits p
Say ' '||(ps+0)
Return ps+0
 
--[[User:Walterpachl|Walterpachl]] 19:43, 22 June 2012 (UTC)
2,295

edits