Math Is Fun Forum

  Discussion about math, puzzles, games and fun.   Useful symbols: ÷ × ½ √ ∞ ≠ ≤ ≥ ≈ ⇒ ± ∈ Δ θ ∴ ∑ ∫ • π ƒ -¹ ² ³ °

You are not logged in.

#1 2020-06-09 08:46:57

kappa_am
Member
Registered: 2013-12-20
Posts: 63

Finding COS value from SIN

Hi All,
I need to get COS value from SIN. what I have is COS value and I can determine which region the signal is in. I know that it is simply sqrt(1-sin^2). Since I am working on microcontroller, I need computationally efficient method. It means no SQRT. However, my DSP core has power, divide, ... simple operation like these. I would be grateful if you give me a hint.

Thank you.

Offline

#2 2020-06-09 19:28:55

Bob
Administrator
Registered: 2010-06-20
Posts: 10,621

Re: Finding COS value from SIN

hi kappa_am

Trouble is: that is the formula for sin into cos.  I don't know of another.  Maybe there's a work around if you say more about how you want to use the result.

Bob


Children are not defined by school ...........The Fonz
You cannot teach a man anything;  you can only help him find it within himself..........Galileo Galilei
Sometimes I deliberately make mistakes, just to test you!  …………….Bob smile

Offline

Board footer

Powered by FluxBB