Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Trigonometric funktions

I have a problem with the accuracy on those trigonometric functions i BC3.1 (sin,cos,tan)

Anyone who know where I can get better ones or to make my own (the algorithems).





Comments

  • : I have a problem with the accuracy on those trigonometric functions i BC3.1 (sin,cos,tan)

    : Anyone who know where I can get better ones or to make my own (the algorithems).


    I find it a little hard to believe that they're inaccurate. However, you could try writing your own (probably slower) sin, and arcsin routines from which you can get most of the others.


    You could use a Taylor series expansion, for example. Keep in mind that you only need to deal with the first pi/2 radians (the first 90 degrees) as everything else is a reflection or a shift.


    Might I ask how you determined that sin and cos weren't being accurate? They should be accurate to a pretty large number of decimal places.




Sign In or Register to comment.