Compare commits
2 Commits
Author | SHA1 | Date |
---|---|---|
冯世纪 | 7fbaa2a76e | 4 years ago |
冯世纪 | 33761b70b6 | 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;
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in new issue