Is it possible to calculate inverse Cosine in PBP?
Printable View
Is it possible to calculate inverse Cosine in PBP?
any help would be appreciated?
Hi,
Calculate, no ...
Use a retrieve table ( + linearizing ) YES ...
depends MUCH on the looked for values range.
But PBP doesn't include any "ARCCOS" function ...
Alain
Yes, you could use the ATAN function by using a cordic (http://www.picbasic.co.uk/forum/showthread.php?t=10528) include file and calculate for the equation:
http://www.picbasic.co.uk/forum/atta...1&d=1255016566 (IF http://www.picbasic.co.uk/forum/atta...1&d=1255016808 )
You would need to do some manipulation for the math in a PIC chip though.
-Walter