LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Solve and drowing the secon degree ecuation (https://www.linuxquestions.org/questions/programming-9/solve-and-drowing-the-secon-degree-ecuation-113474/)

Omarel 11-07-2003 12:46 PM

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.

Y0jiMb0 11-07-2003 01:05 PM

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

dakensta 11-07-2003 03:23 PM

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.

sk8guitar 11-08-2003 07:00 PM

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.