Skip to content

2asm/Eval

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Calculator based on pratt parser

Try here: https://2asm.github.io/calculator

Supported operators

  • Addition( + )
  • Substraction( - )
  • Multiplication( * )
  • Division( / )
  • Modulo( % )
  • Power( ** )
  • Factorial( ! )
  • Left Shift( << )
  • Right Shift( >> )
  • Bitwise Not( ~ )
  • Bitwise Or( | )
  • Bitwise Xor( ^ )
  • Bitwise And( & )

Builtin functions (case sensitive)

  • sin( double ) double
  • cos( double ) double
  • tan( double ) double
  • abs( double ) double
  • deg( double ) double \\ degree to radian
  • log( double ) double \\ natural log

Builtin constants (case sensitive)

  • PI
  • E

Number format

  • A(.B)?

Reference