Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/poeschko/mathador

a simplistic implementation of the Mathematica language in C++ (not maintained anymore, consider using Mathics instead)
https://github.com/poeschko/mathador

Last synced: about 1 month ago
JSON representation

a simplistic implementation of the Mathematica language in C++ (not maintained anymore, consider using Mathics instead)

Awesome Lists containing this project

README

        

This is a simplistic implementation of some aspects of the Mathematica Language in C++. The main program is in Mathador.cpp and yields an interactive console program to enter queries.

Supported functions:

Basic arithmetic: Plus (+), Subtract (-), Minus (-), Times (*), Divide (/), Power (^), NonCommutativeMultiply (**), Abs

Elementary Functions: Sin, Cos

Numeric Evaluation: N

Lists: List, Length

Assignment: Set (=), SetDelayed (:=), UpSet (^=), UpSetDelayed (^:=), Increment (++), PreIncrement (++)

Tests: Equal (==), Unequal (!=), Less (<), Greater (>), LessEqual (<=), GreaterEqual (>=)

Logical operations: Not (!), And (&&), Or (||)

Flow control: CompoundExpression (;), If, For

Attributes: Attributes, SetAttributes, ClearAttributes

Evaluation control: Unevaluated

Expression structure: Head, FullForm

Functional operations: Function (&), Slot (#), SlotSequence (##), Apply (@@), Map (/@)

Pattern matching: Pattern (:), Blank (_), BlankSequence (__), BlankNullSequence (___), MatchQ

Rule application: Rule (->), RuleDelayed (:>), Replace, ReplaceAll (/.), ReplaceRepeated (//.)

Scoping: Module