Skip to content

Mantissa 1.1.0

Choose a tag to compare

@kosuke-satake kosuke-satake released this 16 Nov 02:31
· 15 commits to main since this release

Mantissa 1.1.0 replaces 1.0.0. It adds statistics and probability; the arithmetic that was already there is unchanged.

  • Statistics of data. mean, median, mode, min, max, range, sort, count, total, sumsq, the sample and population variance and standard deviation (variance, stdev, varp, stdevp), quartile, iqr and percentile, of numbers typed one by one, of a column, or of values and their frequencies; cov, corr, slope and intercept of a table of two columns or two columns; and stats(…), a report of all the usual ones. Exact for exact data: the mean of fractions is a fraction and a standard deviation is a root. A column has up to 200 rows; in a column or a two-column table, Return after a value starts a new row.
  • Regression. linreg and polyreg (degree 1 to 6) are exact; expreg, powreg and logreg are worked out to 60 digits. The report says which curve was fitted, and the graph shows the data as dots with the curve.
  • Distributions. Probability, cumulative probability and inverse for the binomial, Poisson, geometric, hypergeometric, uniform and exponential distributions (binomcdf(10, 0.3, 4), exact fractions, with e^−λ where the distribution has it), and for the normal (normalcdf, normalinv), Student's t, χ² and F distributions (tcdf(2.1, 12), any positive degrees of freedom, to any number of digits). The cumulative probability is written so that a small tail keeps all its digits (Φ(−30) is 4.9·10⁻¹⁹⁸), and where it has a finite exact form (χ² with 2 degrees of freedom is 1 − e^(−x/2)) it is given as that, unless writing it out would lose digits.
  • Functions behind them, usable on their own and in formulas: erf, erfc, gamma, beta, gammainc, betainc and the inverses probit, gammaincinv and betaincinv. The normal density and distribution function differentiate (d/dx normalcdf(x) is normalpdf(x)), and the densities and cumulative probabilities of the normal, t, χ² and F distributions can be drawn as graphs (the inverses cannot).
  • Keyboard modes. 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, with at most four tabs, each a word. A chip beside the angle unit (MATRIX or STAT; none in the standard mode) says the mode and has a menu to change it. Every function can still be typed in any mode, and answers do not depend on the mode. The Matrix page is now in the Matrices mode only: the standard mode, which is the starting one, no longer has it. A long column of data is set smaller; a report is copied whole, a line for each row.
  • A fix. The inequality exp(e^7!) ≤ 0.5 took more than a minute to give up; it now does so at once.
  • The iPhone screens are otherwise unchanged: compared with the 1.0.0 build pixel by pixel in 14 states in the standard mode, the maths keyboard's tab row has four tabs and not five (the Matrix tab moved to its mode) and nothing else differs but the blinking cursor; the matrix page, in the Matrices mode, differs by the MATRIX chip; the letters pages are identical.

Installing

The .ipa is unsigned on purpose: sign it with your own Apple ID through a sideloading tool such as AltStore or Sideloadly, after checking it with shasum -a 256 -c Mantissa-1.1.0-unsigned.ipa.sha256.

SHA-256: 6ab26dfc50a63862edb672e8e2c10459e217281bbac9a26ac3777cf96be004f5

What was checked, and what was not

Built with Xcode 27.2 (iOS 27.2 SDK). Every new function was compared with reference values made another way (Python's fractions and decimal: exact fractions for the statistics, the polynomial fit and the discrete distributions; independent series, Spouge's approximation of Γ and closed forms for whole degrees of freedom for the normal, t, χ² and F distributions and the functions behind them), to 45 digits (40 for t, χ² and F), and the random-input test now writes statistics and distributions. The engine's 382 tests ran with AddressSanitizer and UBSan with no reports; the app's 104 tests ran with AddressSanitizer and no reports. UBSan was on as well, but the project has no C-family source (the engine included), so it checked nothing; only AddressSanitizer was effective. The static analyzer succeeded, and leaks on the app found one leak of 32 bytes, as before. Xcode's accessibility audit and the tests that read the accessibility tree ran on the iPhone and iPad simulators with the new screens in them; the audit records what it lists and never fails a test, so a passing test does not mean the audit found nothing, and what it lists on the report screens is the system's heuristics on typeset text and elements behind the keyboard. Typing a column of data with the keys, the three keyboard modes and the Settings screen were looked at on the iPhone simulator, and the Statistics and Probability pages on the iPad simulator. Not tried: VoiceOver speaking any of this, on a device or on a simulator; Switch Control, Voice Control and Full Keyboard Access; this version on a physical iPhone or iPad (0.28.0 was tried on an iPhone 12 Pro with iOS 18.6.2 and an iPad Pro 11-inch with iPadOS 18.7.2); a hardware keyboard on an iPad; a Japanese input source for a hardware keyboard; running as "Designed for iPad" on a Mac; ThreadSanitizer and Instruments. The deployment target is iOS 17. It is for studying and everyday sums, and the MIT licence gives no warranty; see the Accuracy section of the README.