⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 logbase.java

📁 JAVA编程思想源代码 值得一下 很难找的
💻 JAVA
字号:
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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -