Skip to content
المشاريع

حول

A clean, private calculator with an optional on-device AI math solver: photograph, handwrite or type a problem and get step-by-step answers. No tracking, no ads, nothing leaves your phone.

الذكاء الاصطناعي وتعلّم الآلة

كيف تُقاس هذه الأرقام

50 نجمة5 التفرعات +1 خلال 24 ساعة

ما يمكنك فعله

  • Full expression evaluation with parentheses and operator precedence
  • Live result preview as you type
  • Scientific functions — brackets, square root, π, e, powers, factorial (fractions too), ln, log, and sin, cos and tan in degrees or radians (tap the arrow at the end of the scientific row for the second row)
  • Calculation history — persists across restarts

النمو المقاس للنجوم

خلال 24 ساعة
+١
خلال 7 أيام
+١
خلال 15 يومًا
+٥
خلال شهر
جارٍ جمع السجل

تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.

README.md

الأصل
Calculator M3 icon

Calculator M3

A clean, private calculator with an optional on-device AI math solver — no tracking, no ads.

Get it on F-Droid
Calculator with a live result
Calculator
Scientific functions with a live result
Scientific Functions
Calculation history
Calculation History

Landscape mode with the history beside the keys
Landscape Mode

Solve with AI menu: Camera, Gallery, Write, Type
Solve with AI
Handwriting pad with 8×6−9 written on it
Write It by Hand
Step-by-step answer 39 to the handwritten problem
Step-by-Step Answers
Typed word problem answered, with a follow-up question
Ask Follow-up Questions
AI history with saved answers
AI History
An answer translated into Spanish; 18 languages
Answers in Your Language
AI settings with the recommended on-device model
Private by Design

Features

  • Full expression evaluation with parentheses and operator precedence
  • Live result preview as you type
  • Scientific functions — brackets, square root, π, e, powers, factorial (fractions too), ln, log, and sin, cos and tan in degrees or radians (tap the arrow at the end of the scientific row for the second row)
  • Calculation history — persists across restarts
  • Expression cursor — tap to edit mid-expression
  • AI Math Solver — photograph handwritten math, write it on screen, or type a problem, and solve it on-device with step-by-step working (optional; needs a 6 GB+ device and a one-time model download)
  • Dynamic color theming that matches your wallpaper (Android 12+)
  • Automatic light and dark mode
  • Adaptive layout — portrait, landscape, and foldable support
  • Haptic feedback and smooth animations
  • 18 languages — follows your device language

AI Math Solver

Point your camera at a handwritten math expression, write it on screen with your finger or a stylus, or type a problem (word problems too), and let an on-device AI model solve it for you. Everything runs locally — no data leaves your device.

The AI button (top-left) appears on devices with enough RAM to run a model. Nothing is downloaded until you choose a model. Prefer a plain calculator? Turn off Show AI button in AI settings; to bring it back, tap AC seven times quickly (a countdown guides the last taps).

How it works:

  1. Tap the AI button (top-left). A small Solve with AI menu opens: Camera, Gallery, Write, Type, and a ⚙ for AI settings
  2. The first time, choose and download an AI model (one-time, ~2.6–4.9 GB; the download runs in a background service and survives the screen turning off). Gated models (Gemma 3n) first prompt a one-tap Sign in with Hugging Face
  3. Camera opens your camera app straight away; Gallery opens the photo picker; Write opens a drawing pad; Type opens a text box with a row of math symbols
  4. The model solves it entirely on-device — GPU-accelerated where supported — and streams its working, rendered with proper math formatting
  5. Tap "Use" to insert the answer into the calculator, or Retry to take or pick another photo

Photographed problems are answered step by step too: what the model read from the photo, with ✎ to correct a misread as text (which then solves quickly, with no photo to process), the answer and the numbered steps, and Retry to take or pick another photo.

Written problems go on a pad with undo, redo, an eraser and clear. Once you use a stylus, only the stylus draws, so a resting palm leaves no marks. The answer shows what the model read, with ✎ to correct a misread as text, the answer and the steps, and Draw again returns to your drawing. Only the ink is sent to the model, black on white and cropped, and the speed setting applies: in testing, Fast read clean ink as well as Accurate and answered in about two thirds of the time.

Typed problems are answered step by step: the problem as the model read it, the answer, and numbered steps, with Edit to change the problem and solve again. Plain arithmetic such as 12+5*3 is answered by the calculator itself as you type, with Use; Show steps with AI still asks the model for the working. A typed problem starts answering within a couple of seconds, since there's no photo to process.

AI settings (the ⚙ in the menu) holds the model choice and the speed: with the Gemma 4 models, Fast / Balanced / Accurate sets how much detail the model takes from the photo or drawing. Fast can answer in about half the time; Accurate (the default) reads the most detail. The choice is remembered and applies from the next scan.

