Skip to content

fefong/java_bhaskara

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Java Bhaskara

Example Application: bhaskara

equation

Calculate Delta

delta

Double delta = 0.0;
delta = (Math.pow(b, 2)) - 4 * (a) * (c);

Calculate X

x

Calculate x'

x'

Double x1 = 0.0;
x1 = (((b) * -1) + Math.sqrt(delta) / (2 * a);

Calculate x''

x''

Double x2 = 0.0;
x2 = (((b) * -1) - Math.sqrt(delta) / (2 * a);

Check real roots

if (Double.isNaN(x1)) {
	//TODO					
}

Some links for more in depth learning

Releases

No releases published

Packages

No packages published

Languages