gabeiglio / Euler

Math Engine

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Euler

Euler is a mathematical expression evaluator. It features a recursive descent parser that directly compiles to bytecode (One pass)

Use

Simple arithmetic

> (2 + 12) * (2 - -2) / 1
56

Trigonometric functions (sin, cos, tan)

> sin(12)
-0.53657291

Features:

  • Arithmetic expressions (addition, substraction, division and multiplication, and exponenciation)
  • Trigonometric functions sin, cos, tan
  • Constants like pi and e

Installation

For now it has only been tested on OS X and clang so I would not be surprised if it only works on that enviroment. Just clone the project and run make in the src directory.

About

Math Engine


Languages

Language:C 99.6%Language:Makefile 0.4%