681
edits
(→Rounding: Sneaky workaround by WoodSTokk from https://forum.flightgear.org/viewtopic.php?f=66&t=37698) |
(Start improving the lacking documentation of expression elements :)) |
||
Line 66: | Line 66: | ||
<tanh> | <tanh> | ||
<value> | <value> | ||
</syntaxhighlight> | |||
=== Table === | |||
The table expression uses the following syntax, similarly to the <interpolation> element:<syntaxhighlight lang="xml"> | |||
<table> | |||
<!-- put an input element here, this can be <property> or any other operation | |||
<entry> | |||
<ind>0.0</ind> <!-- the value of the input (independent value) --> | |||
<dep>0.0</dep> <!-- the value of the output (dependent value) --> | |||
</entry> | |||
... <!-- you can put as many entries as you want --> | |||
</table> | |||
</syntaxhighlight> | |||
==== Example ==== | |||
The table: | |||
{| class="wikitable" | |||
|0.0 | |||
|5.0 | |||
|- | |||
|0.5 | |||
|7.5 | |||
|- | |||
|0.9 | |||
| -5.0 | |||
|- | |||
|1.0 | |||
|25.0 | |||
|} | |||
translates to the following code:<syntaxhighlight lang="xml"> | |||
<table> | |||
<!-- put an input element here, this can be <property> or any other operation | |||
<entry> | |||
<ind>0.0</ind> | |||
<dep>5.0</dep> | |||
</entry> | |||
<entry> | |||
<ind>0.5</ind> | |||
<dep>7.5</dep> | |||
</entry> | |||
<entry> | |||
<ind>0.9</ind> | |||
<dep>-5.0</dep> | |||
</entry> | |||
<entry> | |||
<ind>1.0</ind> | |||
<dep>25.0</dep> | |||
</entry> | |||
</table> | |||
</syntaxhighlight> | </syntaxhighlight> | ||
edits