Skip to content

Instantly share code, notes, and snippets.

@Nekodigi
Created December 26, 2020 08:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Nekodigi/b4721fc1420581a491cac79ede37e18d to your computer and use it in GitHub Desktop.
Save Nekodigi/b4721fc1420581a491cac79ede37e18d to your computer and use it in GitHub Desktop.
//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