Neanderthals Programming Machines
    Wondering what’s next for npm?Check out our public roadmap! »

    red-agate-math
    TypeScript icon, indicating that this package has built-in type declarations

    0.5.0 • Public • Published

    RedAgate's math library.

    Finite fields, Finite extension fields and Polynomial calculation; Error correction (Reed-Solomon/RS Coding, BCH Coding, CRC32)

    npm GitHub release Travis GitHub forks GitHub stars

    RedAgate Project Home

    Install

    $ npm install red-agate-util --save
    $ npm install red-agate-math --save

    Note

    To import this from your code, you need to use babel + webpack and import red-agate-*/modules/* paths.
    (We have used the import statements for doing the tree-shaking. The import statements in the .js not the .mjs files cannot import from the vanilla node.js.)

    You can also import from the .mjs file on a node with the --experimental-modules option enabled.

    NOTICE:
    Use with webpack >= 5

    If you get the error:

    Module not found: Error: Can't resolve '(importing/path/to/filename)'
    in '(path/to/node_modules/path/to/dirname)'
    Did you mean '(filename).js'?`
    

    Add following setting to your webpack.config.js.

    {
        test: /\.m?js/,
        resolve: {
            fullySpecified: false,
        },
    },

    On webpack >= 5, the extension in the request is mandatory for it to be fully specified if the origin is a '.mjs' file or a '.js' file where the package.json contains '"type": "module"'.

    License

    ISC
    Copyright (c) 2017, Shellyl_N and Authors.

    Install

    npm i red-agate-math

    DownloadsWeekly Downloads

    24

    Version

    0.5.0

    License

    ISC

    Unpacked Size

    410 kB

    Total Files

    100

    Last publish

    Collaborators

    • avatar