can someone help me writing this function>>
public static double[] derivative (double[] arr) {//returns a new polynom representing the derivative of