# How do I calculate the first solution, without calculating all the others?

How do I calculate the first solution, without calculating all the others?

```
var('x')
eq0 = x^100-3 == 0
solutions = solve([eq0],x)
sol0 = solutions
print(sol0[0])
```

How do you define the "first solution"? Are there any constraints that you would like to put on the result?

If this is your actual problem, in this case, you could directly ask for

`3^(1/100)`

for instance. If you are interested in real solutions, you could try`solve(x^100 == 3, x, algorithm='sympy', domain='real')`

.@tolga any, as long as you only calculate that.

@FabianG my problem is: I have a non-linear system to solve and since my PC is old I would like to calculate a single solution, not all of them to reduce the time.

if you want to see what we are talking about, look here https://www.linkedin.com/feed/update/urn:li:activity:6829793175205359616/ (https://www.linkedin.com/feed/update/...)