suan

command module
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 5, 2023 License: GPL-3.0 Imports: 1 Imported by: 0

README

suan

Suan( 算 ) is a CLI tool to calculate given mathematical expression. Currently it supports addition, substraction, multiplication, division, and exponent operations including any of their combinations with parenthesis.

Install

go install github.com/OldPanda/suan

Usage

» suan -h
Suan( 算 ) is a CLI tool to calculate given mathematical expression.
Currently it supports addtion, substraction, multiplication, division, and
exponent operations and any of their combinations with parenthesis.

Usage:
  suan [flags]

Flags:
  -h, --help      help for suan
  -v, --version   Version information
Examples
» suan "1 + 1"
2.000000
» suan "(3 + 4) * 5 - 2 * (3 + 9)"
11.00000
» suan "3 / 4 + 3 * 2 - 8^2 * 2"
-121.250000

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL