I am learning how to code in TI-BASIC for my TI-84 Plus CE, so I wrote a Quadratic Formula program:
:Local A
:Local B
:Local C
:Local P
:Local Q
:Prompt A,B,C
:-B+√(B²-4AC)√(2A)→P
:-B-√(B²-4AC)√(2A)→Q
:"The actual program uses a negative sign, but SE can't display it
...
(Rest of program not relevant, I output the values of P
and Q
in a specific way)
When running, I get a syntax error on the first keyword Local
. I looked it up and I seem to have the correct syntax, so what's going on, and how can I get around the error?