Skip to content

A small console application in C++ which parses and evaluates mathematic expressions

Notifications You must be signed in to change notification settings

pirofex/mathparser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mathparser

A small console application in C++ which parses and evaluates mathematic expressions.

Features

This parser can perform all basic arithmetic operations. In addition it supports brackets and several constants and functions:

Functions

  • sin(x)
    • Calculates the sinus
  • cos(x)
    • Calculates the cosinus.
  • tan(x)
    • Calculates the tangens.
  • sqrt(x)
    • Calculates the square root.
  • pow(x, y)
    • Calculates x cubed y.
  • log(x)
    • Calculates the natural logarithm.
  • ceil(x)
    • Rounds x upward, returning the smallest integral value that is not less than x.
  • floor(x)
    • Rounds x downward, returning the largest integral value that is not greater than x.
  • digsum(x)
    • Calculates the digitsum.

Constants

  • e
  • pi

About

A small console application in C++ which parses and evaluates mathematic expressions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages