You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
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;
|
|
}
|
|
|
|
}
|