Thiele's interpolation formula: Difference between revisions

Content added Content deleted
Line 851: Line 851:
rtan[i] = NaN
rtan[i] = NaN
echo fmt"{6 * thiele(tsin, xval, rsin, 0.5, 0):16.14}"
echo fmt"{6 * thiele(tsin, xval, rsin, 0.5, 0):16.14f}"
echo fmt"{3 * thiele(tcos, xval, rcos, 0.5, 0):16.14}"
echo fmt"{3 * thiele(tcos, xval, rcos, 0.5, 0):16.14f}"
echo fmt"{4 * thiele(ttan, xval, rtan, 1.0, 0):16.14}"</lang>
echo fmt"{4 * thiele(ttan, xval, rtan, 1.0, 0):16.14f}"</lang>
{{out}}
{{out}}
<pre>
<pre>
3.14159265358979
3.1415926535898
3.14159265358979
3.1415926535898
3.14159265358979
3.1415926535898
</pre>
</pre>