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 (assuming the registered alias is brliant_calc (default)) brliant_calc <category> <operation> <numbers_sep_by_space>
In these examples, I will be using the alias bcalc
Basic Operations
bcalc basic add 10 5
bcalc basic mul 2 3 4
Advanced Math
bcalc adv sin 1.57
bcalc adv log10 100
Matrix Operations
bcalc matrix mul "[[1,2],[3,4]]" --m2 "[[5,6],[7,8]]"
bcalc matrix det "[[1,2],[3,4]]"
bcalc matrix inv "[[1,2],[3,4]]"
Complex Numbers
bcalc complex add "1+2j" --c2 "3+4j"
bcalc complex polar "1+1j"
Symbolic Math
bcalc symbolic diff "x**2 + 2*x + 1" --variable "x"
bcalc symbolic integrate "sin(x)"
bcalc symbolic solve "x**2 - 4"
Graphing
bcalc plot plot "sin(x)" --range "0,6.28"
Dimensional Analysis
bcalc dim evaluate_dim "5 * meter + 30 * centimeter"
bcalc dim convert_dim --value 100 --from_unit "km/h" --to_unit "m/s"
Arbitrary Precision
bcalc precise add_fraction "1/3" "1/6"
bcalc precise div_decimal "1" "3" --precision 50
Interactive Shell
Enter the interactive mode to run multiple commands without restarting:
bcalc 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: bcalc b add 1 2 is the same as bcalc basic add 1 2.
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.2.tar.gz.
File metadata
- Download URL: brliant_calc-2.1.2.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 |
f5eea9ef4a29489b62b027f4d0b249355c79331ce98dbe53d619fac4a74bda8c
|
|
| MD5 |
4dbbb618423d36930c25957f804bf1d9
|
|
| BLAKE2b-256 |
bcf516e78dc40c4154f569c63cd584413e613a6213a5bba103141cc90d15edb4
|
File details
Details for the file brliant_calc-2.1.2-py3-none-any.whl.
File metadata
- Download URL: brliant_calc-2.1.2-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 |
aa9cdf8ebffec6fe0909e69ed64507455e4cd009b205c03951b8c0ba343fb396
|
|
| MD5 |
792aa66ba0c55ef4b45acdcaf39acf2c
|
|
| BLAKE2b-256 |
c5c9cacecdd3490f92308a02e9c903e0da84d53ad2a2b9940090291dda5664f0
|