easy_expression_eval 0.2.10
Easy Expression Eval (eeeval)
Installation
-
Add the dependency to your
shard.yml
:dependencies: eeeval: github: eltony81/easy_expression_eval
-
Run
shards install
Usage
require "eeeval"
expression = "(14.2 + 14.2) * 4 / 2 * 10.5 ^ (2 / 0.5) + sin(2^1+cos(2+7.9-6))"
result = EEEval::CalcFuncParser.evaluate(expression)
puts result
Note: the current implementation does support log exp sin cos sqrt tan atan asin acos exp2 log10 log2
functions
Contributing
- Fork it (https://github.com/your-github-user/eeeval/fork)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
Contributors
- eltony81 - creator and maintainer
Repository
easy_expression_eval
Owner
Statistic
- 3
- 0
- 0
- 0
- 0
- over 1 year ago
- November 28, 2022
License
MIT License
Links
Synced at
Sat, 21 Dec 2024 20:02:58 GMT
Languages