

|
 |
| Programming > Forth > Re: Taylor seri... |
|
| << Topic |
< Post |
Post 6 of 6 Topic 4019 of 4053
|
Post > |
Topic >> |
Re: Taylor series FSIN, FCOS, FTAN
by "The Beez'" <hansoft@[EMAIL PROTECTED]
>
Apr 28, 2008 at 02:33 AM
| On 27 apr, 19:04, Albert van der Horst <alb...@[EMAIL PROTECTED]
>
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


|
6 Posts in Topic:
|
"The Beez'" < |
2008-04-26 04:12:45 |
|
Albert van der Horst < |
2008-04-27 10:30:59 |
|
"The Beez'" < |
2008-04-27 08:32:25 |
|
Albert van der Horst < |
2008-04-27 17:04:51 |
|
"The Beez'" < |
2008-04-27 08:45:45 |
|
"The Beez'" < |
2008-04-28 02:33:38 |
|
Post A Reply:

|
|
|
|