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