FORMULA_CURVE

This element creates a curve defined by a mathematical formula (y=f(x)).

See the CURVE element attributes. The FORMULA_CURVE element does not have the persistent attribute since its value is computed automatically.

Name | Value Type | Default Value | Description | Comment | V. | Exp. |
---|---|---|---|---|---|---|

formula |
Empty. |
Mathematical formula for the curve. |
The formula can reference any other model data available (parameter, curve, surface...). |
1.6 |
No | |

variable |
string |
x |
name of the "x" variable in the formula. |
You can customize the name of the traditional "x" variable in y=f(x) formula so that it becomes y=f(variable) |
1.6 |
No |

Events | ||||||

value_changed |
the event is triggered anytime the value of the object has changed. |
2.0 |

The code below creates a curve ("my_curve") that can be displayed on a graph. The name of the variable used in the formula is customized ("z").

<FORMULA_CURVE id="my_curve" formula="cos(z)" variable="z"/>