Skip to content

Nagendersinghh/calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

calculator

Inbuilt functions available

  • sqrt
  • log
  • exp
  • print

Defining a function

You can define a function like so

> let sq(x) = x * x;
Defined sq
>

If and while are also available

> let abs(x) = if x < 0 then -x else x;;
Defined abs
> abs(-15)
= 15
>

About

A toy calculator built using flex and bison

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published