go install github.com/mabego/gocalc@latest$ gocalc
calc> (2.5 - 1.35) * 2.0
2.3
calc> -sin((-1+2.5)*pi)
1
calc> 180*atan2(log(e), log10(10))/pi
45
calc> help
Commands:
help - Show this help
clear - Clear the screen
exit - Exit the calculator
calc> exit
$ gocalc "(2.5 - 1.35) * 2.0"
2.3
$ gocalc "-sin((-1+2.5)*pi)"
1
$ gocalc "180*atan2(log(e), log10(10))/pi"
45
This project is a fork of mnogu/go-calculator.
- Command mode
- Prompt autocomplete suggestions
- Refactor for CLI use only