A Math FB allows you to develop new functions that might be useful for your modelling.
[Above GraphicArea]: Modelling FB toolbar > Maths FB 


Menu: 
Add menu > Add Maths FB 

DialogBox: 
Note: The Calculator tool is behind the Maths dialogbox  drag the Math FB dialogbox to one side! 

What for: 
To use custom functions that are not available with other FBs. 

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


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


Tutorial: 
Tutorial 18: Maths FB 
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. 
INPUTCONNECTORS: 'Wire Numbers' + 'DataChannels' Together we identify each wire and and each data channel in an equation as: 'DataChannel(WireNumber)' 

'WireNumber' Each wire [inputconnector] is given a number, which we can think of as a 'wirenumber'.
'DataChannel' Each wire has 3[three] 'datachannels'
We use these three letters even if the data at the input is not a motionvalue. Thus, together, we use the notation as in these examples: p(0) : The 'p' indicates Datachannel 1, the '0' indicates the top wire/inputconnector a(2) : The 'a' indicates Datachannel 3, the '2' indicates the third[3rd] inputconnectors from the top v(1) : The 'v' indicates Datachannel 2, the '1' indicates the second[2nd] inputconnector from the top 

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 leftside of each equation shows whether the syntax of the equation is correct or not correct. Each outputconnector has one equation for for each DataChannel. For example: the equation : v(0)*p(1). It multiplies:
by
