Question: How do I maximize exp(x) when x <= 1

What it is wrong with this one-line-document:

 

with(Optimization): nx := Maximize(e^x, {x <= 1.})

 

that give this answer:

 

[9.99990000000000000*10^19, [e = 9.99990000000000000*10^19, x = 1.]]

Please Wait...