Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Seaus-tech/Calculator-App/llms.txt
Use this file to discover all available pages before exploring further.
Once you have Calculator App installed, the fastest way to learn it is to open a terminal and try things. This page walks you through every major feature with concrete input-and-output examples so you can hit the ground running.
Launch the App
Start the calculator by running:
The startup banner lists everything you can do, and a > prompt appears when the app is ready:
Simple Calculator - Type math expressions or 'quit'
Set variables: x=5
Use in math: x+3, 2*x, etc.
Solve equations: 6+x=7, 2*x-3=5
Functions: sqrt(16), 9**2, sin(pi/2)
Natural language: '9 squared', 'sqrt of 16', '5 cubed'
Fractions: 1/2 + 1/3, 2 1/2 + 3/4
Type 'meme' to toggle meme mode!
>
Feature Walkthrough
Basic Arithmetic
Fractions
Natural Language
Variables
Equation Solver
Math Functions
Meme Mode
Type any numeric expression at the > prompt. Standard operator precedence applies — multiplication and division are evaluated before addition and subtraction. Use ** or ^ for exponentiation.> 2+3*4
= 14
> (2+3)*4
= 20
> 9**2
= 81
> 100/4-5
= 20.0
Use parentheses to control the order of operations, just as you would in a math textbook.
Enter fractions directly using the / separator. Mixed numbers (a whole number followed by a fraction) are also supported — separate the whole part and the fraction with a space.> 1/2 + 1/3
= 5/6
> 2 1/2 + 3/4
= 3 1/4
> 3/4 - 1/4
= 1/2
> 1/3 * 3
= 1
Results are automatically simplified and displayed as mixed numbers when the value is greater than one. Whole-number results are shown without a denominator.Fraction arithmetic uses Python’s built-in Fraction type, so results are always exact — no floating-point rounding errors.
You can describe operations in plain English instead of using symbols. The natural language parser recognises a set of common phrases and converts them before evaluation.> 9 squared
= 81
> 5 cubed
= 125
> sqrt of 16
= 4.0
> square root of 144
= 12.0
Supported phrases:| Phrase | Equivalent |
|---|
N squared | N ** 2 |
N cubed | N ** 3 |
sqrt of N | sqrt(N) |
square root of N | sqrt(N) |
sqrt N | sqrt(N) |
Natural language phrases are case-insensitive, so 9 Squared and 9 squared both work.
Store a value in a named variable by typing name=value. The calculator records the assignment and confirms it. You can then use that name in any subsequent expression and the stored value will be substituted automatically.> x=5
x = 5
> x+3
= 8.0
> 2*x
= 10.0
> x**2 + 2*x + 1
= 36.0
Assign a new value at any time to update the variable:> x=10
x = 10
> x+3
= 13.0
Variable names are case-sensitive. x and X are treated as different variables.
Write an equation containing a letter and an = sign, and Calculator App will solve for the unknown variable. Both sides of the equation can contain constants and coefficients.> 2x+4=10
x = 3
> 6+x=7
x = 1
> 2*x-3=5
x = 4
> 3x=9
x = 3
The solver supports any single-letter variable name:You can write coefficients without an explicit * sign: 2x is interpreted as 2*x automatically.
A curated set of mathematical functions and constants is available at the prompt. No import or setup is required — just type the function call directly.> sqrt(16)
= 4.0
> sin(pi/2)
= 1.0
> cos(0)
= 1.0
> log(e)
= 1.0
> tan(pi/4)
= 0.9999999999999999
Available functions and constants:| Name | Description |
|---|
sqrt(x) | Square root of x |
sin(x) | Sine of x (radians) |
cos(x) | Cosine of x (radians) |
tan(x) | Tangent of x (radians) |
log(x) | Natural logarithm of x |
pi | π ≈ 3.14159… |
e | Euler’s number ≈ 2.71828… |
Trigonometric functions expect angles in radians, not degrees. To convert degrees to radians, multiply by pi/180: e.g. sin(90 * pi/180).
Type meme at any point to toggle meme mode on or off. When active, a handful of legendary internet expressions return humorous results instead of mathematically correct ones.> meme
Meme mode: ON 😂
> 9+10
= 21 😂
> 2+2
= 5 (quick maths)
> 1+1
= 11 (big brain)
Toggle it off again whenever you need real answers:> meme
Meme mode: OFF
> 9+10
= 19
Expressions containing 67 or 41 also get special meme treatment when meme mode is active, even if they are part of a larger calculation.
Quitting the Calculator
To exit the REPL, type quit at the prompt:
You can also press Ctrl+C at any time to exit immediately.
Any variables you have set during a session are stored in memory only. They are not persisted between sessions — each fresh calc-app launch starts with an empty variable store.