johnathonkoster / math Goto Github PK
View Code? Open in Web Editor NEWA Math library for Laravel 4
License: MIT License
A Math library for Laravel 4
License: MIT License
I want to used this library in my project which is based on laravel 5.3. Can you please upgrade this library to support laravel 5.3 version.
The EvalMathDriver is not accepting function names.
The ExecutionEngineInterface should define the following functions:
add
subtract
multiply
divide
mod
By doing this, the arithmetic operators can be removed from the EvalMathDriver
Its been a few months since laravel is upgraded to 4.1, please update your library to provide support for laravel 4.1.
Hi Johnathon,
Just read through your solve method and spotted something which looks like a bug:
https://github.com/JohnathonKoster/math/blob/master/src/Flare/Math/Drivers/EvalMathDriver.php#L159
$temp = $this->evaluatePostfixNotation($this->convertInfixToPostfix($matches[2]));
if (($temp = false) == false)
{
return false;
}
The IF block looks incorrect there. Not ran the code, but just thought I'd drop you a line.
The EvalMathDriver is treating the subtraction operator as a negation operator. It performs the subtraction, but also applies the negation operator.
I've tried for long...but didn't got how to setup this package in laravel 4, please specify the installation steps for this bundle.
The solution engine shouldn't rely on a switch
statement to select the function. This would mean that developer's would have to hack the solution engine if they added new functions to their driver.
The default EvalMathEngine is not registered user-defined variables.
The default EvalMathDriver should support the %
modulus operator.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.