Quadratic Equation Solving Function

Category:
Dates and Math
Type:
Snippets
Difficulty:
Intermediate

Author: Jay

Version Compatibility: Visual Basic 5

More information:
This function solves a standard quadratic equation of the form:

Ax + Bx + C = 0

The function arguments, A, B and C, may be up to 28 digits and either negative or positive. In the case of imaginary (complex) roots the answer will be in the usual form of an imaginary number with the symbol (i) at the end symbolizing the square root of -1, as is the standard custom in mathematics.

Included is a demo app that uses the function and a readme text file with more information.


Instructions: Click the link below to download the code. Select 'Save' from the IE popup dialog. Once downloaded, open the .zip file from your local drive using WinZip or a comparable program to view the contents.

Download quad.zip