Skip to content

JoelNiemela/Calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

80 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Calculator

An advanced calculator app written in JavaScript

Calculator

Live Example

JoelNiemela.github.io/Calculator

Features

Variables

Supports assigning custom variables:

x : 40
y : 2
x + y
42

Lambdas

Define and reuse your own custom lambda functions:

fn : λx.x+2
fn(5)
7

Or use lambda literals directly (IIFE):

(λx.x+2)(3)
5

Unicode support

(π)
1.7724538509055743

Predefined mathematical constants

e : 2.71828182846
π : 3.14159265359

Predefined functions

sin
cos
tan
ln
log
sqrt
cbrt

Unicode aliases

 : sqrt
 : cbrt

Operators

x + y
x - y
x × y
x ÷ y
x ^ y

Factorial function syntax

x!