Skip to content

JustABeginning/Java-Calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Java-Calculator

Language Used GitHub last commit

A Terminal based Calculator built with Java

Features

  • Capability to evaluate arithmetic expressions.
  • Uses the concept of Polish Strings for evaluation.
  • Generates appropriate postfix expressions.

Requirement

  • Java installed and set in PATH.

Usage

From Source

  1. Compile the Calculator.java file

    foo@bar:~$ javac Calculator.java
  2. Run the Calculator

    foo@bar:~$ java Calculator

Preview

Usage Preview

Via JAR

  • Requires Java (>=8)

    foo@bar:~$ java -jar Calculator.jar

Commands

Syntax Meaning
e Euler's Number
pi π
n! Factorial of n
1.6E-19 $1.6 \times 10^{-19}$
n C r $\frac{n!}{(n-r)!~r!}$
n P r $\frac{n!}{(n-r)!}$
a % b Modulus or, Remainder
a ^ b ab
b | a $\sqrt[b]{a}$
ans Previous Result
log() log10
ln() loge
rad() ° to radian
deg() radian to °
sin() sin (∠ in °)
cos() cos (∠ in °)
tan() tan (∠ in °)
sinr() sin (∠ in radian)
cosr() cos (∠ in radian)
tanr() tan (∠ in radian)
sini() sin-1 (in °)
cosi() cos-1 (in °)
tani() tan-1 (in °)
sinir() sin-1 (in radian)
cosir() cos-1 (in radian)
tanir() tan-1 (in radian)
sinh() sin [hyperbolic]
cosh() cos [hyperbolic]
tanh() tan [hyperbolic]

🧋 Contribution

Pull requests, issue reports and suggestions are welcome 😊 !

About

A Terminal based Calculator built with Java

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Languages