next up previous contents
Next: Functions Up: Programming Previous: Oktave Mode

Maxima Mode

Branch if x==0 then ( xp:1 );
if x==0 then ( xp:1 ) else ( xp:2 );
Loop while x<17 do ( x:x+1 );
for i:0 step 1 thru 100 do ( x:x+i );
Jump return, continue, break
Function ttwo(x) := 2*x;
Block block( [x,y], x:1, y:1, z:z+x+y );
Textoutput printf('Ergebnis=%f', x);
Error error('Fehler');


next up previous contents
Next: Functions Up: Programming Previous: Oktave Mode
Helmut Dersch
2009-03-15