num.js

7.6 kB · javascript · 246 lines

1import * as wasm from "./pkg/num/mrlyjs_num.js";23export { default, initSync } from "./pkg/num/mrlyjs_num.js";4export const Rng = wasm.Rng;5export const apollonian = {6    CIRCLE_CAP: wasm.apollonian_CIRCLE_CAP,7    CURVATURE_CAP: wasm.apollonian_CURVATURE_CAP,8    Circle: wasm.apollonian_Circle,9    ORDER_CAP: wasm.apollonian_ORDER_CAP,10    ROOTS: wasm.apollonian_ROOTS,11    form: wasm.apollonian_form,12    frame: wasm.apollonian_frame,13    grow: wasm.apollonian_grow,14    is_ford: wasm.apollonian_is_ford,15    on_line: wasm.apollonian_on_line,16    reflect: wasm.apollonian_reflect,17    root: wasm.apollonian_root,18    shadow: wasm.apollonian_shadow,19    sound: wasm.apollonian_sound,20    swap: wasm.apollonian_swap,21    touches: wasm.apollonian_touches,22};23export const automaton = {24    Automaton: wasm.automaton_Automaton,25    ROUNDING: wasm.automaton_ROUNDING,26};27export const blend = {28    add: wasm.blend_add,29    cauchy: wasm.blend_cauchy,30    characteristic: wasm.blend_characteristic,31    decimate: wasm.blend_decimate,32    delta: wasm.blend_delta,33    growth: wasm.blend_growth,34    hadamard: wasm.blend_hadamard,35    recurrence: wasm.blend_recurrence,36    scale: wasm.blend_scale,37    shift: wasm.blend_shift,38    sigma: wasm.blend_sigma,39    sub: wasm.blend_sub,40};41export const boolean = {42    is_balanced: wasm.boolean_is_balanced,43    nonlinearity: wasm.boolean_nonlinearity,44    sac: wasm.boolean_sac,45    walsh_spectrum: wasm.boolean_walsh_spectrum,46};47export const design = {48    ZETA_ORDINATES: wasm.design_ZETA_ORDINATES,49    digits_of: wasm.design_digits_of,50    echo_series: wasm.design_echo_series,51    elements: wasm.design_elements,52    log_grid: wasm.design_log_grid,53    median_floor: wasm.design_median_floor,54    meter: wasm.design_meter,55    nearest: wasm.design_nearest,56    peaks: wasm.design_peaks,57    pole_lattice: wasm.design_pole_lattice,58    resample: wasm.design_resample,59    score: wasm.design_score,60    size: wasm.design_size,61    spectrum: wasm.design_spectrum,62    upper_rms: wasm.design_upper_rms,63};64export const factor = {65    aliquot: wasm.factor_aliquot,66    coprime: wasm.factor_coprime,67    divisors: wasm.factor_divisors,68    factorial: wasm.factor_factorial,69    factorize: wasm.factor_factorize,70    factorize_wide: wasm.factor_factorize_wide,71    gcd: wasm.factor_gcd,72    lcm: wasm.factor_lcm,73    mobius: wasm.factor_mobius,74    mobius_sieve: wasm.factor_mobius_sieve,75    radical: wasm.factor_radical,76    reduce: wasm.factor_reduce,77    sigma: wasm.factor_sigma,78    squarefree: wasm.factor_squarefree,79    totient: wasm.factor_totient,80    totients: wasm.factor_totients,81    twisted: wasm.factor_twisted,82};83export const fft = {84    convolve: wasm.fft_convolve,85    convolve_with: wasm.fft_convolve_with,86    embed_kernel: wasm.fft_embed_kernel,87    log_spectrum: wasm.fft_log_spectrum,88    magnitude_spectrum: wasm.fft_magnitude_spectrum,89    peak_ring: wasm.fft_peak_ring,90    peak_wavelength: wasm.fft_peak_wavelength,91    radial_profile: wasm.fft_radial_profile,92    transform: wasm.fft_transform,93};94export const gauss = {95    Class: wasm.gauss_Class,96    Ring: wasm.gauss_Ring,97    Window: wasm.gauss_Window,98    classes: wasm.gauss_classes,99    peak: wasm.gauss_peak,100    shells: wasm.gauss_shells,101};102export const ladder = {103    Design: wasm.ladder_Design,104    ROUNDING: wasm.ladder_ROUNDING,105    cofactor: wasm.ladder_cofactor,106    residue: wasm.ladder_residue,107    zeta: wasm.ladder_zeta,108};109export const lattice = {110    coprime_pairs: wasm.lattice_coprime_pairs,111    farey: wasm.lattice_farey,112    grid: wasm.lattice_grid,113    new_nodes: wasm.lattice_new_nodes,114    pi_estimate: wasm.lattice_pi_estimate,115    recovered: wasm.lattice_recovered,116    visible_density: wasm.lattice_visible_density,117    zeta_factor: wasm.lattice_zeta_factor,118    zeta_whole: wasm.lattice_zeta_whole,119};120export const memory = {121    Rule: wasm.memory_Rule,122    SPAN: wasm.memory_SPAN,123    SWEEPS: wasm.memory_SWEEPS,124    TOLERANCE: wasm.memory_TOLERANCE,125    allowed_windows: wasm.memory_allowed_windows,126    cells: wasm.memory_cells,127    counts: wasm.memory_counts,128    exponent: wasm.memory_exponent,129    kappa: wasm.memory_kappa,130    perron: wasm.memory_perron,131    transfer: wasm.memory_transfer,132};133export const morse = {134    LIFTS: wasm.morse_LIFTS,135    Lift: wasm.morse_Lift,136    boundary: wasm.morse_boundary,137    difference: wasm.morse_difference,138    digits: wasm.morse_digits,139    doubling: wasm.morse_doubling,140    faults: wasm.morse_faults,141    fold: wasm.morse_fold,142    letter: wasm.morse_letter,143    lift: wasm.morse_lift,144    power: wasm.morse_power,145    repeat: wasm.morse_repeat,146    runs: wasm.morse_runs,147    stage: wasm.morse_stage,148    substitution: wasm.morse_substitution,149    upsample: wasm.morse_upsample,150};151export const prime = {152    Sieve: wasm.prime_Sieve,153    chart: wasm.prime_chart,154    flags: wasm.prime_flags,155    goldbach: wasm.prime_goldbach,156    goldbach_record: wasm.prime_goldbach_record,157    is_prime: wasm.prime_is_prime,158    pile: wasm.prime_pile,159    prime_count: wasm.prime_prime_count,160    prime_from: wasm.prime_prime_from,161    primes: wasm.prime_primes,162    rectangles: wasm.prime_rectangles,163    splits: wasm.prime_splits,164    squares: wasm.prime_squares,165    study: wasm.prime_study,166};167export const radix = {168    Base: wasm.radix_Base,169    Radix: wasm.radix_Radix,170    flowsnake: wasm.radix_flowsnake,171    gasket: wasm.radix_gasket,172    koch: wasm.radix_koch,173    terdragon: wasm.radix_terdragon,174    tile: wasm.radix_tile,175    twindragon: wasm.radix_twindragon,176};177export const series = {178    APERY: wasm.series_APERY,179    BASEL: wasm.series_BASEL,180    CATALAN: wasm.series_CATALAN,181    EULER: wasm.series_EULER,182    VISIBLE: wasm.series_VISIBLE,183    basel: wasm.series_basel,184    bernoulli: wasm.series_bernoulli,185    beta: wasm.series_beta,186    binary: wasm.series_binary,187    catalan: wasm.series_catalan,188    chi3: wasm.series_chi3,189    chi4: wasm.series_chi4,190    chi8: wasm.series_chi8,191    dirichlet: wasm.series_dirichlet,192    e_partial: wasm.series_e_partial,193    euler_gamma_partial: wasm.series_euler_gamma_partial,194    euler_product: wasm.series_euler_product,195    evens: wasm.series_evens,196    fibonacci: wasm.series_fibonacci,197    harmonic: wasm.series_harmonic,198    lambda: wasm.series_lambda,199    leibniz: wasm.series_leibniz,200    li: wasm.series_li,201    mertens: wasm.series_mertens,202    odds: wasm.series_odds,203    visible: wasm.series_visible,204    wallis_half_pi: wasm.series_wallis_half_pi,205    wallis_quarter_pi: wasm.series_wallis_quarter_pi,206    zeta: wasm.series_zeta,207};208export const sieve = {209    PLANE_LIMIT: wasm.sieve_PLANE_LIMIT,210    cells: wasm.sieve_cells,211    exponent: wasm.sieve_exponent,212    flat_word: wasm.sieve_flat_word,213    holes: wasm.sieve_holes,214    limit: wasm.sieve_limit,215    odd_word: wasm.sieve_odd_word,216    punctures: wasm.sieve_punctures,217    raster: wasm.sieve_raster,218    ratio: wasm.sieve_ratio,219    side: wasm.sieve_side,220    solid_limit: wasm.sieve_solid_limit,221};222export const spiral = {223    Growth: wasm.spiral_Growth,224    Lattice: wasm.spiral_Lattice,225    Mark: wasm.spiral_Mark,226    diagonal: wasm.spiral_diagonal,227    level_of: wasm.spiral_level_of,228    marks: wasm.spiral_marks,229    snail: wasm.spiral_snail,230};231export const zeta = {232    Complex: wasm.zeta_Complex,233    JOIN: wasm.zeta_JOIN,234    Line: wasm.zeta_Line,235    bump: wasm.zeta_bump,236    corrections: wasm.zeta_corrections,237    kernel: wasm.zeta_kernel,238    mellin: wasm.zeta_mellin,239    novelty_main: wasm.zeta_novelty_main,240    novelty_wave: wasm.zeta_novelty_wave,241    psi_formula: wasm.zeta_psi_formula,242    psi_stair: wasm.zeta_psi_stair,243    raise: wasm.zeta_raise,244    sharp_novelty: wasm.zeta_sharp_novelty,245    smoothed_novelty: wasm.zeta_smoothed_novelty,246};