Skip to content

Latest commit

 

History

History
76 lines (65 loc) · 1.01 KB

README.md

File metadata and controls

76 lines (65 loc) · 1.01 KB

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!