# How to use the values obtained with Solve()?

GustavoB shared this question 1 year ago

Greetings, I've been using the following code:

`Sequence(Solve(a x = 4), a, 1, 10, 1)`
This makes solutions for different values of a, and I obtain a list such as:

`l1 = {{x = 4}, {x = 2}, {x = 1.33}, {x = 1}, {x = 0.8}, {x = 0.67}, {x = 0.57}, {x = 0.5}, {x = 0.44}, {x = 0.4}}`
Now, how do I use these values? I know that I can take elements in a list using
`l1(n)`
For some n, but if I set l1(1), I obtain l2 = {x = 4}, and it doesn't seems to be a number I could multiply with other numbers. How to convert this to the number 4? I am using Geogebra 5.

I know I could use 4/a for various values of a but being able to convert that solutions to numbers seems a good thing. If you use Solutions in the Seuence command instead of Solve then the result is a 10x1 matrix m1 instead of a list l1. You can obtain and work with the elements of it as e.g. m1(4,1) to get the forth number in it. 2

If you use Solutions in the Seuence command instead of Solve then the result is a 10x1 matrix m1 instead of a list l1. You can obtain and work with the elements of it as e.g. m1(4,1) to get the forth number in it.