Comments (2)
I found class level comment in ComplexEvaluator class
* ~~~
*
* TODO: handle user specified functions
*
*/
class ComplexEvaluator implements Visitor
So looks like it's not implemented yet ;/
from math-parser.
If you know what functions you want to support, you can do this by creating your own custom versions of the Lexer and the Evaluator.
If you want to support arbitrary user-defined functions, there is currently no easy way to do that, but there might be in the next major upgrade. I'm working (somewhat infrequently) on refactoring some of the code to make it easier to extend the lexer and evaluator.
from math-parser.
Related Issues (20)
- Too much useless dependances in composer HOT 1
- PHP_Timer not found, old phpunit version ? HOT 2
- Unknown constant `i` HOT 3
- Negative numbers on the right hand side of an operator throw a Syntax Error HOT 4
- Questions about functions using commas and ** operator HOT 3
- Issue with variable e HOT 3
- improve/fix type hints HOT 1
- New Operator request HOT 1
- Max,Min Functions HOT 1
- Support PHP 8 HOT 2
- Adding custom constants
- Improve exception usability HOT 2
- Support currency/dollar value
- it is required to add support for the % operator
- How to extract all variables from an expression?
- Evaluator.php triggers PHP type error HOT 1
- Support fraction shorthand operator HOT 4
- Parser.php tries to call unknown function HOT 2
- Guide for new users HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from math-parser.