Created
December 26, 2020 08:27
-
-
Save Nekodigi/b4721fc1420581a491cac79ede37e18d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Calculate differential from coeffients | |
Complex[] differential(Complex ... coeffs){ | |
Complex[] result = new Complex[coeffs.length-1]; | |
for(int i=1; i<coeffs.length; i++){ | |
result[i-1] = coeffs[i].mult(i); | |
} | |
return result; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment