Keywords

Navigation:  Language Reference > Keywords >

Keywords

Previous pageReturn to chapter overviewNext page

Before the actual equations, three sections can be entered denoted by the keywords constants, parameters and variables. This is shown in the example below:

 

constants

 real basefrequency = 60;

 real pi = 3.14159265;

parameters

 real amplitude = 1;

variables

 real plot;

equations

 plot = amplitude * sin (basefrequency*2*pi * time);

 

The order of appearance of these sections must always be: (1) constants, (2) parameters and (3) variables. The sections are optional. If you do not use constants parameters or variables, these sections may be omitted.