Answer language: when the app isn't in English, you choose once (on first use, or later in AI settings) between answers in English, where the model works best, and answers in your language. The model always solves in English; with your language chosen, the problem, the steps and follow-up replies are then translated on the phone by Mozilla's Firefox Translations models, run by the slimt engine: a one-time 15–38 MB download per language, after which a translation takes well under a second. Only the words are translated: the maths stays exactly as the model wrote it, and a sentence whose numbers wouldn't survive translation stays in English. The answer and the number for Use always come from the English solve.

Good to know:

  • The answer is offered for "Use" only when it's a single complete number that agrees with the model's own working, so a wrong number never slips into the calculator. When the model writes the same value two ways (1/4 or 0.25), the plain number is offered. Otherwise (an equation's x = 5, a fraction like 5/4) the answer and steps are shown with a note saying why it can't go into the calculator; a reply without a clear final answer says "Check the model's answer below" and opens the model's full working
  • After an app update with a new AI engine, the first scan screen shows "Updating to the new model format" while the downloaded model is prepared once (about a minute)
  • If the model is deleted outside the app or can't be loaded, the app says so and offers Download again

Questions about an answer: under every answer you can ask the model about it, for example "Why this method?" or "Is there another way?", up to 2 questions per answer (a counter shows how many are left). Each question is sent with the problem, the answer and the working as text, so a reply starts within a few seconds. While you're on the answer the model stays loaded; if it was freed (you left the app or closed the window) it's loaded again first. Replies can't be put into the calculator, and they're saved with the answer in AI history, where Ask about this picks the conversation up again.

AI history: every solve is saved on your device in the AI history tab of the History sheet. The saved entry includes what you typed or drew, or a reduced copy of the photo, plus the model's complete output, the answer and steps, any questions asked about it, the model, the speed and how long it took. Open an entry to see it all, Use its number, Solve again with the same input (for example after switching model or speed), or Delete it. Swipe a row to delete it, or clear the whole AI history. The newest 200 entries are kept, only in the app's private storage.

Available models:

All models are vision-capable and run on Google's LiteRT-LM on-device engine.

Model Download Min RAM Auth
Gemma 4 E2B ~2.6 GB 6 GB —
Gemma 3n E2B ~3.7 GB 6 GB HuggingFace sign-in
Gemma 4 E4B ~3.7 GB 8 GB —
Gemma 3n E4B ~4.9 GB 8 GB HuggingFace sign-in

Requirements:

  • Android device with 6+ GB RAM — the smallest model (Gemma 4 E2B) needs 6 GB and the larger E4B models need 8 GB; on devices with less, the AI button isn't shown
  • A camera or gallery app (photos are taken via the system camera — no in-app camera permission required)
  • Internet for the one-time model download (Wi-Fi by default; the app asks before using mobile data), and for the translation model if you want answers in your language
  • Gemma 3n models require a free HuggingFace account — you sign in once, in-app, and accept the model license; Gemma 4 models need no account (setup)

Powered by:

  • Google LiteRT-LM — on-device multimodal LLM inference, GPU-accelerated with automatic CPU fallback
  • Mozilla Firefox Translations models (MPL-2.0), run by slimt (GPL-2.0-or-later, with SentencePiece and ruy) — on-device translation of answers

Privacy

Every calculation you make is your business — not Big Tech's. Calculator M3 is a beautifully designed calculator built with Material 3 Expressive with zero data collection and zero analytics.

Unlike Google Calculator, this app doesn't phone home. No usage tracking, no telemetry, no ad frameworks buried in the code.

  • No tracking
  • No analytics
  • No ads
  • No data harvesting
  • AI models run entirely on-device — no cloud processing
  • AI history stays on your device, in the app's private storage, and you can delete it any time
  • Internet is only used to download AI models and, for answers in your language, its translation model (optional, one-time)

Built With

  • Kotlin + Jetpack Compose
  • Material 3 Expressive design system
  • BigDecimal high-precision arithmetic
  • System camera + photo picker for image capture (no in-app camera permission)
  • LiteRT-LM for on-device multimodal model inference (GPU-accelerated, CPU fallback)
  • slimt (C++, built with the NDK) for on-device translation with Mozilla's models
  • WorkManager foreground service for resumable background model downloads
  • Markwon + jlatexmath for rendering the answer's math and markdown

Building from source

The answer translator's engine (slimt) is a git submodule, so clone with submodules:

git clone --recursive https://github.com/gergelyvagujhelyi/CalculatorM3.git

(or git submodule update --init --recursive in an existing clone). The build uses NDK 28.0.13004108 and CMake 3.22.1, which Gradle downloads on the first build if they're missing.


License

CalculatorM3

Copyright (c) 2025-2026

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You can find a copy of the GNU General Public License v3 here https://www.gnu.org/licenses/

Your calculations stay on your device, period.

استكشف مشاريع مشابهة ومرتبطة

جارٍ التحميل…