A modern terminal calculator with unit conversions
Project description
figya
A modern terminal calculator with unit conversions, variables, and session persistence.
Install
pipx install .
Or with pip in a virtual environment:
pip install .
Usage
figya # interactive REPL
figya -e "2+2" # evaluate and exit
echo "5+5" | figya # piped input
Math
figya> 2 + 2
$1 = 4
figya> sin(pi/4)
$2 = 0.7071067812
figya> 2^10
$3 = 1,024
figya> 5!
$4 = 120
figya> 2pi
$5 = 6.283185307
Unit Conversions
figya> 5 feet in meters
$1 = 1.524 m
figya> 100 kg to pounds
$2 = 220.4622622 lb
figya> 72 fahrenheit in celsius
$3 = 22.22222222 °C
Variables
figya> $radius = 5
$radius = 5
figya> $radius * 2
$1 = 10
figya> $_ + 1
$2 = 11
Commands
| Command | Description |
|---|---|
help |
Show help |
list |
Show all variables |
save <name> |
Save workspace |
restore <name> |
Restore workspace |
delete $var |
Delete a variable |
clear |
Clear all variables |
quit / exit |
Quit |
Functions
sin, cos, tan, asin, acos, atan, sqrt, log, log2, ln, exp, abs, round, floor, ceil, factorial, degrees, radians, gcd, lcm, min, max, hex, oct, bin
Constants
pi, e, tau, inf
Data
Session data is stored in ~/.local/share/figya/.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file figya-0.1.1.tar.gz.
File metadata
- Download URL: figya-0.1.1.tar.gz
- Upload date:
- Size: 11.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
db0e59f2ef65ac50837948763242c0da59994573f59dac6902af6753a8a2106d
|
|
| MD5 |
29317bb4d2bcc85b1f66182f27df9a56
|
|
| BLAKE2b-256 |
57546f11d181bf52ece5048732c2d917938bd19ff0d84768e432fc27be2dfbfe
|
File details
Details for the file figya-0.1.1-py3-none-any.whl.
File metadata
- Download URL: figya-0.1.1-py3-none-any.whl
- Upload date:
- Size: 12.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eaf1412c94441c7acc9f76706114dd6a404f48ebe512ec549677d384d3fde1fc
|
|
| MD5 |
5a78b02689762640e622ef8568f573cc
|
|
| BLAKE2b-256 |
cd18201fe0470b4ebb16ee4b3523207adebfe5e721916aecf2323ed3d8f53a42
|