Ok for the life of me I can't remember how to do this.
Say I have an equasion:
sin(x)-sin(y)=0
and I want to solve for x.
I can get to:
sin(x)=sin(y)
But how do I turn sin(x)= to x=???
Its been a long time since I've taken any math classes.
Thanks
This is a discussion on Little math problem within the A Brief History of Cprogramming.com forums, part of the Community Boards category; Ok for the life of me I can't remember how to do this. Say I have an equasion: sin(x)-sin(y)=0 and ...
Ok for the life of me I can't remember how to do this.
Say I have an equasion:
sin(x)-sin(y)=0
and I want to solve for x.
I can get to:
sin(x)=sin(y)
But how do I turn sin(x)= to x=???
Its been a long time since I've taken any math classes.
Thanks
arcsin, perhaps its sin^-1 on your calculator, or asin in <cmath>
That equation has an infinite number of solutions, due to the periodic nature of sine.
where n is any integer, the solutions to that are
y = 2*pi*n + x
you can arcsine at both sides of the equation, and you get
x=y
but, as SilentStrike said, this is not completely accurate because there are infinite values for x for that sin(x) is equal.
but arcsining would do the trick
Oskilian