logbase.java

来自「JAVA编程思想源代码 值得一下 很难找的」· Java 代码 · 共 23 行

JAVA
23
字号
package chapter7;

public class LogBase {

	public static double log_base(double x, double y) {
		return Math.log(x) / Math.log(y);
	}

	public static double max(double x, double y) {
		return Math.max(x, y);
	}

	public static double x2Addy2(double x, double y) {
		return Math.hypot(x, y);
	}

	public static void main(String[] args) {
		System.out.println("the return is :" + log_base(3, 4));
		System.out.println("the max is :" + max(3, 4));
		System.out.println("the sqr x add to sqr y is :" + x2Addy2(3, 4));

	}
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?