Quick Started

Less than 1 minute

# Quick Started

# Calculator

from whiteCalculator import Calculator # import the Calculator
c = Calculator()
ans = c.run("1+1")
print(ans)  # Output: 2
1
2
3
4

# You can use this as your calculator:

print(c.run("50pi(99^6)"))  # Output: 147887356042940.12

print(c.run("Ans/4"))  # Output: 36971839010735.03
1
2
3

# Formula

from whiteCalculator import Formula # import the Formulas
ans = Formula.PythagorasTheorem.getC(a=3, b=4)
print(ans)  # Output: 5
1
2
3

# You can even calculate it like this:

ans = Formula.LF.getF(u="2^3", v="√(4)") # LF == LensFormula
print(ans)  # Output: 1.6
1
2