Skip to content

mohanksriram/calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A Scientific Calculator API with support for command-line input.

Dependencies

  • Bazel: Find the installation instructions here.

Build Instructions

//Application
bazel build //calculator:calculator

//Tests
bazel test $(bazel query //...)

Usage

bazel-bin/calculator/calculator
  • Select the mode of the input expression: 1. Infix, 2. Postfix
  • Enter the expression to be evaluated.
  • Observe the output on the screen.

calculator

Inputs

  • A single line of string containing the expression to be parsed in either infix or postfix form.

Supported Operands

  • +, -, *, /, log, ln, sin, cos, tan, ctan

Supported Constants

Pi, e

About

A Simple Scientific Calculator

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors