Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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

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]))

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]))