Skip to content

Instantly share code, notes, and snippets.

@mohnjoosemiller
Created May 2, 2014 01:43
Show Gist options
  • Save mohnjoosemiller/d3f92ee20124db8f632d to your computer and use it in GitHub Desktop.
Save mohnjoosemiller/d3f92ee20124db8f632d to your computer and use it in GitHub Desktop.
A basic Haskell library that (when run) will allow the user to do interpret many plaintext algebraic statements.
let double x = 2*x
let pentuple x = 5*x
let quadruple x = 4*x
let triple x = 3*x
let squareroot x = sqrt(x)
let square x = x^2
let cube x = x^3
let fourth x = x^4
let half x = x/2
let thrid x = x/3
let quarter x = x/4
let eighth x = x/8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment