thegarland

10-18-2010, 09:02 PM

Hey guys,

I have a new to perform certain equations numerous times. They're relatively simple equations, but it's a little tedious to work them out on paper over and over. So I'm trying to see if I can write a MEL script that will calculate the equation for me when I plug in certain variables.

Kind of like a java applet. But I don't know anything about java programming, so I'm wondering if I can do it in MEL.

These are the two equations:

T = 2 * sqrt[ D/A ]

where I get the value of T once I define D and A

T = ((D - (A * t^2)) / (A * t)) + (2*t)

where I get the value of T once I define D, A, and t

Thanks.

I have a new to perform certain equations numerous times. They're relatively simple equations, but it's a little tedious to work them out on paper over and over. So I'm trying to see if I can write a MEL script that will calculate the equation for me when I plug in certain variables.

Kind of like a java applet. But I don't know anything about java programming, so I'm wondering if I can do it in MEL.

These are the two equations:

T = 2 * sqrt[ D/A ]

where I get the value of T once I define D and A

T = ((D - (A * t^2)) / (A * t)) + (2*t)

where I get the value of T once I define D, A, and t

Thanks.