solmath 0.2.0

Deterministic fixed-point math and quantitative finance for Solana: Greeks, IV, American KBI, NIG, TWAP, and DeFi primitives.
Documentation
// @generated by scripts/generate_ln2_lut.py; do not edit manually.
// Shared by ln_1p_fixed and expm1_fixed after power-of-two range reduction.

pub(crate) const K_LN2_MIN: i32 = -64;
pub(crate) const K_LN2_MAX: i32 = 88;
pub(crate) const K_LN2_ENTRIES: usize = 153;
pub(crate) const K_LN2_RAW: [i64; K_LN2_ENTRIES] = [
    -44361419555836,
    -43668272375277,
    -42975125194717,
    -42281978014157,
    -41588830833597,
    -40895683653037,
    -40202536472477,
    -39509389291917,
    -38816242111357,
    -38123094930797,
    -37429947750237,
    -36736800569677,
    -36043653389117,
    -35350506208557,
    -34657359027997,
    -33964211847437,
    -33271064666877,
    -32577917486317,
    -31884770305757,
    -31191623125198,
    -30498475944638,
    -29805328764078,
    -29112181583518,
    -28419034402958,
    -27725887222398,
    -27032740041838,
    -26339592861278,
    -25646445680718,
    -24953298500158,
    -24260151319598,
    -23567004139038,
    -22873856958478,
    -22180709777918,
    -21487562597358,
    -20794415416798,
    -20101268236238,
    -19408121055678,
    -18714973875119,
    -18021826694559,
    -17328679513999,
    -16635532333439,
    -15942385152879,
    -15249237972319,
    -14556090791759,
    -13862943611199,
    -13169796430639,
    -12476649250079,
    -11783502069519,
    -11090354888959,
    -10397207708399,
    -9704060527839,
    -9010913347279,
    -8317766166719,
    -7624618986159,
    -6931471805599,
    -6238324625040,
    -5545177444480,
    -4852030263920,
    -4158883083360,
    -3465735902800,
    -2772588722240,
    -2079441541680,
    -1386294361120,
    -693147180560,
    0,
    693147180560,
    1386294361120,
    2079441541680,
    2772588722240,
    3465735902800,
    4158883083360,
    4852030263920,
    5545177444480,
    6238324625040,
    6931471805599,
    7624618986159,
    8317766166719,
    9010913347279,
    9704060527839,
    10397207708399,
    11090354888959,
    11783502069519,
    12476649250079,
    13169796430639,
    13862943611199,
    14556090791759,
    15249237972319,
    15942385152879,
    16635532333439,
    17328679513999,
    18021826694559,
    18714973875119,
    19408121055678,
    20101268236238,
    20794415416798,
    21487562597358,
    22180709777918,
    22873856958478,
    23567004139038,
    24260151319598,
    24953298500158,
    25646445680718,
    26339592861278,
    27032740041838,
    27725887222398,
    28419034402958,
    29112181583518,
    29805328764078,
    30498475944638,
    31191623125198,
    31884770305757,
    32577917486317,
    33271064666877,
    33964211847437,
    34657359027997,
    35350506208557,
    36043653389117,
    36736800569677,
    37429947750237,
    38123094930797,
    38816242111357,
    39509389291917,
    40202536472477,
    40895683653037,
    41588830833597,
    42281978014157,
    42975125194717,
    43668272375277,
    44361419555836,
    45054566736396,
    45747713916956,
    46440861097516,
    47134008278076,
    47827155458636,
    48520302639196,
    49213449819756,
    49906597000316,
    50599744180876,
    51292891361436,
    51986038541996,
    52679185722556,
    53372332903116,
    54065480083676,
    54758627264236,
    55451774444796,
    56144921625356,
    56838068805916,
    57531215986475,
    58224363167035,
    58917510347595,
    59610657528155,
    60303804708715,
    60996951889275,
];