
Research
/Security News
9 Malicious NuGet Packages Deliver Time-Delayed Destructive Payloads
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.
Panoply of Math Functions for NodeJS.
To build this, npm install -g voc and voc README.md
{
"version": "0.1.0",
"dependencies": {
substack's gamma library provides the regular gamma function:
"gamma":"",
The gamma function takes a single real parameter.
var gamma = require('gamma');
exports.gamma = gamma;
Both matlab and Excel use the function name gammaln to refer to the natural
log of the gamma function. Mathematica uses the name LogGamma and scipy uses
the name loggamma. Both names will be used:
exports.gammaln = gamma.log;
exports.loggamma = gamma.log;
The regular beta function is a straightforward manipulation of gamma:
var beta = function(a,b) { return (gamma(a)*gamma(b))/gamma(a+b); };
var betaln = function(a,b) { return gamma.log(a)+gamma.log(b)-gamma.log(a+b); };
beta.log = betaln;
exports.beta = beta;
exports.betaln = betaln;
The lesser-known Pochhammer symbol is even simpler (uses Mathematica order):
var pochhammer = function(a,n) { return gamma(a+n) / gamma(a); };
var pochhammerln = function(a,n) { return gamma.log(a+n) - gamma.log(a); };
pochhammer.log = pochhammerln;
exports.pochhammer = pochhammer;
exports.pochhammerln = pochhammerln;
SheetJS's bessel library provides the Bessel functions:
"bessel":"",
The bessel functions accept the parameters (x, n) where n is the order of
the solution and x is the point at which to evaluate:
var bessel = require('bessel');
exports.besselj = bessel.besselj;
exports.bessely = bessel.bessely;
exports.besseli = bessel.besseli;
exports.besselk = bessel.besselk;
SheetJS's frac library provides the frac function for rational approximations to numbers:
"frac":"",
The frac function accept the parameters (x, D, m) where x is the number you
wish to approximate, D is an upper bound on the denominator, and m is a flag
indicating that you want mixed rather than improper fractions:
var frac = require('frac');
exports.frac = frac;
"voc":""
},
"name": "maths",
"author": "SheetJS",
"description": "Panoply of Math Functions for NodeJS",
"keywords": ["math", "maths", "specfun", "scimath"],
"repository":{ "type": "git", "url": "https://github.com/SheetJS/maths.git" },
"main": "maths.js"
}
FAQs
Panoply of Math Functions for NodeJS
The npm package maths receives a total of 7 weekly downloads. As such, maths popularity was classified as not popular.
We found that maths demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.