Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add .Flow v2 math functions and algebraic operators #9

Open
nicolasbotanic opened this issue Oct 26, 2018 · 0 comments
Open

Add .Flow v2 math functions and algebraic operators #9

nicolasbotanic opened this issue Oct 26, 2018 · 0 comments

Comments

@nicolasbotanic
Copy link
Collaborator

nicolasbotanic commented Oct 26, 2018

Please check https://github.com/SeedVault/flow "Algebraic operators and mathematical functions" section. You will see all .Flow v2 instructions needed to gain math features.

You can see the code of others simple .Flow instructions in file engines/dotflow2/core_functions.py methods df2_eq, df2_gt, df2_lt, etc... Add the code in this file.

You can easily test .Flow v2 instructions using the provided console:

BBOT_ENV=development python -m channels.console.app joe testbot 1 nodebug

This will enter to the provided demo bot's console as userid "joe"
You can run any .Flow instruction with the command df2:

Expected result with $add:

You: :df2 add(2, 2, 2)
Testbot: 6

And so on...

It is welcomed and encouraged to add more instructions than what we have in the documentation

@nicolasbotanic nicolasbotanic changed the title Add support for .Flow v2 algebraic operators Add support for .Flow v2 math functions and algebraic operators Oct 26, 2018
@nicolasbotanic nicolasbotanic changed the title Add support for .Flow v2 math functions and algebraic operators Add .Flow v2 math functions and algebraic operators Oct 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant