Each custom function that you write must conform to certain structure definitions.
The mcadincl.h file, located in the Custom Functions folder of your PTC Mathcad installation directory, contains the following data structures that allow you to define custom functions that PTC Mathcad can read: