Sequence to find the extreme points of a function?
I have been trying to construct a sequnce which taken a function f(x) and for some integer j scans a set to find the extreme point value.
f(x) = 1 / 2 x³ - 2x² + 2
Sequence(If(f'(j) ≟ 0, j), j, -3, 3, 0.5)
How ever the main problem is that this sequence cannot find the extreme value if its a fraction.
So any surgestions on that I am missing will be welcomed ? :)
p.s. I know there is a build-in function in Geogebra to find the extreme values, but I would to ignore that if possible.