Skip to content

gaoxinge/calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

calculator

A java implementation of calculator based on shunting-yard algorithm:

  • a learning project
  • an extensionable plugin

how to use

> gradle build
> java -jar ./build/libs/calculator.jar

function

operator

variable operand number precedence associative function
+ unary - right pos
- unary ^ right neg
** binary ^ right pow
* binary - left mul
/ binary ^ left div
+ binary - left add
- binary ^ left sub

function

  • random
  • add
  • sub
  • mul
  • div
  • pow
  • log
  • pos
  • neg
  • abs
  • max
  • min
  • asin
  • acos
  • atan
  • sinh
  • cosh
  • tanh
  • sin
  • cos
  • tan

TODO

  • more rigorous args check for function
  • unit test

reference

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages