public class TableExample2
extends java.lang.Object
The output is printed in a table which could be used to create graph.
Sample input:
Enter the first value for x: 1
Enter the last value for x: 4
Enter the first expression to be evaluated: x^2
Enter the second expression to be evaluated: x^3
If more than 2 functions are processed, it many be convenient to create arrays for y, expr, and tree and use a loop to process them.
Requires:
ExprEvaluator.java
EasyFormat.java
DoubleScanner.java
| Constructor and Description |
|---|
TableExample2()
Constructor for TableExample2.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
main(java.lang.String[] args)
Trivial main program that starts the application.
|