List Archives > 
Maple User Group List Archive > 
Archive by date > 
This Month By Date > 
This Month By Topic
[MUG] minimizing functions - question
| [MUG] minimizing functions - question |
|
Author: Alexander Serebrenik
Posted: Tue, 4 Jun 2002 11:11:16 +0200 (
|
>> From: Alexander Serebrenik "Alexander.Serebrenik"
Dear Maple users,
I try to find the minimal value of an interval-defined function as
following:
> h := x -> if x < 5 then t-x^2 else x+t end if ;
h := proc(x)
option operator, arrow;
if x < 5 then t - x^2 else x + t end if
end proc
> minimize(h(x,t), x = 0..7, t=10..14);
Error, (in h) cannot evaluate boolean: x < 5
However, the minimal value as required can be easily computed by humans!
Best regards,
Alexander
|
[View Complete Thread]
Previous by date: [MUG] Waterloo Maple, Inc. testing standards?, Vladimir Bondarenko
Next by date: [MUG] Re: Maple --> Mathematica convertion, Dr Francis J Wright
Previous thread: [MUG] Plotting a point, Peter Harmand
Next thread: [MUG] Maple --> Mathematica convertion, Vladimir Bondarenko
|