I need to create a form where the visitor can enter a numeric value in a Form Field and then click on a "calculate button" where the entered value then are subtracted from 2004 and the result divided by 50. This result must then be returned as 4 values:
1 --> the result "to the power of" 0.25
2 --> the result "to the power of" 0.5
3. --> the result "to the power of" 0.75
4. --> the result "to the power of" 1.5

For example if the value entered is 1864 then:
2004 - 1864 / 50 = 2.80 (should be rounded to the neartest = 3)
1. --> 3 to the power of 0.25
2. --> 3 to the power of 0.50 etc

Is there any way to do this?

Thanx!

sciguyryan

01-04-2004, 02:36 PM

Why do you want to do this?

Yes, I think that it is possible.

sciguyryan

01-04-2004, 02:39 PM

Why do you want so man diferent "to the power" parts?

If you tell me then I will help.

beetle

01-04-2004, 02:40 PM

Most everything you need is in the Math object (http://www.w3schools.com/js/js_math.asp)