Posted By
|
Message
|
Jimmy Brzezicki
Registered 16/09/2003
Points 1057
|
14th December, 2003 at 17:01:43 -
Yes, I'm on a quest for the arc! Arctan that is! Yeah, isn't that exciting! Anyway, MMF's maths seems pretty advanced but there does't seem to be an arcsin, arccos or arctan function, which is a shame because they're really a lot more useful than sin, cos and tan. However, I thought MMF doesn't even do decimals, which kinda makes trigonometric functions useless anyway because you'll always get 0 as it rounds down. Am I wrong about this? No, I'm never wrong, but I'd like to be told that I was "misguided" on this occasion. So if you have any idea what I'm saying, and know the answer to my problems, please answer... here.
Why the hell am I on the computer at 1 in the morning? No, don't answer.
|
Assault Andy Administrator
I make other people create vaporware
Registered 29/07/2002
Points 5686
|
14th December, 2003 at 17:05:23 -
Well you are misguided, you can acess the arc functions in the expression editor underneath the special conditions and MMF can use decimals but I forgot which function it is. Instead of using decimals you could always just multiply the value of the sin/cos for example:
cos(x) * 100
Creator of Faerie Solitaire:
http://www.create-games.com/download.asp?id=7792
Also creator of ZDay20 and Dungeon Dash.
http://www.Jigxor.com
http://twitter.com/JigxorAndy
|
Kris Possibly Insane
Registered 17/05/2002
Points 2017
|
14th December, 2003 at 17:15:10 -
cant you put " 1.5/1.5* " at the beginning of your expression, or something?
"Say you're hanging from a huge cliff at the top of mt. everest and a guy comes along and says he'll save you, and proceeds to throw religious pamphlets at you while simultaniously giving a sermon." - Dustin G
|
cake
Registered 13/12/2002
Points 1173
|
14th December, 2003 at 18:02:38 -
You can force MMF to use decimals by adding 0.0 to both the numerator and denominator of a division, ie:
((0.0 + Value A of Thing)/(0.0 + Value B of Thing))
n/a
|
ShadowCaster Possibly Insane
Registered 02/01/2002
Points 2203
|
14th December, 2003 at 18:05:53 -
You can just times it by 1.0, for example:
X * 1.0
Will automatically promote X to a float.
However the Arctan function in MMF always returns a float anyway, so there is no need to do anything in order to convert it. For example, create a counter and have it display the result of ATan(5), you'll see that it comes up as 1.3734 without needing to do any processing to convert it to a float.
Mike
"Now I guess we're... 'Path-E-Tech Management'" -Dilbert
|
Jimmy Brzezicki
Registered 16/09/2003
Points 1057
|
16th December, 2003 at 16:44:43 -
Excellent... Now I just have to remember my maths...
Why the hell am I on the computer at 1 in the morning? No, don't answer.
|
|
|