PHPackages                             rodriados/mathr - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. rodriados/mathr

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

rodriados/mathr
===============

Math expressions: parser and evaluator.

v3.0(5y ago)31.3kMITPHPPHP &gt;=8.0

Since Jul 21Pushed 3y ago2 watchersCompare

[ Source](https://github.com/rodriados/mathr)[ Packagist](https://packagist.org/packages/rodriados/mathr)[ RSS](/packages/rodriados-mathr/feed)WikiDiscussions master Synced today

READMEChangelog (3)DependenciesVersions (6)Used By (0)

Mathr
=====

[](#mathr)

[![license MIT](https://camo.githubusercontent.com/891419a00e04aa0e311068fa8a04eec92cab4f7026c76278279bf2a1da50e578/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d6c69676874677265792e737667)](https://camo.githubusercontent.com/891419a00e04aa0e311068fa8a04eec92cab4f7026c76278279bf2a1da50e578/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d6c69676874677265792e737667)[![version 3.0](https://camo.githubusercontent.com/3dbd2b3a3cecfc5391b9541edcc5cd42363b07441642c7eda17a77f7c292fecb/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f76657273696f6e2d332e302d677265656e2e737667)](https://camo.githubusercontent.com/3dbd2b3a3cecfc5391b9541edcc5cd42363b07441642c7eda17a77f7c292fecb/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f76657273696f6e2d332e302d677265656e2e737667)[![Build Status](https://camo.githubusercontent.com/6463e8956495ba01e565449e63e6e204af615987e152ef7fa1001f04c3cc8fbb/68747470733a2f2f7472617669732d63692e6f72672f726f64726961646f732f6d617468722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/rodriados/mathr)[![Coverage Status](https://camo.githubusercontent.com/10ef7cf9d9d5e49522330d38443c561b7d9582c8d36587327c7d20311c85926c/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f726f64726961646f732f6d617468722f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/rodriados/mathr?branch=master)

Mathr is a fast mathematical expression parser, evaluator and calculator with some added juice.

Usage
-----

[](#usage)

The simplest usage possible for Mathr is by simply sending in a math expression.

```
