Quantcast
Viewing latest article 1
Browse Latest Browse All 3

Output solution from 'store' function to a list.

Hi all,

I'm writing a small program to solve a polynomial for one variable, and I want to be able to access the result for further calculations, but it just seems to store the solution as a string or something… I'm not sure how to access each of the possible solutions independently.

for example:

 solve(0=4*x^(2)+20*x+10,x) 

returns:
 x=−4.4364 or x=−0.5635 

Now say I want to use the second value of 'x' for another equation… how do I access it?

i thought there might be a way to transfer all values of 'x' to a list, and I can work with that…

Any suggestions?


Viewing latest article 1
Browse Latest Browse All 3

Trending Articles