Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Forth > Re: Taylor seri...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< 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:
Taylor series FSIN, FCOS, FTAN
"The Beez'" <  2008-04-26 04:12:45 
Re: Taylor series FSIN, FCOS, FTAN
Albert van der Horst <  2008-04-27 10:30:59 
Re: Taylor series FSIN, FCOS, FTAN
"The Beez'" <  2008-04-27 08:32:25 
Re: Taylor series FSIN, FCOS, FTAN
Albert van der Horst <  2008-04-27 17:04:51 
Re: Taylor series FSIN, FCOS, FTAN
"The Beez'" <  2008-04-27 08:45:45 
Re: Taylor series FSIN, FCOS, FTAN
"The Beez'" <  2008-04-28 02:33:38 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat May 17 1:38:36 CDT 2008.