How do you contrive an algorithm which solves quadratic equations?

Recommended Answers

The very simple algorithm for finding x is shown at the right of the Wiki page: http://en.wikipedia.org/wiki/Quadratic_formula

Jump to Post

Are you basically asking us to write the complete program for you?

Jump to Post

All 6 Replies

But thats not what perplexes me, I am trying to make a programme that solves simple quadratic equations but i do not know how to write and algorithm for my program to solve it

Example

#include <iostream>
#include <quad>
#include <math>
#include <string>
using namespace std;

int main() 
{
      string a;
      a="Hello World ";
      cout << a;
}

Are you basically asking us to write the complete program for you?

Member Avatar

@Moschops
Is it even possible to write a progam that will solve quadratic equations using the rules of math and a few inputted variables and numbers??

Yes.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.19 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.