Talk About Network

Google


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 > Basic General > Re: Trig Functi...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 12 of 12 Topic 644 of 702
Post > Topic >>

Re: Trig Functions

by "news@[EMAIL PROTECTED] " <news@[EMAIL PROTECTED] > Jan 12, 2008 at 07:13 AM

On Jan 10, 5:23=A0am, "SomOne" <Some...@[EMAIL PROTECTED]
> wrote:
> Now I know that you can write a DefFN for ARCOS, ARCSIN, DEG, and
> RAD; however, you wind up loosing a point of precision

You can't assume that, because Arc-Cos and Arc-Sine are implemented as
intrinsic functions, they will be any more accurate.  In fact, in BBC
BASIC for Windows (I can't speak for other BASICs) ACS and ASN are
internally calculated from ATN in just the same way as you would in
your own DEF FN.  So whilst the intrinsic functions will certainly run
a little faster, they won't be any more accurate.

If it's accuracy you're after, why not use an external library like
MAPM which can calculate Arc-Sine, Arc-Cos and Arc-Tan to an arbitrary
precision:

 http://www.tc.umn.edu/~ringx004/mapm-main.html

A DLL version is available allowing you to call the MAPM functions
from any BASIC which can access Windows DLLs (including BBC BASIC).

Richard.
http://www.rtrussell.co.uk/
 




 12 Posts in Topic:
Trig Functions
"SomOne" <So  2008-01-09 23:23:54 
Re: Trig Functions
"Stephen J. Rush&quo  2008-01-10 05:43:23 
Re: Trig Functions
Jon Ripley <no.more@[E  2008-01-10 16:22:36 
Re: Trig Functions
"news@[EMAIL PROTECT  2008-01-12 07:01:05 
Re: Trig Functions
"Michael Mattias&quo  2008-01-12 09:11:51 
Re: Trig Functions
rebel <me@[EMAIL PROTE  2008-01-13 09:03:22 
Re: Trig Functions
"R.Nicholson" &  2008-01-12 18:14:44 
Re: Trig Functions
"Auric__" <n  2008-01-14 14:55:01 
Re: Trig Functions
"Tom Lake" <  2008-01-14 10:06:39 
Re: Trig Functions
"Auric__" <n  2008-01-14 15:57:08 
Re: Trig Functions
Phat Sam <phatsam@[EMA  2008-01-28 19:13:38 
Re: Trig Functions
"news@[EMAIL PROTECT  2008-01-12 07:13:07 

Post A Reply:
  Go here to Signup

AddThis Feed Button


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

Contact
tan12V112 Thu Nov 20 20:09:52 CST 2008.