Robnboard
Joined: 19 Oct 2008 Posts: 1
|
Posted: October 19, 2008 7:52 PM Post subject: Trying to use If Statement |
|
|
I am trying to get an If statement to separate a condition and display the value of Q. Using Apps Editor on the Ti-89 Titanium.
:If pumptype=0 Then
:Q=1.62e-4*(2*(liner^2-rod^2))*stroke*eff
:
:If pumptype=1 Then
:Q=2.43e-4*liner^2*stroke*eff
:EndIf
:EndIf
:Disp Q
EndPrgm
displays the letter q, doesnt appear to be solving for it with above inputs(stroke,eff etc...)
Do I need to be using some sort of return command, or solve function here? |
|