Skip to content
Snippets Groups Projects
Commit 91b06391 authored by BEROUD Benjamin's avatar BEROUD Benjamin
Browse files

Public static Complex real(double real)

parent f6bbe7c1
No related branches found
No related tags found
No related merge requests found
Pipeline #7775 failed
...@@ -87,7 +87,7 @@ public class Complex { ...@@ -87,7 +87,7 @@ public class Complex {
* @return the complex {@code real + 0i} * @return the complex {@code real + 0i}
*/ */
public static Complex real(double real) { public static Complex real(double real) {
return new Complex(0, real); return new Complex(real, 0);
} }
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment