A native scientific calculator for Linux, Android and Wear OS, written in Rust with egui/eframe. It is not a WebView wrapper, not Electron, and it does not start a JVM. The Linux release is a single ~8 MB binary; the Android app contains three native ABIs and no DEX code.
The look follows the original Wear OS app: ink-black background, Nunito, violet actions, teal constants, round keys and pills.
| Tab | Features |
|---|---|
| Calculator | Scientific keypad, DEG/RAD, implicit multiplication, powers, roots, logs, trig, factorial, percent, memory (MC/MR/M+/M-), Ans, 100-entry history, copy result |
| Graph | Up to 6 functions, pan/zoom, trace readout, x-intercepts, intersections, value table, auto-fit |
| Algebra | Polynomial equations through degree 12, exact linear/quadratic roots, numeric higher roots, multi-letter linear solutions, rational equations with domain constraints, examples |
| Converter | 11 categories: length, mass, temperature, volume, area, speed, time, data, angle, pressure, energy; search-free unit picker, swap, live keypad, reference table |
| Tools | Statistics and quartiles, paired linear regression, base-n/bitwise programmer mode, numeric derivative and definite integral, searchable physical constants |
The graph, statistics, programmer, calculus and constants tools are deliberately not on the watch. Wear keeps the original three tabs (Calculator, Converter, Algebra) and the original 5 × 4 calculator keypad.
| Graph | Algebra |
|---|---|
![]() |
![]() |
| Converter | Data & statistics |
|---|---|
![]() |
![]() |
| Programmer | Calculus |
|---|---|
![]() |
![]() |
Prebuilt artifacts are published on the
releases page, together with a SHA256SUMS
file covering them. dist/ is local build output — the packaging scripts write there and it is not
tracked in git.
The repository contains a PKGBUILD that builds and installs the desktop binary, desktop entry
and icon. Build it yourself, or install the prebuilt package from the latest release:
makepkg -si
# or, with the release asset downloaded next to the PKGBUILD
sudo pacman -U qalsheet-2.1.0-1-x86_64.pkg.tar.zst
qalsheetcurl -LO https://github.com/opigod/qalsheet/releases/latest/download/QalSheet-2.1.0-x86_64.AppImage
chmod +x QalSheet-2.1.0-x86_64.AppImage
./QalSheet-2.1.0-x86_64.AppImageThe AppImage is intentionally small: the binary relies only on system glibc, libm, libgcc and the normal X11/Wayland/OpenGL stack. It does not bundle a browser engine or a JVM.
Verify any download against the release's SHA256SUMS with sha256sum -c SHA256SUMS.
curl -LO https://github.com/opigod/qalsheet/releases/latest/download/com.qalsheet.pro-2.1.0.apk
adb install -r com.qalsheet.pro-2.1.0.apkcurl -LO https://github.com/opigod/qalsheet/releases/latest/download/com.qalsheet-2.1.0.apk
adb install -r com.qalsheet-2.1.0.apkBoth APKs are debug-signed so they can be sideloaded. They share the same native Rust code; the phone build enables the five-tab layout and the watch build enables the three-tab round layout.
Requirements: Rust 1.95+ (edition 2024), JDK not required to run. For Linux the usual X11/Wayland development libraries are enough.
cargo build --release -p qalsheet-desktop
./target/release/qalsheet
# tests
cargo test --workspace
# AppImage (downloads linuxdeploy/appimagetool on first run)
./scripts/build-appimage.sh- Install the Android SDK and NDK (r27 or newer).
- Add the Rust targets:
rustup target add aarch64-linux-android armv7-linux-androideabi x86_64-linux-android
- Point the build script at the SDK:
APKs are written to
export ANDROID_HOME="$HOME/Android/Sdk" export ANDROID_NDK_ROOT="$ANDROID_HOME/ndk/27.2.12479018" ./scripts/build-android.sh all
dist/. Pass an ABI list to build one ABI, for example./scripts/build-android.sh phone x86_64. - Install with
adb install -r ....
The app uses android.app.NativeActivity with android:hasCode="false". There is no Java,
Kotlin, DEX or WebView in the application package; the only build-time JVM use is Android's
apksigner tool.
crates/
qalsheet-core/ pure Rust, dependency-free math and state
expr.rs recursive-descent expression compiler + AST evaluator
calculator.rs calculator/history/memory/function-key semantics
algebra.rs sparse polynomial + rational solver (Durand–Kerner)
graph.rs root finding, intersections, tables, nice grid steps
units.rs 11 unit categories and affine conversion
stats.rs quartiles, standard deviations, regression
programmer.rs bases and bitwise operations
calculus.rs 5-point derivative, adaptive Simpson integral
format.rs 12-significant-digit display formatting
qalsheet-ui/ shared egui UI for desktop, phone and watch
theme.rs palette, Nunito, painting helpers
widgets.rs keys, pills, fields, modals
screens/ calculator, graph, algebra, converter, tools
qalsheet-desktop/ Linux binary (eframe/glow)
qalsheet-android/ Android NativeActivity cdylib
qalsheet-wear/ Wear OS NativeActivity cdylib
The core has no UI dependency and is covered by unit tests. The three frontends share the same screens and state; only the tab set, safe insets and watch-sized layout differ.
- Release profile uses
lto = "fat",codegen-units = 1,panic = "abort"and symbol stripping. - Expression compilation happens once; graph sampling reuses the AST instead of reparsing text.
- The desktop binary is ~8.4 MB and typically starts in well under a second.
- One-ABI APK ≈ 3 MB; universal APK (arm64-v8a, armeabi-v7a, x86_64) ≈ 8.1 MB.
- No background services, no network permissions, no analytics, no persistence database.
- Calculator: physical digits,
+ - * /,^, parentheses, Enter (=), Backspace and Esc (C) work on desktop. On Android the custom keypad is used. - Graph: drag to pan, scroll or pinch to zoom, tap to set a trace point, double tap to reset.
- Text fields use the platform keyboard (system keyboard on Android, physical keyboard on Linux) and update results live.
- History, memory and current tab are in memory only; they reset when the process is killed.
- Graph is real-valued; no parametric/polar/3D plotting yet.
- Algebra reports only real roots and does not show complex roots or full step-by-step proofs.
- Watch has no graph or tools by design.
- APKs are debug-signed sideload builds, not Play Store artifacts.
- AppImage expects a working X11 or Wayland session with OpenGL; that is the standard Arch setup.
MIT for the application code. Nunito is licensed under the SIL Open Font License; see
licenses/nunito-OFL.txt and crates/qalsheet-ui/fonts/OFL.txt.











