Search code examples
ti-basic

Syntax Error on TI-84 Plus


I get a syntax error when I run the following code:

Prompt A,B,C
B^2-4*A*C→Δ
If Δ IS<(0)
Disp "No Real Solutions"
If Δ=0
Disp "One Solution",-B/(2*A)
If Δ IS>(0)
Then
(-B-√(Δ))/(2*A)→E
(-B+√(Δ))/(2*A)→F
End

Any problems With this code?


Solution

  • Your issue is with using

    If Δ IS<(0)
    

    The command IS< does not test for less than. Instead, it takes a variable and a value as parameters, increments the variable, and skips the next line of code if the variable is less than the value. Instead, you want to do If Δ < 0 as said by JFed-9.

    Also, the delta may be an issue, but try the above first.