int(), mod(), and other mathematical functions
System dynamics program with additional features for economics
Brought to you by:
hpcoder,
profstevekeen
I will take this issue as adding int() and frac() (fractional part), essentially implementing the two functions that make up the standard C call modf().
In terms of allowing user defined functions, there are two aspects to this. One is to add an expression interpreter (such as muParser), but this really only provides a convenience layer, as Minsky should already be providing all the base numerical functions, and there should be some equivalence between textual expressions and graphical networks.
The second aspect is to enable users to provide compiled modules implementing user functions. This opens up a quite a bit of extensibility, as it allows users to provide custom algorithms. The custom algorithm needs to be provided as a dll or dynamic library appropriate for the platform.
Neither of these features have been ticketed yet, but certanly have been thought about.
Functions have been added as floor() and frac() to Minsky-1.x, and forward ported to the master branch.