maxima of a function



Hello

Does Maxima have a command similar to the fMax that exist in Xcas (it is 
another program that does symbolic calculation). This command find the 
maximum of a function. For instance :
fMax(-x^2+2*x+1,x) return 1
fMax(x^3-5*x,x) return +inf and so on.

Best Regards