numeric_j602.ijs

Script: ~addons/finance/finexec/toolbox/numeric_j602.ijs
Contributor: J602
Updated: 2023 03 16
Depend: nil
Definitions: loaded to locale base
Status: done
Script source: numeric_j602.ijs

Numeric utilities.

Definitions

B baserep
C clean, colsum
G groupndx
I int01
L linsert
R randomize, range, recur, round, roundbanker, rounddist, rounddown, roundint, roundup
S steps

baserep v y in base x
clean v clean y to tolerance of x (default 1e_10)
colsum v sum data columns of matrix by key
groupndx v group indices of y in x
int01 v interval in n steps from 0 to 1 (= steps 0 1,n)
linsert v linear insert x (default 2) steps into y
randomize v sets a random value into random link
range v range from a to b [in steps of c]
recur v solves recurrence r(i)=a(i)+r(i-1)*m(i-1)
round v round y to nearest x (e.g. 1000 round 12345)
roundbanker v round y to nearest x with bankers rounding
rounddist v round y to nearest x preserving total
rounddown v round y down to nearest x (e.g. 1000 round 12345)
roundint v round to nearest integer
roundup v round y up to nearest x (e.g. 1000 round 12345)
steps v steps from a to b in c steps