Re: Taylor series FSIN, FCOS, FTAN



On 27 apr, 19:04, Albert van der Horst <alb...@xxxxxxxxxxxxxxxxxx>
wrote:
This is ugly shorthand for 2.0e0. That IS a float.
If the reduced number is greater than pi , another 2pi is
subtracted. You get pi by dividing by 2 (which need not
be an efficient thing to do in your situation).
I think it was the comment that triggered me, but it suddenly came to
me. I was confused by the "FOVER 2e0 F/" sequence, since in most
situations you rather insert the constant again than to calculate it.
First I thought of "2E" as a hexadecimal number, but that made no
sense in any context. I came pretty close to your word by myself, but
I couldn't get the PI adjustment just right. Now it works.

Many thanks, Albert! Now I can release 4tH with a pretty nice FP
wordset, including FSIN, FCOS and FTAN. I hope nobody will use it
outside a government environment ;-)

Hans
.



Relevant Pages