First time here? Check out the FAQ!

Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

asked 10 years ago

Phoenix gravatar image

How to pick out the largest root of an equation?

I tried the following but it didn't work,

a, x= var('a,x'); p = x^2 - 7ax + 5; a=5; m = max((p == 0).solve([x])) m

click to hide/show revision 2
No.2 Revision

How to pick out the largest root of an equation?

I tried the following but it didn't work,

a, x= var('a,x'); var('x'); p = x^2 - 7ax + 5; a=5; m = max((p == 0).solve([x])) m0).solve([x]))

click to hide/show revision 3
No.3 Revision

How to pick out the largest root of an equation?

I tried the following but it didn't work,

x= var('x'); p = x^2 - 7ax + 5; a=5; m = max((p == 0).solve([x]))