next up previous contents
Next: Programming editor Up: Xcas tutorial Previous: The spreadsheet   Contents

Scripts

It is often interesting to execute several times the same sequence of commands. For example, you make a geometry construction or you fill certain variables with values before making a computation. For demonstration purpose, you want to execute each command separately (and not all at once like with Run file), but you do not want to enter them again and again. This is the purpose of Load script in the File menu. Make a text file with all your commands (e.g. by saving your session), then run File->Load script, this will enable 2 views, the first one is the equation writer with your script and its first line selected. Use the yellow button to select the appropriate second view (for example geo for a geometric construction). Now click on the exec button in the mode button bar of the eqw, this runs this command and move the selection to the next command.



giac documentation written by Bernard Parisse