Раздел 01
Numerical Calculations
Вычисления
The percent sign ( %) is a handy shortcut but it can occasionally lead to some unexpected results.
Here is an example.
> 4+Pi;
Now go back and re-execute the last line (i.e. %+10; ). Note that the output changes from to
Can you explain why?
The ditto symbol (%) represents the last number calculated by Maple . So after you executed the first three lines
Повторно выполняя команду %+10; , Maple прибавляет 10 к .
To avoid this sort of confusion assign names to each output:
> a:=4+Pi;
С официального разрешения © 2002 Waterloo Maple, Inc