This is java I need help writing this formula in my code I thin something is wrong with brackets
Go to solution
Solved by shadowbyte,
you're going to want this
double finalScore = (Math.sqrt(Math.pow(x2 - x1, 2) +(Math.pow(y2 - y1, 2))));
-
Featured Topics
-
Topics
-
Cramig88 ·
Posted in Networking0 -
4
-
dominz88 ·
Posted in Peripherals1 -
3llyas ·
Posted in Graphics Cards1 -
jsnotlout1 ·
Posted in Graphics Cards11 -
1
-
Artur Hawkwing ·
Posted in Storage Devices5 -
Blazepoint5 ·
Posted in Laptops and Pre-Built Systems1 -
INotPablo ·
Posted in Graphics Cards1 -
3
-
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now