From 7fbaa2a76e34fafc86f59f5422fbc0fbfd7a640a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=86=AF=E4=B8=96=E7=BA=AA?= <3380488243@qq.com> Date: Fri, 7 Aug 2020 00:11:44 +0800 Subject: [PATCH] first commit --- fengshiji1.java | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) 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; + } }