I whant to replace a variable by some numbers and X's or even a direct equation like 3X+2 = 5
Yeah I'm codding a resolution of equations :D (i'm borred)
This is what i've written right now
Prompt E
Prompt F
while T [not equal to] 1
X+0.01 -> X
If E=F
1 -> T
If E=F
Disp X
End
So what i'm trying to do is say E is 3X+2 and F is 5 I test all the possible solutions by replacing X by every number and when it equals to F (so 5) i stop and print X
It works when I replace directly in the code the E and F but it's long and useless if I whant to use it.
If 3X+2=5
1 -> T
If 3X+2=5
Disp X
End
This works !! So is it possible for the calculator to interpret that i'm saying that E is a long sentence ?
Thanks so much !
Ps : Don't worry if i make mistakes in my orthograph, (i'm french) Ps 2 : Don't just tell me how to do a resolution of equation (Don't tell me what I can't do !! (lost (4 8 15 16 23 42)))
Are you asking how to input "3X+2" into the variable E?
In this case, you wouldn't want to use a variable, because variables in TI-84 can only be numbers. You would use strings, which store text instead of numbers. Go to VARS > String... to see the list of strings available.
Now, to find the numerical value of strings, you would use the expr(
command. For example, expr("3X+2")
where X=1 would return 5
. You can find the expr(
command in the catalog (2ND + 0).