Menu

#612 int(), mod(), and other mathematical functions

Cantillon
closed
nobody
4normal
2016-09-13
2016-08-24
marshf
No

Please add int() and mod() functions to Minsky.

Even better, either add a hook to link to other FOSS which has a full complement of mathematical functionality (e.g. R) or incorporate a library of such functions into Minsky (e.g., an interpreted version of something like C++ math functions) to give the user the ability to incorporate all sorts of math functions on the fly.

Discussion

  • High Performance Coder

    • Milestone: Quesnay --> Cantillon
     
  • High Performance Coder

    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.

     
  • High Performance Coder

    • status: open --> closed
     
  • High Performance Coder

    Functions have been added as floor() and frac() to Minsky-1.x, and forward ported to the master branch.

     

Anonymous
Anonymous

Add attachments
Cancel





Auth0 Logo