Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cobyj33/tcalc
Terminal C Calculator
https://github.com/cobyj33/tcalc
c99 calc calculator expr lexer math parser terminal-based terminal-calculator
Last synced: 2 days ago
JSON representation
Terminal C Calculator
- Host: GitHub
- URL: https://github.com/cobyj33/tcalc
- Owner: cobyj33
- License: mit
- Created: 2023-10-07T05:22:26.000Z (12 months ago)
- Default Branch: master
- Last Pushed: 2024-07-23T17:24:07.000Z (2 months ago)
- Last Synced: 2024-07-23T20:29:33.506Z (2 months ago)
- Topics: c99, calc, calculator, expr, lexer, math, parser, terminal-based, terminal-calculator
- Language: C
- Homepage:
- Size: 373 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# tcalc
Terminal Floating-Precision Calculator written in C99
## Usage:
```bash
tcalc "2 * 3 ^ ln(2)"
tcalc "[sin(5)]^2 + [cos(5)]^2"
tcalc "5 + sin(2 * pi)"
tcalc "23 + arcsin(0.5) * (1 / 4)"
```## Accepted Operators
- a + b
- a - b
- a * b
- a / b
- a % b
- -a
- +a## Accepted Functions
### Trigonometric Functions
- sin(a), cos(a), tan(a)
- sec(a), csc(a), cot(a)
- asin(a), arcsin(a), acos(a), arccos(a), atan(a), arctan(a)
- asec(a), arcsec(a), acsc(a), arccsc(a), acot(a), arccot(a)### Hyperbolic Functions
- sinh(a), cosh(a), tanh(a)
- asinh(a), arcsinh(a), acosh(a), arccosh(a), atanh(a), arctanh(a)### Exponential Functions
- log(a)
- ln(a)
- exp(a)
- sqrt(a)
- cbrt(a)
- pow(a, b)### Other Functions
- ceil(a)
- floor(a)
- round(a)
- abs(a)## Accepted Grouping Symbols
- (a)
- \[b]## Accepted Variables:
- pi
- e