#calculator #plot #scripting

nightly app ajkcalc

scriptable hybrid calculator

4 releases

0.2.0 Sep 21, 2023
0.1.2 Sep 21, 2023
0.1.1 Sep 19, 2023
0.1.0 Sep 19, 2023

#1597 in Math

GPL-3.0-or-later

25KB
533 lines

AJK-Calc

multi-purpose scriptable extendable calculator

uses rhai engine for evaluation and scripting

polynomials using layered closures (function-closures crate)

plotting (kinda works)

Usage

ajkcalc is a text-based application with a couple commands "clear", "reload", "help", and "exit" namely. You can also exit by pressing escape. ajkcalc can evaluate basic math expression but its real power comes from its scripting ability.

Scripting

Scripting is implemented using rhai which is also the evaluation engine for the whole calculator. You can define variable and functions as yuo normally would in rye at the main prompt. You can also put *.rhai script files in $HOME/.config/ajkcalc and they would be compiled and added to the main evaluation context on reload.

Building

requires a recent nightly copmiler (for the iter_intersperse feature)

Warning highly volatile

this is still very very early and likely won't have any reliable API for scripting until version 1.0.0 which may still be a while off. Developement is very active as of 9/21/23 and contributions are welcome (if you dare to poke around my crazy code yet)

Dependencies

~9–17MB
~227K SLoC