Loading...
Logo
Processing Forum

Cos or Sin Calculates

in General Discussion  •  Other  •  2 years ago  
x=radians
y=radius
Copy code
  1. cos(x)*y
Of course i can use a calc, but i have not idea how calc calculate it. How?

Replies(2)

It calculates it by doing... trigonometric operations! The remainder is implementation specific, depending on the language (or software), etc. It might use polynomials, delegating all floating point calculations to the FPU.

Cos or Sin Calculates

2 years ago
I guess the calc use some formula (same cos a = a/h)

And i about this:
Copy code
  1. cos(x)=1-x^2/2!+x^4/4!-x^6/6!+..+(-1)^n x^(2n)/(2n)!+..