-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BUG - Cardano's solution returns wrong answer #4
Comments
@LKedward Do you have any idea about this? |
Hi @everlookneversee , I've been through the code and run it on my computer and I can't find any mistake with respect to the formulae you are referencing . i.e. I believe you have implemented the formulae correctly, so I wonder whether there's a mistake in the formulae? |
Thank you very much |
@LKedward |
Solved! |
For a_1 = 1, a_2 = 2, a_3 = 3 ,
it should print
x_1 = -1.27568
z_2 = 0.13784 + i * 1.52731
z_3 = 0.13784 - i * 1.52731
But it prints
x_1 = -2.58565688
z_2 = ( 0.792838216 , -2.33903098 )
z_3 = ( 0.792719483 , 2.33903098 )
I think the error might be at sign section of code:
https://github.com/EverLookNeverSee/FCS/blob/acb60b0728226dfd4508fa420787b606294a74ba/src/numerical%20methods/Exercise_14.f90#L36
The text was updated successfully, but these errors were encountered: