Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/anhgelus/gomath
A new lang between a formal calculator and a complete computer language
https://github.com/anhgelus/gomath
esolang language language-learning math mathematics
Last synced: 2 days ago
JSON representation
A new lang between a formal calculator and a complete computer language
- Host: GitHub
- URL: https://github.com/anhgelus/gomath
- Owner: anhgelus
- License: mpl-2.0
- Created: 2025-01-22T17:30:15.000Z (14 days ago)
- Default Branch: main
- Last Pushed: 2025-01-22T19:05:47.000Z (14 days ago)
- Last Synced: 2025-01-22T19:41:53.588Z (14 days ago)
- Topics: esolang, language, language-learning, math, mathematics
- Language: Go
- Homepage:
- Size: 16.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GoMath
GoMath is a new lang aiming to be between a formal calculator and a complete computer language.
## Syntax
You can evaluate any expressions by just writing it
```gomath
1 + (2 + 3)*4^2/3
```You can create a variable with `let` statement.
```gomath
let x = 5
```
Every variable is a fraction (here it's `5/1`).
Every calculus is free of double float (float on 64 bits) approximation while these remains in $\mathbb{Q}$.You can create a function with this statement:
```gomath
for x in R, f{x} = 5*x+1
```
`for x in R` defines the variable in your function and their space (here it's $\mathbb{R}$: all commons sets are
integrated).
Then, `f{x} =` defines the name of the function (`f`).
Finally, `5*x+1` defines the relation between $x$ and $f(x)$.
:warning: It is `f{x}` and not `f(x)`!## Todo
- [x] Simple calcul
- [x] Variable
- [x] Using predefined variable (like $\pi$)
- [x] Functions on specific ensemble (e.g., $\mathbb{R}$, $\mathbb{Z}$)
- [ ] Simplification of equations
- [ ] Functions on all space (e.g., $\{1, 2\}$, $[0, 3]$, $[| -4, 8 |]$, $[-8, -4]\cup [|2, 23|]$)
- [ ] Derivation
- [ ] Equations solver## Technos
Made with Go.
Licensed under MPL 2.0.