Guest User

Untitled

a guest
Apr 22nd, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.24 KB | None | 0 0
  1.     public static double horner(double x, double y, double[] z){
  2.         double[] b = new double[z.length-1];
  3.         for (int i=(b.length-1); i>=0; i--)b[i]=z[i];
  4.         if(b.length-1<0) return y; 
  5.         double c =(y*x)+b[b.length-1];
  6.         return horner(x, c, b);
  7.         }
Add Comment
Please, Sign In to add comment