Dear helpfull community. I stumbled over a problem which I cloud not sort out even after hours of trying to find the error I do.
A simple IF statement does not work when I attach a unit to a value.
tt := 80*Unit('knot');
if tt < 100*Unit('knot') then
lprint(got*it);
end if;
Surprisingly Maple can evalue the expression if a use a = instead of the <. File should be attached.
Please can anyone tell me what I did wrong.
 ))](/view.aspx?sf=233727_question/1e3abd3aa428a2d2b45f9636fd44283b.gif)

 

|
Problem 1 ( If Statement with units)
|
|
The if statement could not evealuated with the logical operator < or > when a unit is attached to the value

But it works if the logical operator " = "

Anyone an idea why.
|


|
Download Problem_IF.mw