How do you do a sign function?

  • Thread starter Thread starter box
  • Start date Start date
  • Tags Tags
    Function Sign
box
Messages
12
Reaction score
0
I have always used a calculator to find the sin when the angle is given. But how would you figure this out if you didn't have a calculator
 
Mathematics news on Phys.org
box said:
I have always used a calculator to find the sin when the angle is given. But how would you figure this out if you didn't have a calculator
Look up in a sine table.
 
\sin x=x-x^3/6+x^5/120-...
One can use the symmetries of the function to avoid large values of x (where convergence is slow) and only ever have to calculate with x as large as pi/2. For example, sin(2)=sin(pi-2)=sin(1.14159..). One can even do better by using the expansion of cosine:
\cos x=1-x^2/2+x^4/24-...
Then using sin^2+cos^2=1, you only need the series up to x=pi/4. The series converges very quickly for such small x.
 
...and to a limited extent you can calculate them by hand using the angles you already know (30, 45, 60, 90, etc.) with identities such as the double and half-angle formulas.
 
You can use the Taylor's series for sin(x)= x- x2/2+ x4/4!- x6/6!+ ... where the general term is (-1)nx2n/(2n)! and a few terms should get you pretty good accuracy.

My understanding is that calculators and computers actually use the "CORDIC" method:
http://www.dspguru.com/info/faqs/cordic.htm
 
HallsofIvy said:
You can use the Taylor's series for sin(x)= x- x2/2+ x4/4!- x6/6!+ ... where the general...
There's a slight error there... You just mixed up the Taylor expansion for sin(x), and cos(x) :smile:.
\sin x = x - \frac{x ^ 3}{3!} + \frac{x ^ 5}{5!} - \frac{x ^ 7}{7!} + ... = \sum_{n = 0} ^ {\infty} \frac{(-1) ^ n}{(2n + 1)!} x ^ {2n + 1}
\cos x = 1 - \frac{x ^ 2}{2!} + \frac{x ^ 4}{4!} - \frac{x ^ 6}{6!} + ... = \sum_{n = 0} ^ {\infty} \frac{(-1) ^ n}{(2n)!} x ^ {2n}
Viet Dao,
 
Oops!

No wonder I keep getting my trig problems wrong!
 
Back
Top