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