A simple engineering calculator with support for complex numbers and various number systems.
The expression value calculation is implemented using IronPython, which explains the following features:
- The expression is not limited to one mathematical operation
2+3*4*(5+6*7)-sqrt(2) - If at least one operand is a real number, the result of the expression will be real
2/3=0and2./3=0.666666666667 - Special variable
_- stores the result of the last calculation - The implementation of mathematical functions is in the
calc.pyfile and can be supplemented or changed as needed.
Tabs:
- Regular
Operator Example addition 1+2subtraction 1-2multiplication 1×2,1*2division 11/2=5,11./2=5.5integer division 11//2=5,11.//2=5.0modulo 11%2=1,11.%2=1.0square x²11²,11^2,11××2,11**2,pow(11,2)square root √xsqrt(10),10^.5,pow(10,.5)power xⁿ2^3,2××3,2**3,pow(2,3)root ⁿ√xroot(8,3),8^(1./3),pow(8,1./3)exponent ℮ˣexp(2),℮^2,pow(℮,2)natural logarithm lnln(5),log(5,℮)common logarithm lglg(5),log(5,10)logarithm loglog(8,2)real part rere(1)=1,re(1+j)=1.0,re(j)=0.0imaginary part imim(1)=0.0,im(1+j)=1.0,im(j)=1.0argument argarg(1)=0.0,arg(-1)=π,arg(1+j)=π/4,arg(j)=π/2,arg(-j)=-π/2imaginary unit j1+j,2+3j,2+3×j,2+3*j - Trigonometry
- Trigonometric functions
sin,cos,tan,csc,sec,cot - Inverse trigonometric functions
asin,acos,atan,acsc,asec,acot - Hyperbolic functions
sh,ch,th,csch,sech,cth - Inverse hyperbolic functions
ash,ach,ath,acsch,asech,acth - Angle measure conversion functions
Description Sysntax radians to degrees rad→degrtd()radians to gradians rad→grdrtg()degrees to radians deg→raddtr()degrees to gradians deg→grddtg()gradians to radians grd→radgtr()gradians to degrees grd→deggtd()
- Trigonometric functions
- Constants
- basic math constatnts
π,℮ - submultipliers
Description Prefix Meaning milli m10^-3,1e-3micro u10^-6,1e-6nano n10^-9,1e-9pico p10^-12,1e-12femto f10^-15,1e-15 - multiple prefixes
Description Prefix Meaning kilo k10^3,1e3mega M10^6,1e6giga G10^9,1e9tera T10^12,1e12peta P10^15,1e15
- basic math constatnts
- SystemValue
- four fixed bases
bin,oct,dec,hex - arbitrary base from 2 to 16
- four variants of integer bit depth
8,16,32,64 - bitwise operations
Description Sysntax convertion to two`s complenet code negbitwise not ~bitwise or |bitwise xor ^bitwise and &
- four fixed bases



