How to perform mathematical operations?

Asked by Manel

It would be desirable to be able to perform multiplications, additions and so on. Is there any easy way to do so?

Question information

Language:
English Edit question
Status:
Answered
For:
Zaluum Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Frederic PO (fredericp) said :
#1

Not in the current release.
We should open a blueprint regarding this issue, with full discussion on what kind of expressions must be supported and how to implement them in multiple devices and languages. If we support operations only on the server-side, it will be fully supported with the GroovyBox implemetation, but if we aim to support slave-side operations they will have to be translated to the slave device's language.
Maybe we should strip down the expressions of some language like python, java, groovy, fortran (others?) and follow their conventions. We have to take care of the implementation issues arising on limited devices: floating point restrictions, division by zero policies, recursive expressions, expensive operations (sqrt, pow,...) and others.

Revision history for this message
Frederic PO (fredericp) said :
#2

Now implemented with Math Box.

Can you help with this problem?

Provide an answer of your own, or ask Manel for more information if necessary.

To post a message you must log in.