Skyrim
0 of 0

File information

Last updated

Original upload

Created by

jimhsu

Uploaded by

jimhsu

Virus scan

Safe to use

About this mod

An extended math library for more ... complicated arithmetic.

Permissions and credits
Adds a math library.

While math support has been substantially improved from Oblivion (yay, no more Taylor expansions for trig!), there's still a lot lacking. This library will be a work in progress project to address these ... shortcomings.

Currently supported functions:

exp (exponential)
ln (natural log)
normdist (normal distribution)
normdistCDF (the cumulative normal distribution)
hyperbolic functions (sinh,cosh,tanh,coth,sech,csch)
area hyperbolic functions(arsinh,arcosh,artanh,arcoth,arsech,arcsch)
Black-Scholes approximation (please see source) - BlackScholes (call/put,spot,strike,time,riskfreerate,volatility)

v2 - improved the ln approximation by separating the base and mantissa. The default number of steps (4) should now generate ln up to floating point accuracy for all positive reals.

For iterated approximations (like ln), an optional "steps" parameter can be specified to trade off accuracy for speed, and vice versa.

All approximations will try to make use of basic arithmetic (as that's fast).

Sources for approximations are credited, if available.

If you really want to see a specific function appear, leave a comment. Preferably a link too if you manage to locate an approximation.

----

To enter the demo cell, type "coc aaaExtendedMathTestCell"

----

This release can be reused/modified/edited in any way without prior contact of the author. Would appreciate a word or two of credit, though even this is not mandatory.