8000 GitHub - trong0dn/Polynomial-Calculus: PolyCalc short for Polynomial Calculus is a small program that takes the derivative or integrates polynomial functions.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

PolyCalc short for Polynomial Calculus is a small program that takes the derivative or integrates polynomial functions.

License

Notifications You must be signed in to change notification settings

trong0dn/Polynomial-Calculus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Polynomial-Calculus

[Version 1.00]
Feb 22, 2021

DESCRIPTION

  • PolyCalc short for Polynomial Calculus is a small program that takes the derivative or integrates polynomial functions.

  • The application is composed of the following four files:

    • Main.java
    • mymath/CalcUI.java
    • mymath/Poly.java
    • mymath/PolyCalc.java

INSTALLATION

This program has only been created and tested for Windows 10.

> Installation Dependencies

The application should work with the most recent version of Java programming language updated to at least JDK 16.

No other supplementary libraries and testing file with modular dependencies are required to run this application.

USAGE

> Compiling the program

Open Command Prompt on Windows OS and navigate to the directory containing 'mymath' package. Compile the .java files in the following order to generate the .class files.

>>> javac mymath/Poly.java
>>> javac mymath/PolyCalc.java
>>> javac mymath/PolyUI.java
>>> javac Main.java

Then to run the program in Command Prompt.

>>> java Main

> Sample Game Shell Input & Ouputs

Welcome to the PolyCalc App!
This application has three basic polynomial calculus functions:
-> Evaluate
-> Derivative
-> Integrate
Enter the coefficients of the polynomial separated by space: 
For example: 3.0x^2 + 2.0x^1 + 1.0, would be: 3 2 1
>>> 3 2 1
Polynomial >>> 3.0x^2 + 2.0x^1 + 1.0
Input correct? [y/n]
y
Select one of the following functions:
 [e] Evaluate
 [d] Derivative
 [i] Integrate
 [b] Enter new polynomial
 [x] Exit the program
>>> e
x = 1
Evaluate:
3.0x^2 + 2.0x^1 + 1.0
with x = 1 >>> 6.0
Select one of the following functions:
 [e] Evaluate
 [d] Derivative
 [i] Integrate
 [b] Enter new polynomial
 [x] Exit the program
>>> 2
Must select a function!
Select one of the following functions:
 [e] Evaluate
 [d] Derivative
 [i] Integrate
 [b] Enter new polynomial
 [x] Exit the program
>>> d
Differentiate: 6.0x^1 + 2.0
Select one of the following functions:
 [e] Evaluate
 [d] Derivative
 [i] Integrate
 [b] Enter new polynomial
 [x] Exit the program
>>> x
Exiting. Good-bye!

CREDITS

Thanks to the TAs and Instructor of my Object-Oriented Software Development course for the initial idea.

About

PolyCalc short for Polynomial Calculus is a small program that takes the derivative or integrates polynomial functions.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0