Skip to content

atamas19/expreval

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

expreval provides an API to evaluate constant expressions


Setup

clone the repo, include "include/expreval.h" and compile "src/expreval.cpp" in your project to run tests git submodule update --init --recursive --remote and call make test


Supported operations

symbol meaning
+ Addition
- Subtraction
* Multiplication
/ Division
^ Exponentiation

Usage

call the evaluate function providing a well formed string as the expression

float result = expreval::evaluate("2+3*(-5+10)"); //  17

Other

project made by tamasdd19 and Robertkq

About

Sort of an university subject me and my colleague took interest in

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors