Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nikhil-jindal12/calculator
Java files for a one-variable calculator. Use GitHub Pages website for documentation.
https://github.com/nikhil-jindal12/calculator
java javadoc-documentation junit-test
Last synced: 9 days ago
JSON representation
Java files for a one-variable calculator. Use GitHub Pages website for documentation.
- Host: GitHub
- URL: https://github.com/nikhil-jindal12/calculator
- Owner: nikhil-jindal12
- Created: 2023-06-30T19:50:18.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-07-11T13:50:40.000Z (over 1 year ago)
- Last Synced: 2024-11-13T04:13:28.504Z (2 months ago)
- Topics: java, javadoc-documentation, junit-test
- Language: Java
- Homepage: https://nikhil-jindal12.github.io/Calculator/
- Size: 455 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Calculator
The following classes are part of the calculator project:
- BinaryOp
- CalculatorFunctions
- Cos
- Exp
- Log
- Number
- Polynomial
- Sin
- TrigFunctions
- VariableThere are 8 main kinds of functions and mathematical objects:
_Variable, Number, BinaryOp, Polynomial, Log, Exp, Sin, and Cos_
The value and derivative can be found for each of these 8 types of functions and mathematical objects. Attempting to find the value of a function with a variable in it will throw an `UnsupportedOperationException`.These are descriptions for each of the 8 main functions and mathematical objects:
- Variable: represents the variable `x`
- Number: represents a number as a `double`
- BinaryOp: represents a binary operator (+, -, *, /) and two function operands
- Polynomial: represents a function raised to a power
- Log: represents the natural logarithm function
- Exp: represents the natural exponential function
- Sin: represents the sine function
- Cos: represents the cosine functionThe two files that relate to the JUnit testing of this project are:
- Calculator Classes Testing Document
- Calculator Testing ClassThe testing class contains 230+ JUnit tests for the calculator's functions, ensuring that it has incredible functionality. The testing document gives short descriptions of every JUnit test that I ran.