Skip to content

JuStFOrFUn83/IMath

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

IMath

IMath is a numerical math interpreter for calculating the result of a mathematical expression.

Usage

Just clone the project and run the file Interpreter_test.py for command line execution or GUI.py for graphical execution.

Attributes

Supported functions:
sin, cos, tan, cot, sec, csc
asin, acos, atan, acot, asec, acsc
sinh, cosh, tanh, coth, sech, csch
asinh, acosh, atanh, acoth, asech, acsch
abs, max, min, log, nlog, tlog, exp, gcd, factorial, double factorial

log -> Logarithm with natural base
tlog -> Logarithm with 10 base
nlog -> Logarithm with n base
factorial -> n!
double factorial -> n!!

Supported constants:
e, pi

rad & deg are used for angle format conversions.

Example

1 + 1 / 2 * ((-1) ** 0.5 / 2 * 10) / 3 / 4 / 5 ^ 100 - 10 / 2j + sin(cos(tan(cot(sec(1+1j))))) - 22 * sin(22.5 rad)
1 + max(1, 2, 3, min(100, 200)) / log(pi) + tlog(1000) ^ nlog(16, 2) + sinh(1+1j) - abs(-1.1)

Haππy math :)))