Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Get Sage to display the 2nd x value, when function is set to 0?

I did the following and only got 3/2 as an answer, instead of getting 3/2 & 8, as an answer:

ans=solve(2*x^2-19*x+24==0,x)
x0=ans[0].rhs()
show(x0)

Doing, factor(2x^2-19x+24), displays, (x - 8)(2x - 3).

click to hide/show revision 2
retagged

Get Sage to display the 2nd x value, when function is set to 0?

I did the following and only got 3/2 as an answer, instead of getting 3/2 & 8, as an answer:

ans=solve(2*x^2-19*x+24==0,x)
x0=ans[0].rhs()
show(x0)

Doing, factor(2x^2-19x+24), displays, (x - 8)(2x - 3).

click to hide/show revision 3
retagged

Get Sage to display the 2nd x value, when function is set to 0?

I did the following and only got 3/2 as an answer, instead of getting 3/2 & 8, as an answer:

ans=solve(2*x^2-19*x+24==0,x)
x0=ans[0].rhs()
show(x0)

Doing, factor(2x^2-19x+24), displays, (x - 8)(2x - 3).