Javascript quadratic equation solver

Here is a simple javascript that solves quadratic equations of the form ax²+bx+c = O. You just have to specify the values of a ,b and c and the script then calculates the two real roots alpha(x1) and beta (x2)  of the equation. The script also tells you if the equation has a real root or not, depending upon the value of D (Discriminant). The equation is solved using the quadratic formula x = -b±(b²-4ac)½/2a .
The script is located here ->http://www.dynamicguru.com/files/quadratic_equation.html

Here is the source code of the script :

//Place this within the  section


//Place this within the section:

Click to solve »»

One response to this entry

  • I’m not a SEO expert but you might want to cnhgae your CSS IDs to names like Navigation’ or Header’. I read awhile ago that that these get parsed by big daddy G.. and maybe with keywords like navigation.. the content in those divs might be ranked lower in context to other div IDs that might have the word content’ in them. Also, if you are using any HX tags in your navigation, you might want to consider switching them to a generic div with a class. HX tags get more weight.. so that might take some more focus away from the menu as well..I like the javascript trick though, I’ve seen some major css float tricks to accomplish the same thing.. but I never think of them as elegant.

    Reply / Quote

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

2018 All rights reserved | Powered by WordPress
Back to top
Theme by dynamicguru.com