Is there anyway to get MMF2 to calculate the inverse of the sin, cos, or tan of a value? I need to know the angle, I already have what it would equal when Sin is applied.
Printable View
Is there anyway to get MMF2 to calculate the inverse of the sin, cos, or tan of a value? I need to know the angle, I already have what it would equal when Sin is applied.
cant you just use simple math? Work out sin or cos and minus by 180 or 360 or whatever
Do you mean as in upsidedown sin? or with a phase offset etc?
To do a basic invert do something like -1*Sin(value) which would do a basic invert. If not i think aSin(value) is the inverted sin function but im probably wrong.
You can find the inverse functions of sine, cosine, and tangent under Special / Sine and cosine, called arc sine, etc.
Steve
I know what he means, like on some TI Calculators you can get Sin^-1(value) and that will tell you what you have to enter in regular sin to get that value, it only accepts between -1 and 1. I really don't see why MMF2 doesn't have such a thing! D:
There are
Sin^-1(value)
Cos^-1(value)
Tan^-1(value)
which need to be added.
Drnebula and Atom answered the question.
Thanks so much, guys. You really know your stuff.
aSin worked perfectly.
What's this "special" you speak of? Is that not a button in the expression editor? I'm using the demo version so it may not be included.
When you are in the expression editor (for example, when you are setting the value of a counter), click on Retrieve Data From An Object. Then right click on the two monitors with a ? mark icon, which has a tooltip named Special, choose Sine and Cosine, and you will see the arc (or inverse) selections.
Steve
My problem is that these are NOT the same as reverse sin/cos/tan. They are some other thing, and aren't acting the same as real sin/cos/tan^-1() at all! :eek:
LB,
Could you be more specific in how they are not acting like the real sin-1. These inverse functions will give the answer in degrees. Perhaps you are expecting the answer in radians?
So, for example, the sin(30)= 0.5 and the inverse sin of 0.5 will give you 30. And pi radians = 180 degrees.
Steve
Well MMF2 only accepts numbers between 0 and 1, wheras the TI calculators will accept between -1 to 1, eg cos^-1(-1)=pi.
Again, it would be helpful if you could explain what you are trying to do. Sine, cosine, etc. deal with triangles, so all of the numbers whould always be positive. But in some schemes, negatives are used to indicate which quadrant the triangle is in. You can get the same results in several ways. One is to use angles greater than 90, so that the sine of 30 degrees and 160 (30 + 90) degrees give the same answer, even though they are in different quadrants. Or you can set the calculations to be different whether the angle is between 0 and 90 or between 90 and 180. But it all depends what you are trying to accomplish. Also, since you are getting pi, you have your calculator set to radian mode. I suggest you work in degrees for simplicity, unless your application requires radians.
Steve