Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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)
- Host: GitHub
- URL: https://github.com/poeschko/mathador
- Owner: poeschko
- Created: 2012-05-07T22:13:10.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2012-05-07T22:58:03.000Z (over 12 years ago)
- Last Synced: 2023-03-23T08:37:54.054Z (over 1 year ago)
- Homepage:
- Size: 156 KB
- Stars: 32
- Watchers: 6
- Forks: 7
- Open Issues: 1
-
Metadata Files:
- Readme: README
- Changelog: History.cpp
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