- #1
andrewr
- 263
- 0
Hi!
I'm doing a project with sound, and exploring modulation.
I got stuck on an intermediate step ... and can't solve a simple algebra problem.
I have a wave, which I know the envelope is a perfect sine wave, and fits the following three equations:
A * cos( ph1 ) = knownSlope1
A * cos( ph2 ) = knownSlope2
A * ( sin( ph2) - sin( ph1 ) ) = knownDeltaHeight
I need to solve for A, ph1, and ph2, where all phases ph1, ph2, are in radians.
All numbers are reals, nothing tricky...
Even if I could solve for A, and know the difference between ph1 and ph2, that would be enough... but I can't figure it out.
I've messed with this for about two hours, and am still stuck; but it's three equations in three unknowns, so it should be solvable with at least one solution...
I'm doing a project with sound, and exploring modulation.
I got stuck on an intermediate step ... and can't solve a simple algebra problem.
I have a wave, which I know the envelope is a perfect sine wave, and fits the following three equations:
A * cos( ph1 ) = knownSlope1
A * cos( ph2 ) = knownSlope2
A * ( sin( ph2) - sin( ph1 ) ) = knownDeltaHeight
I need to solve for A, ph1, and ph2, where all phases ph1, ph2, are in radians.
All numbers are reals, nothing tricky...
Even if I could solve for A, and know the difference between ph1 and ph2, that would be enough... but I can't figure it out.
I've messed with this for about two hours, and am still stuck; but it's three equations in three unknowns, so it should be solvable with at least one solution...