Hi,
basically i have the formula W x G x Cos (A) = T
I need 3 fields to enter the values to calculate T
I have the following code but it doesn't work
basically i have the formula W x G x Cos (A) = T
I need 3 fields to enter the values to calculate T
I have the following code but it doesn't work
Code:
<form>
Weight of Object to be supported: <input name="weight" /><br/>
Distance to Center of mavity: <input name="mavity" /><br/>
Angle <input name="angle" /><br/>
Torque: <input name="torque" readonly /><br/>
<input type="button" value="Calculate Torque"
onclick="this.form.torque.value = this.form.weight.value * this.form.mavity.value * math.cos(this.form.angle.value);" />
</form>