Solve and drowing the secon degree ecuation
Can somebody tell me the program in C++ for solving and drawing the second degree ecuation.
I'm looking for documents about elementary aplications in C++ like this. |
Hi!
I don't think is easy to find such a program: too specific! But if you only need to solve quadratic terms is quite easy to program. If you'd like to solve a more generic case, you have to look for a library/program to work out zeros (or roots) of equations. There are many very known algorithms: bisection, regula falsi, Newton, (or Newton-Raphson), and many others... you may include such words in your search. I use a library which contains such algorithms and many others implemented: GSL (Gnu Scientific Library); is written in C. If you want to see a program to make graphical representations: GNUplot; you can see the code, but is not 'elementary' I hope it helps... Regards |
You can also find lots of numerical code (including what you are looking for) here :
http://www.library.cornell.edu/nr/bookcpdf.html although it is rather terse and in C. There is c++ version but you have to buy it. |
what do you mean by second degree? second degree differential equation? matimatica and matlab are probalby better than c++ for doing diff eq.
|
All times are GMT -5. The time now is 04:34 PM. |