Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Calculator

A simple stateful calculator

Hierarchy

  • Calculator

Index

Constructors

constructor

Properties

Protected current

current: number = 0

Methods

add

  • add(n: number): this

asin

  • asin(): this

clear

  • clear(): this

cos

  • cos(): this

cosh

  • cosh(): this

div

  • div(n: number): this

exp

  • exp(): this

inverse

  • inverse(): this

ln

  • ln(): this

mod

  • mod(n: number): this

mul

  • mul(n: number): this

sin

  • sin(): this

sinh

  • sinh(): this

sub

  • sub(n: number): this

tan

  • tan(): this

tanh

  • tanh(): this

value

  • value(): number