Why is this returning (easy java)
Go to solution
Solved by Bene,
The order of parameters are wrong for the function handleradicand call
I created a program for the quadratic formula in java with my current knowledge, but its returning NaN after I plug in the coefficients and it does the calculation. I think I found the, "ROOT"(pun), of the issue. in the method, rootradicand i have a Math.sqrt, when i remove that it does not return nan, but it obviously is incorrect, source code below, thanks for the help in advance.

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