项目作者: mohitisgreat

项目描述 :
A next generation calculator
高级语言: Java
项目地址: git://github.com/mohitisgreat/Calculator.git
创建时间: 2018-03-24T03:55:48Z
项目社区:https://github.com/mohitisgreat/Calculator

开源协议:MIT License

下载


Calculator

A next generation calculator for complex mathematical calculations. It has a very good parses to parse the mathematical expression and a very simple abstract syntax tree completely written in Java.

  • Variable Declaration: You can declare your own variable as


    1. x = 3+4
      y = x*x

    will output as 49.0

  • Built-in Functions: There are many built-in functions for complex calculaions like:

    • abs(Number): Returns the absoulute value. For example abs(-4.0) retunrs 4.0.

    • Trignometric functions as sin, cos, tan, cot, sec, cosec.

    • sqr(Number) for squaring the number and sqrt(Number) for square roots.

    • cube(Number) for cubing the number and cbrt for cube roots.

Building from source code

It is very easy to build from source code and run. You need the following softwares

  • Gradle
  • JDK
  • Git

Follow these steps to build the Calculator

  • Clone the fresh repository using git clone https://github.com/mohitisgreat/Calculator

  • Navigate to the repository directoy using cd Calculator

  • Now build the software using gradle build
  • And run it using gradle run