Skip to content

kra53n/calc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

83 Commits
 
 
 
 
 
 
 
 

Repository files navigation

calc - simple calculator

calc - calculator with supproting math types like matrix, complex numbers, etc. Can be run from the terminal in a REPL (Read-Eval-Print-Loop) manner or by executing lines by lines from an Xml file.

Types

Type Declaration
Matrix matrix((1 1) (1 1)) or mx((1 1) (1 1))
Complex complex(1 1) or cx(1 1)
Big int 2354672543213341212323
Fraction [1/2] or 1[1/2]
Just a number 777

Usage

Repl

$ calc
> a = 101
> b = 737
> a + b
838
>

Xml

$ calc --xml path/to/file.xml
838

Content of file.xml:

<calc>

<vars type="Num">
    <var name="a">101</var>
    <var name="b">737</var>
</vars>

<eval>
    a + b
</eval>

</calc>

About

Simple repl calculator

Topics

Resources

License

Stars

Watchers

Forks

Contributors

Languages