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/


|