A Math FB allows you to develop new functions that may not be available with other FBs.
Modelling FB toolbar > Maths FB [Toolbar is Above GraphicArea]: 


Menu: 
Add menu > Add Maths FB 

DialogBox: 
Note: The Calculator tool may be behind the Math FB dialogbox 

How to add: 
STEP 1: Add the Maths FB to the graphicarea


How to edit: 
STEP 2: Open the Maths FB dialogbox:

InputConnectors Click the Add Input button to add an inputconnector Add as many inputconnectors as there are parameters and variables in the equation. 

OutputConnectors Click the Add Output button to add an outputconnector Add as many outputconnectors as there are functions / equations you need to output. For each outputconnector, you can write an equation for three Data Channels(top image). How many input and outputconnectors? By example, to calculate Power from Torque × Velocity P = Ʈ . ω Power is the 'output'; Torque and Velocity are the 'inputs'. Thus, you need two inputconnectors and one outputconnector. 
Wire Number and DataChannels Together we identify each wire and and each data channel in an equation as: 'DataChannel(WireNumber)' 

WireNumber Each wire [inputconnector] has a number; its 'wirenumber', which start at 0
DataChannel Each wire has 3[three] datachannels. Each datachannel has a letter  p, v, and a [even if the data at the input is not a motionvalue.
Each variable in an equation is identified as DataChannel(WireNumber) Example2 p(0) : p = Datachannel 1, (0) = inputconnector 1 a(2) : a = Datachannel 3, (2) = inputconnector 3 v(1) : v = Datachannel 2, (1) = inputconnector 2 

Equations for each OutputConnectors There is one outputconnector when you add the Maths FB to the graphicarea. Each outputconnector has [3] three datachannels. In the image, we can see that we can write up to six equations [for two outputconnectors]. Three equations for each of the two outputconnectors [0,1] 

The top OutputConnector u is '0'. We can write three equations, one to each 'Output [0]: DataChannel # 0, 1 & 2 The next OutputConnector u is '1'. We can write three equations, one to each 'Output [1]: DataChannel # 3, 4 & 5. 

Output DataTypes dropdown box. All outputconnectors must have the same datatype.
For example, if you select 'Linear Coordinates', the
Notes: The Units inside the Maths FB are SI units: kilogram, metres, seconds, ... 

Valid Equations Click the 'Update' after you edit the equation to find if the syntax is correct or not correct. The syntax is corrected in some way if it is not correct.F or example, an equation may not have the correct number of parentheses. The reason is given as a message in the FeedbackArea. The at the left of each equation shows whether the syntax of the equation is correct. Each outputconnector has one equation for each DataChannel. For example: the equation : v(0)*p(1). It multiplies:
by
