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?
Printable View
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.
oh, you mean like the ToParabola() function?
I don't think so. :D
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.
you can do it in ascii using strictly standard functions, if you really wanted to.