Compare commits

..

2 Commits
wxy ... master

Author SHA1 Message Date
冯世纪 7fbaa2a76e first commit
4 years ago
冯世纪 33761b70b6 first commit
4 years ago

@ -0,0 +1,16 @@
package fengshiji;
import java.math.*;
public class fengshiji1
{
public double duishu(double a,double b)
{
double res = log(a, b);
return res;
}
private double log(double a, double b) {
double h=Math.log10(b)/Math.log10(a);
return h;
}
}

@ -1,17 +0,0 @@
public class zhishu{
  public double zhishudouble xdouble y {
  if (y==0)
return 1;
else if(y==1)
return x;
else if(oushu(y))
return zhishu(x*x,y/2);
else return zhishu(x*x,(y-1)/2)*x
  }
private boolean oushu(int n){
if(n%2==0)
return true;
else return false;
}
}
Loading…
Cancel
Save