From b572d13142b84093f8e6922bf69463a522abfd46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=BE=E5=AE=8F=E8=80=80?= <1432562473@qq.com> Date: Fri, 7 Aug 2020 23:53:07 +0800 Subject: [PATCH] first commit --- logax.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 logax.java diff --git a/logax.java b/logax.java new file mode 100644 index 0000000..4f15e15 --- /dev/null +++ b/logax.java @@ -0,0 +1,15 @@ + +public class logax { + public static void main(String[] args) + { + double a=logax(4,2); + System.out.print(a); + } +public static double logax(double value,double base) +{ + + + return Math.log(value) / Math.log(base); + +} +}