A scientific and graphing calculator that gives exact answers, solves equations and works fully offline.
Download · Install · Privacy · More apps
Status: 1.1. The calculator, graphs, equations, systems, inequalities, calculus and history work. It is not on the App Store: install it as described under Installing. Expect rough edges and answers the solver cannot give yet (it says so rather than guessing).
- Exact answers.
√12 + √3is3√3,sin(15°)is(√6 − √2)/4,1/3 + 1/6is1/2, with the decimal value beneath when that helps. - Equations, systems and inequalities. Exact solutions where there is a closed form (
x² − 5x + 6 = 0,sin x = 1/2,x² + y² = 10withxy = 3), with the graph under the answer and its roots marked. - Calculus. Derivatives, integrals, limits and sums, with exact answers (
∫ x eˣ dx,lim (1 + 1/x)ˣ = e). - Matrices and vectors. Sums, products, powers, the inverse, determinant, rank, eigenvalues, and the dot and cross products, all exact, on a keyboard page of their own.
- Statistics and probability. Mean, median, mode, quartiles, variance and standard deviation of numbers, a column or a table of data
(with frequencies), correlation, and linear, polynomial, exponential, power and logarithmic regressions drawn with their data (
stats(…),linreg(…)); the binomial, Poisson, geometric, hypergeometric, uniform, exponential, normal, Student's t, χ² and F distributions (binomcdf(10, 0.3, 4),normalinv(0.975),tcdf(2.1, 12)), exact where they are exact, anderf,Γand the incomplete gamma and beta functions to any number of digits. On keyboard pages of their own (Statistics, Probability); see docs/statistics.md. - Modes for the keyboard. In Settings the keyboard can be set to Standard (Basic, Functions, Trig, Calculus), Matrices (Basic, Functions, Trig, Matrix) or Statistics and probability (Basic, Functions, Statistics, Probability), as the modes of a calculator show the keys for what it is used for; a chip beside the angle unit always says the mode (STANDARD, MATRIX or STAT) and changes it. Every function can be typed in any mode, and answers do not depend on it.
- A maths keyboard. Stacked fractions, roots and powers as you type; hold a key with a dot to slide to its alternatives.
- For everyone. Formulas are given to VoiceOver as words (fractions, roots and matrices included, in English and Japanese), the graph is described and offered as an audio graph, and it can be moved and zoomed by actions; the controls are large enough to hit; larger text and the setting that tells curves apart without colour are followed. This is checked by tests that read the accessibility tree and by Xcode's accessibility audit; it has not been listened to with VoiceOver on a device, and reports from people who use it are welcome. See docs/accessibility.md.
- On the iPad. The layout follows the width of the window, so it works full screen, in a resized window and in narrow ones (under 640 pt wide it is the iPhone layout): two pages of keys at once, the answer beside the graph, and a column of earlier problems. A hardware keyboard types formulas (Tab goes from cell to cell of a matrix; ⌘C, ⌘V, ⌘Y and ⌘, are in the menus).
- History, English and Japanese. Everything is worked out on the device: no ads, no accounts, no network access.
Mantissa is not in the App Store. Each release is an unsigned .ipa, on purpose: sign it with your own Apple ID through a
sideloading tool such as AltStore or Sideloadly.
- Download
Mantissa-x.y.z-unsigned.ipaand its.sha256from the latest release. - Check the file:
shasum -a 256 -c Mantissa-x.y.z-unsigned.ipa.sha256. - Open the
.ipain the sideloading tool and install it on your iPhone or iPad.
More about signing and its limits is under Installing. To build it yourself, see Building from source.
Mantissa works out everything on your iPhone or iPad. It has no server, no account, no advertising and no analytics, and asks for no permission. Your history and settings stay in the app's own storage on the device. Nothing is sent anywhere. Details: PRIVACY.md.
What it does (the maths is in the MantissaCore package, which has no dependencies; the app is a thin screen on top):
-
Arbitrary-precision integers (
BigInt). -
Exact fractions (
Rational), including exact parsing of decimals such as0.1and2.5e-3. -
Arbitrary-precision decimals (
BigDecimal) with π, e, square roots, powers,exp,ln,log, the trigonometric, inverse trigonometric and hyperbolic functions, rounded to the last digit (checked against Python'sdecimalat 15, 50 and 100 digits). -
A calculator engine: type
√12 + √3,sin(15°),1/(1+√2),(x+1)*2or5!and get the exact answer (3√3,√6/4 - √2/4,-1 + √2,2x + 2,120) and a decimal approximation to any precision. Radians, or degrees with the ° sign (sin(15°)); English or Japanese full-width input. -
An iPhone and iPad app on top of the engine: a maths keyboard with stacked fractions and roots, a live exact and decimal answer, a history of solved problems (saved on the device), and graphs of functions of x with their roots, extrema and crossings marked, solutions of equations (exact where there is a closed form, complex ones included, the rest as decimals), equations with roots, absolute values, exponentials, logarithms and trigonometric functions (
sin x = 1/2isπ/6 + 2πnor5π/6 + 2πn), systems of equations, and inequalities in one unknown (x² > 4isx < −2 or x > 2). English and Japanese (the language can be chosen in the app). -
An answer with an unknown in it also shows its expanded and factored forms (
x² − 5x + 6is(x − 2)(x − 3)), and a fraction with common factors is shown simplified; this works with several unknowns too ((a² − b²)/(a − b)isa + b). A sum with a factor in every term shows it taken out (x eˣ − eˣiseˣ(x − 1)). Radians or degrees, and the number of digits, are settings. -
Calculus: derivatives (
d/dx), integrals (indefinite, definite and improper), limits (including at ∞ and one-sided) and sums and series, with exact answers (∫ x e^x dx,lim (1 + 1/x)^x = e,Σ 1/k² = π²/6).
The keyboard places ∫, Σ, lim and d/dx with boxes for their expression, variable and ends.
log with a base is typed with its base small below it (log₂(8)), and a small + or − after the point of a limit means from above
or from below.
- Also:
mod,min,max,sign, the real and imaginary parts, conjugate and argument of a complex number,atan(y, x), and the reciprocal trigonometric and hyperbolic functions with their inverses. - Trigonometric inequalities (
sin x > 1/2isπ/6 + 2πn < x < 5π/6 + 2πn), trigonometric identities in answers (sin²x + cos²xis 1,tan x cos xissin x,1/cos²x − tan²xis 1), the Gaussian integral (∫ e^(−x²) dxover the line is √π) and the integrals of sec and csc. - Integrals with the square root of a quadratic (
∫ √(x² + 1) dx,∫ x²/√(1 − x²) dx,∫ dx/(x²√(x² + 1))) and the by-parts integrals of the inverse trigonometric and hyperbolic functions (∫ x asin x dx). - An equation with several letters (
v = u + at) is solved for one of them, and a row of letters above the answer solves it for another (t = (v − u)/a). - Hold a key that has a dot in its corner and slide to the alternative you want (a tick is felt on each), then let go; AC clears
every line, and the parentheses key can put in a single
(or). - Matrices and vectors, worked out exactly: sums, products, powers (
[[1,2],[3,4]]^(-1)is[[−2, 1], [3/2, −1/2]]), the determinant, inverse, transpose, trace, rank, reduced row echelon form, eigenvalues and eigenvectors, the dot and cross products and the length of a vector, with numbers, roots,ior letters in the entries. The Matrix page of the keyboard (in the Matrices mode, set in Settings) places a matrix of any size up to 10 × 10 with a cell for each entry (a comma moves to the next cell, return to the next row), and adds or removes rows and columns. A matrix written as text,[[1,2],[3,4]], is read too. - Letters for matrices: write
A = [[1,2],[3,4]],B = …andC = A²B + A⁻¹on separate lines and every letter that can be worked out is, whatever the order of the lines. An unknown matrix is found when it is only multiplied, added or turned over (A X = BgivesX = A⁻¹B,X A = BgivesX = BA⁻¹,A X + B = C,Xᵀ = A); a matrix with no inverse or of the wrong size is said so, and what cannot be undone (X² = A) is left alone. - The letters keyboard (
abc) has Latin letters with a number row and shift, the Greek alphabet and a page of symbols, and is as tall as the maths keyboard, so the formula does not move when it opens. - Tap the formula to put the cursor there, also inside a fraction or an exponent.
- Paste a formula from anywhere (
2x^2 + sqrt(3)) and it is laid out like one typed on the keyboard; hold the answer to copy it as text or to use it as the next input; hold the delete or arrow key to repeat it. - Systems such as
x² + y² = 10, xy = 3, logarithms of powers of a prime (ln 8is3 ln 2, solog₂x + log₄x = 3gives 4), and a sum of fractions in several letters as one fraction (1/x + 1/yis(x + y)/(xy)). - Graphs: tap a curve to read its coordinates, hold and drag to follow it, and open it full screen.
- Graphs of circles and other curves in x and y (
x² + y² = 25, with the intercepts marked) and shaded regions for inequalities (y > x², dashed where the edge is not included); a line and a circle show where they cross.
There is no App Store build and no signed build. Each release has an
unsigned Mantissa-<version>-unsigned.ipa and its SHA-256 (.sha256). iOS only runs apps that are signed, so you sign it yourself with your
own Apple ID, using a sideloading tool such as AltStore or Sideloadly. Their
instructions apply; this project does not run or endorse either.
A free Apple ID is widely reported (blog posts and forums, not an official statement from Apple) to give apps that expire after 7 days, which a sideloading tool can renew, and to allow only three such apps at a time. A paid Apple Developer Program membership is not needed for either way to work.
Check the download against the published checksum before installing it:
shasum -a 256 -c Mantissa-<version>-unsigned.ipa.sha256Needs a Mac with a recent Xcode (Swift 6; it was built with Xcode 27.2) and XcodeGen (brew install xcodegen).
The app targets iOS 17 or later.
git clone https://github.com/tinylevers/Mantissa.git && cd Mantissa
cp Config/Local.xcconfig.example Config/Local.xcconfig # put your Apple team ID in it
xcodegen generate
open Mantissa.xcodeproj # run on a device or a simulatorThe engine alone builds and tests without Xcode projects: swift build and swift test.
Checked by the author on the iOS 27.0 simulator (Xcode 27.2, macOS 26.6), which is where the automated app tests run, and, for 0.28.0, on an iPhone 12 Pro with iOS 18.6.2 (the screens and the graph) and an iPad Pro 11-inch (2nd generation) with iPadOS 18.7.2 (starting, portrait and landscape, history and settings, the two blocks of keys, Split View and Slide Over, the graph; a hardware keyboard was not tried on it). The iPad layouts were also looked at on the iPad Pro 13-inch and iPad mini simulators (portrait and landscape, windows resized down to 375 pt wide, the largest text sizes). The app has been built for a Mac as "Designed for iPad" but not run there. The accessibility work of 1.0.0 was checked on the simulators with Xcode's accessibility audit and tests that read the accessibility tree; VoiceOver speaking it, Switch Control, Voice Control and Full Keyboard Access were not tried. Nothing else has been tried: other devices and iOS versions should work (the deployment target is iOS 17) but are not verified. The iPhone is used in portrait, the iPad in any orientation.
Mantissa is for studying and everyday sums, not for work where a wrong digit costs something; the GNU General Public License gives no warranty (see LICENSE). What is checked:
- Exact answers (
3√3,π/6 + 2πn,ln 2) are built from whole-number arithmetic and are exact. An antiderivative is differentiated and compared with the integrand at several points before it is shown, and one that does not match is dropped. A solution is substituted back where that can be done. A solver that cannot find an answer says "not supported yet" rather than guessing. - Limits are the least certain part: they are found by substitution, or from a sequence of values at high precision that is recognised as a known number, and an unusual function can fool the second.
- Decimals are rounded to the digits asked for (6 to 30 in Settings; 50 inside). The functions are computed with 15 guard
digits and compared, in the tests, with Python's
decimalat 300 digits: the last digit has to be the same, not just close. Rounding can still differ in the last digit where the true value lies within about 10⁻¹⁵ of a rounding boundary. - Graphs and the points marked on them (roots, extrema, crossings) are found with ordinary floating-point numbers (about 12 digits), enough to place a point, not to read digits from. Use the answer line for digits.
- A numerical root (
x = cos x) is found inside −100 to 100 only, and a root outside it is not claimed or ruled out. - Anything whose value is astronomically large (
e^1000000as a bound, a power with thousands of digits in the exponent) is given up on, not approximated.
The numbers behind the engine are tested against reference values made by Python, which has its own arbitrary-precision integers and decimals, so the tests do not check the Swift code with itself. To make the reference files again (they must come out byte for byte the same, as the seed is fixed):
python3 tools/gen_number_vectors.py # BigInt and Rational
python3 tools/gen_decimal_vectors.py # BigDecimal and the functionsRandom inputs, solved and compared with a naive evaluator, run with the tests; MANTISSA_SEED=n and MANTISSA_SAMPLES=n widen
them. See docs/design.md for how each part reaches its accuracy.
swift build
swift testThe engine is a Swift package with no dependencies (Sources/MantissaCore); the SwiftUI app (App) sits on top of it and
adds no maths. See docs/design.md, and AGENTS.md for a map of the files.
xcrun swift-format lint --strict -r Sources Tests Package.swift
swift testMantissa is free software under the GNU General Public License, version 3 (GPL-3.0): Copyright (c) 2026 Kosuke Satake (see LICENSE). It has no third-party code or data: see THIRD_PARTY.md.
Mantissa is the official name of this project and https://github.com/tinylevers/Mantissa its official source; forks use another name. The iPhone app on the App Store is offered under Apple's standard end user licence agreement.
This project accepts issues, not code contributions.
This app was built with the help of Claude (Anthropic) through Claude Code; design, review and testing are by Kosuke Satake. Anthropic does not endorse this app.





