Well, what problems are you having? What errors if any? Posting several lines of abbreviated variables and equations and saying "it's not right" is a bit vague.
Ezzaral
Posting Genius
15,986 posts since May 2007
Reputation Points: 3,250
Solved Threads: 847
vac=(4*va*vc);
vbc=(2*vb*vb);
....
raiz = Math.sqrt(vbc-vac);
The correct formula is b*b - 4*a*c. You write: vbc-vac =2*vb*vb - 4*va*vc
javaAddict
Nearly a Senior Poster
3,329 posts since Dec 2007
Reputation Points: 1,014
Solved Threads: 448