Skip to content

paulherman/mathparser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Math Parser

The C++ can be used as an include library.

PHP example of how to use:

  • $expression = "square(e^t + 2)";
  • $parser = new CMParser();
  • $parser->load($expression);
  • $parser->addFunction("square", 1, function ($x) { return $x * $x; });
  • $parser->setParameter("t", 3);
  • echo $parser->evaluate();

About

A mathematical expression parsing library.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published