Parameter Types
CPlot supports these types of parameters:
- Integer, optionally with a lower and/or upper limit
- Real, optionally with a lower and/or upper limit
- Complex, can have limits on the real and/or imaginary parts, or a maximum on the absolute value
- Angles are either real or complex:
- Real radians: [0, 2π]
- Real degrees: [0, 360] (use like sin(a°) in a function that uses radians).
- Complex: {exp(it) for t in [0, 2π]}
The difference to real/complex is the fixed range and (TODO) that they display a rotary knob instead of a slider to modifiy their value.
Defining and Changing Parameters
To create: Use the + button in the Parameters box.
To edit: Click on the name. At the bottom of the dialog is also a delete button.
To set the parameter's value, use either the sliders or enter any value into the matching text field. The text field will parse any
entered formula but the parameter stores only the current value, so if a parameter is set to sin(a), it will not update when the value of a changes.
Computed parameters can be defined as custom functions with no arguments.