Graphing calculator that runs c++ code. Very much in development
Use make to compile within the src/ directory
$ make
Execute the resulting Main file after compiling
$ ./Main
Currently there is no user interface, so you must enter the polynomials to graph in the Main.cpp file.
Graphing a function or plotting a point:
- Create a cartesian plane using the Cartesian constructor and pass in the desired length and width
- FOR FUNCTIONS: Create a vector containing each coefficient with zeros as placeholders (v[0] is x^0 coefficient, v[1] is x^1, so on)
- Pass the vector to the Polynomial constructor or if plotting a point pass the x and y to the Coordinate constructor
- Pass the polynomial or coordinate to the Cartesian.plot() function
- Repeat the above steps as many times as desired
- Run the Cartesian.print() function to print the graph
f(x) = + 0.25x^2 + 0.00x^1 + 0.00x^0
|
|
|
* | *
|
|
* | *
|
|
* | *
|
* | *
|
* | *
* | *
---------------------------------------------------------- * * *----------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
If you would like to contribute, you may make a pull request. It will be helpful if you first open an issue describing the change that you are interested in contributing.