i'm planning to make a program that will solve for the parabola of a given equation but i don't know how to output it?
is there a function in C++ that will allow you to draw a graph of a parabola?
i'm planning to make a program that will solve for the parabola of a given equation but i don't know how to output it?
is there a function in C++ that will allow you to draw a graph of a parabola?
in simple no. if you are programming for windows you can use gdi for this. just use the equation to plug in values and plot the points and then connect them with a line, the smaller you increment the values to plug in the more natural your parabola will look.
"only two things are infinite, the universe and human stupidity, and im not sure about the former." - albert einstein
oh, you mean like the ToParabola() function?
I don't think so.
Basically you must output your calculations using some GDI API, or else you can download the DirectX Development kit, for instance, which will actually have such high-level facilities available to you.
Code:#include <cmath> #include <complex> bool euler_flip(bool value) { return std::pow ( std::complex<float>(std::exp(1.0)), std::complex<float>(0, 1) * std::complex<float>(std::atan(1.0) *(1 << (value + 2))) ).real() < 0; }
you can do it in ascii using strictly standard functions, if you really wanted to.