# A nice little program for Mathematics

• Aug 4, 2000, 13:31
CJ
OK.. this is an easy one for all the programmers out there but I don't know hell to do it.

I have this bunch of excersises I need to make. They all consist of the same format:
ax²+by+c=0

a are filled in by a number and so are b and c. You have to see what X is and that are mostly two solutions.

You first have to make some calculations:
D= b²- 4.a.c

If D is negative there is no solution.

Now you calculate X:

X1= (-b+VD) : 2.a (V is a square root (or how 'd you call it e.g. V9=3)

X2= (-b-VD) : 2.a

Can someone create a program that automates this things. So I only have to fill in the values of a, b and c and I would get the solution? I don't think this is hard to do. Oh well I'l give some 10k button impressions at freesources.net as a reward.

Christophe

------------------
Freesources.net - the ultimate webmaster resources site
WebmasterCJ design - opening new worlds for small prices

[This message has been edited by freesources (edited August 04, 2000).]

[This message has been edited by freesources (edited August 04, 2000).]
• Aug 4, 2000, 13:59
Annette
Christophe, are you doing quadratics? If so, there are tons of solvers written already:

...etc.

------------------
Annette
Hosting Matters, Inc.
http://www.hostmatters.com
• Aug 4, 2000, 14:08
CJ
oh thx... but I just made one in Excell myself.. works faster than that JavaScript thingie http://www.SitePoint.com/forums/smile.gif After all those boooorin computer lessons in school with Works pay off a bit too http://www.SitePoint.com/forums/smile.gif

I have to use it more http://www.SitePoint.com/forums/smile.gif

Christophe

------------------
Freesources.net - the ultimate webmaster resources site
WebmasterCJ design - opening new worlds for small prices
• Aug 4, 2000, 14:13
CJ
If somebody wishes to receive my first little program (or kindof a program) please mail to me: mathprogs@freesources.net
=)
Christophe

------------------
Freesources.net - the ultimate webmaster resources site
WebmasterCJ design - opening new worlds for small prices