extramath.java
来自「tinyos最新版」· Java 代码 · 共 31 行
JAVA
31 行
// Copyright (c) Corporation for National Research Initiativespackage org.python.core;/** * A static utility class with two additional math functions. */public class ExtraMath { static double LOG10 = Math.log(10.0); public static double log10(double v) { return Math.log(v) / LOG10; } public static double hypot(double v, double w) { v = Math.abs(v); w = Math.abs(w); if (v < w) { double temp = v; v = w; w = temp; } if (v == 0.0) return 0.0; else { double wv = w/v; return v * Math.sqrt(1.0 + wv*wv); } }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?