I'm new with TI-Basic. With TI-Basic I will solve a equation with 2 unknown values. This works fine, I get "λ1=0 and λ2=−1" as the result. How can I save this two results into two variables to reuse them later?

I use a TI-nspire cx CAS calculator.

I'm pretty sure that, with an n-spire, there's a way to store those results into a list and then into 2 separate variables, but I don't know how since I don't have one.

That's the way I do it.

res:=exp▶list(solve(exp,var),var)

that stores a list of results in variable "res". It works fine when the expresion has concrete solutions. Then you can access to any of them just specifying the index number after it.

For example:

res:=exp▶list(solve(2*x^2=8,x),x) res will be a list {-2,2}

res:=exp▶list(solve(2*x^2=8,x),x)[1] res will be -2

res:=exp▶list(solve(2*x^2=−8,x),x) res will be an empty list!!

solve tries to solve using only real numbers so it doesn't find any solution. It returns an empty list and if you try to access to position 1 it results in an error.

res:=exp▶list(solve(2*x^2=−8,x),x)[1] This give you an error!! so you should check the dimension of the result in your programs.

just in case you didn't know it, the last calculation will not give you any error if you use csolve. Instead, the result given will be 2*i, as it should be ;)

Hello, I'm reading the post because I've got some issues about it.

I'm writing a program wich uses a "solve" function in it.

This is the command:

solve({∑(α[i]*z[i])/(α[i]-θ)=1-q},{θ})|1<θ<α[j]

I want to find the n solutions {θ1,θ2,…,θn} and store each one into a list like {theta[1], theta[2], …, theta[n]}

Can you help me?

I tried to use the command

theta:=solve(equation,var)|conditions

but it stores in the variable theta just the string with the results.

Thank you!

This might work:

```
1->A
Delvar Ltheta //custom list
SetupEditor Ltheta
For(A,N,1)
(Variable of answer)->Ltheta(dim(Ltheta+1)
End
Display Ltheta
```

live the life because the life is good —vivir la vida, porque la vida es buena

Vie la vie que la vie est bonne quod est bonum vitae in vita

lebe das Leben, weil das Leben ist gut —vivere la vita, perché la vita è buona

Mike was asking about the nspire, whereas your code is TI-84 BASIC.

Unfortunately, I do not know how to operate an nspire.

My bad.

live the life because the life is good —vivir la vida, porque la vida es buena

Vie la vie que la vie est bonne quod est bonum vitae in vita

lebe das Leben, weil das Leben ist gut —vivere la vita, perché la vita è buona