Math Functions

  • Thread starter Thread starter Laserson
  • Start date Start date
L

Laserson

Hi ! Can anybody give a code that performs calculating of sine function... I
need it for report
 
Public Function Sin(radians As Double) As Double

Return Math.Sin(radians)

End Function
 
For performance reasons, trig functions are usually done via table lookup
followed by interpolation. If you really need the algorithm, google for it.

Mike Ober.
 
Laserson said:
Thank you but i need a source code of sine calculating function...

There are several algorithms for doing it. My guess is that most
implementations use the CORDIC algorithm. That's probably what Michael
was referring to.
 
Back
Top