0 Members and 2 Guests are viewing this topic.
First of all, input can be gained from the Request (for numerical values) and RequestStr (for strings).The major problem that's causing all the trouble is that you don't close the if statements.On the TI-Nspire you have to do this:Spoiler For Spoiler: If <condition> then<actions to perform>EndIfPersonally, I would do this:Spoiler For Spoiler: Define gaslaw(p,v,n,t)=PrgmIf p=0 Then Disp "p=",((0.08206*n*t)/(v))ElseIf v=0 Then Disp "v=",((0.08206*n*t)/(p))ElseIf n=0 Then Disp "n=",((p*v)/(0.08206))*tElseIf t=0 Then Disp "t=",((p*v)/(0.08206))*nElse Disp "Error: nothing to solve, check syntax."EndIfEndPrgmI hope this was helpful. And if you want to learn, check my tutorial (link coming soon in my sig)
If <condition> then<actions to perform>EndIf
Also, what will your tutorials be covering? If they're as descriptive as the post you left me, I will surely check them out! Thank you!
Is EndIf or End not required in TI-BASIC (83/84)?I know that End is required in Casio Basic and EndIf in TI-nspire BasicEnd (for function in Lua) too.
learning lua (does anyone know a good tutorial?)