Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

problem with solving equation and finding the maximum and minimum

Hi, i'm trying to find the Root of a function, but i could only get one point while there should be another 3 points, i also tried to find the Inflection, maximum and minimum points, but error appeared, though when i change the equation iw works well. Please someone help me it's driving me crazy since yesterday!

Thank you very much

reset()

P.<x> = QQ[]

f=log(1+x^2)-((exp(-x))(cos(x)))+((x^2)(sin(x)))-(log(sqrt(1991)))

find_root(f, -5,5)

f1 = f.derivative()

f2 = f1.derivative()

show(f1)

show(f2)

minimax_candidates = set([e for (e, mult) in f1.roots()])

minimax_candidates

Inflection = set([e for (e, mult) in f2.roots()])

Inflection

minimax = list(minimax_candidates.difference(Inflection))

minimax = [(e, f(e)) for e in minimax]

minimax

problem with solving equation and finding the maximum and minimum

Hi, i'm trying to find the Root of a function, but i could only get one point while there should be another 3 points, i also tried to find the Inflection, maximum and minimum points, but error appeared, though when i change the equation iw works well. Please someone help me it's driving me crazy since yesterday!

Thank you very much

reset()

reset()      

P.<x> = QQ[]

QQ[] f=log(1+x^2)-((exp(-x))*(cos(x)))+((x^2)*(sin(x)))-(log(sqrt(1991)))

f=log(1+x^2)-((exp(-x))(cos(x)))+((x^2)(sin(x)))-(log(sqrt(1991)))

find_root(f, -5,5)

find_root(f, -5,5)

f1 = f.derivative()

f.derivative()

f2 = f1.derivative()

f1.derivative() show(f1)

show(f1)

show(f2)

show(f2)

minimax_candidates = set([e for (e, mult) in f1.roots()])

f1.roots()]) minimax_candidates

minimax_candidates

Inflection = set([e for (e, mult) in f2.roots()])

f2.roots()]) Inflection

Inflection

minimax = list(minimax_candidates.difference(Inflection))

list(minimax_candidates.difference(Inflection))

minimax = [(e, f(e)) for e in minimax]

minimax]

minimax

minimax