A advanced calculator for complicated mathematics.
Project description
Brliant Calculator
A powerful, advanced command-line scientific calculator for engineers, scientists, and developers.
Features
- Basic Arithmetic: Addition, subtraction, multiplication, division, modulo.
- Advanced Math: Trigonometry, logarithms, exponentials, factorials, powers.
- Vector Operations: Dot product, cross product, magnitude, normalization, angle between vectors.
- Physics Formulas: Force, kinetic energy, potential energy, Ohm's law, work, speed, acceleration.
- Unit Conversions: Length, mass, temperature, time, speed.
- Currency Conversion: Real-time currency exchange rates.
- Matrix Operations: Multiplication, determinant, inverse, eigenvalues/eigenvectors, transpose, rank.
- Complex Numbers: Arithmetic, polar/rectangular conversion, magnitude, phase.
- Symbolic Math: Algebraic simplification, differentiation, integration, equation solving.
- Graphing: 2D function plotting using Matplotlib.
- Dimensional Analysis: Unit-aware calculations and conversions.
- Arbitrary Precision: Exact rational arithmetic and high-precision decimal calculations.
- Interactive Shell: A dedicated shell mode for continuous calculations.
Installation
pip install brliant_calc
Custom Command Aliases
Create custom shortcuts for the calculator command (permanently installed, no PATH modification needed):
brliant_calc -changeCall bcalc
brliant_calc -listAliases
brliant_calc -removeAlias bcalc
Note: On Windows 11, if you don't have sudo installed, you can enable it in Settings → System → For developers → Enable sudo.
Usage
Run the calculator using python main.py [command] [arguments].
Basic Operations
python main.py basic add 10 5
python main.py basic mul 2 3 4
Advanced Math
python main.py adv sin 1.57
python main.py adv log10 100
Matrix Operations
python main.py matrix mul "[[1,2],[3,4]]" --m2 "[[5,6],[7,8]]"
python main.py matrix det "[[1,2],[3,4]]"
python main.py matrix inv "[[1,2],[3,4]]"
Complex Numbers
python main.py complex add "1+2j" --c2 "3+4j"
python main.py complex polar "1+1j"
Symbolic Math
python main.py symbolic diff "x**2 + 2*x + 1" --variable "x"
python main.py symbolic integrate "sin(x)"
python main.py symbolic solve "x**2 - 4"
Graphing
python main.py plot plot "sin(x)" --range "0,6.28"
Dimensional Analysis
python main.py dim evaluate_dim "5 * meter + 30 * centimeter"
python main.py dim convert_dim --value 100 --from_unit "km/h" --to_unit "m/s"
Arbitrary Precision
python main.py precise add_fraction "1/3" "1/6"
python main.py precise div_decimal "1" "3" --precision 50
Interactive Shell
Enter the interactive mode to run multiple commands without restarting:
python main.py sel basic
Shortcuts
You can use the following short aliases for commands:
basic->badv->acurr->crconvert->cvvector->vphysics->punits->umatrix->mcomplex->cxsymbolic->splot->pldim->dprecise->prsel->sh
Example: python main.py b add 1 2 is the same as python main.py basic add 1 2.
Tab Completion
This tool supports tab completion for commands and arguments using argcomplete.
-
Install
argcomplete:pip install argcomplete
-
Activate completion (depends on your shell):
Bash:
eval "$(register-python-argcomplete main.py)"
PowerShell:
Import-Module argcomplete
(See argcomplete documentation for permanent configuration).
-
Usage: Type
python main.py <TAB>to see available commands.
Contributing
Contributions are welcome! Please submit a pull request or open an issue.
License
MIT License
Project details
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 brliant_calc-2.1.0.tar.gz.
File metadata
- Download URL: brliant_calc-2.1.0.tar.gz
- Upload date:
- Size: 14.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
499a424d20c428143a021c856bbdeefeb16a01f14901813661296075adeef2ae
|
|
| MD5 |
7a36c04581d8eede907b19ce17fb61b0
|
|
| BLAKE2b-256 |
391ce4a024a4a3aa586fc1b8050418e38aa4df4f670400da2c3be139eedafcda
|
File details
Details for the file brliant_calc-2.1.0-py3-none-any.whl.
File metadata
- Download URL: brliant_calc-2.1.0-py3-none-any.whl
- Upload date:
- Size: 15.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f6c8d48e10053b93e75c0aea612d27e4d645ed04c876db1d9d8eb55fc12fe8bb
|
|
| MD5 |
8485499db4ceabd1d66c115668bad991
|
|
| BLAKE2b-256 |
a44999f2d87558135ad1f669ef9d48e09fa49b5e83e44bba6ee64bf655833aee
|