feat: add khinchin
This commit is contained in:
@@ -6,25 +6,37 @@ import java.math.RoundingMode;
|
|||||||
|
|
||||||
public class MathUtil {
|
public class MathUtil {
|
||||||
|
|
||||||
// 欧拉数(Euler Number)
|
// 欧拉数(Euler Number)【自然常数、自然底数】
|
||||||
|
// https://oeis.org/A001113
|
||||||
public static final BigDecimal E = new BigDecimal(
|
public static final BigDecimal E = new BigDecimal(
|
||||||
"2.7182818284590452353602874713526624977572470936999595749669676277240766303535475945713821785251664238"
|
"2.7182818284590452353602874713526624977572470936999595749669676277240766303535475945713821785251664238"
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// https://oeis.org/A000796
|
||||||
public static final BigDecimal PI = new BigDecimal(
|
public static final BigDecimal PI = new BigDecimal(
|
||||||
"3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679");
|
"3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679"
|
||||||
|
);
|
||||||
|
|
||||||
|
// 黄金比例(英语:Golden Ratio),又称黄金比、黄金分割比、黄金分割率
|
||||||
// https://hatter.ink/static/resource/muboard/?id=golden-ratio&version=latest&full=1
|
// https://hatter.ink/static/resource/muboard/?id=golden-ratio&version=latest&full=1
|
||||||
|
// https://oeis.org/A001622
|
||||||
public static final BigDecimal PHI = new BigDecimal(
|
public static final BigDecimal PHI = new BigDecimal(
|
||||||
"1.6180339887498948482045868343656381177203091798057628621354486227052604628189024497072072041893911375"
|
"1.6180339887498948482045868343656381177203091798057628621354486227052604628189024497072072041893911375"
|
||||||
);
|
);
|
||||||
|
|
||||||
// 欧拉-马歇罗尼常数(Euler-Mascheroni constant)
|
// 欧拉-马歇罗尼常数(Euler-Mascheroni constant)
|
||||||
// https://hatter.ink/static/resource/muboard/?id=eulers-constant&version=latest&full=1
|
// https://hatter.ink/static/resource/muboard/?id=eulers-constant&version=latest&full=1
|
||||||
|
// https://oeis.org/A001620
|
||||||
public static final BigDecimal GAMMA = new BigDecimal(
|
public static final BigDecimal GAMMA = new BigDecimal(
|
||||||
"0.5772156649015328606065120900824024310421593359399235988057672348848677267776646709369470632917467495"
|
"0.5772156649015328606065120900824024310421593359399235988057672348848677267776646709369470632917467495"
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// Khinchin 常数
|
||||||
|
// https://oeis.org/A002210
|
||||||
|
public static final BigDecimal KHINCHIN = new BigDecimal(
|
||||||
|
"2.6854520010653064453097148354817956938203822939944629530511523455572188595371520028011411749318476979"
|
||||||
|
);
|
||||||
|
|
||||||
public static final BigDecimal LITTLE_NUMBER = new BigDecimal(
|
public static final BigDecimal LITTLE_NUMBER = new BigDecimal(
|
||||||
"0.000000000000000000000000000000000000000001");
|
"0.000000000000000000000000000000000000000001");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user