From FlightGear wiki
Revision as of 17:47, 16 December 2010 by T3r (Talk | contribs) (FPE checks)

Jump to: navigation, search
WIP.png Work in progress
This article or section will be worked on in the upcoming hours or days.
See history for the latest developments.


Expressions are a feature of the SimGear library and provide a nice way of implementing complex math formulas using XML syntax. They are supported in many systems within the FlightGear code. Beware: Expressions do not check if your math creates floating point exceptions, like division by zero, square root of a negative number etc.


Expressions are supported in

Sample Expressions

This is a sample expression for c = sqrt(a*a + b^2)


Supported elements

<abs> (same as fabs)
<difference> (same as dif)
<product> (same as prod)