
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
@sctg/polyfitjs
Advanced tools
A TypeScript library for polynomial fitting.
Array, Float32Array and Float64Arraynpm install @sctg/polyfitjs
import { Polyfit } from '@sctg/polyfitjs';
const x = [1, 2, 3, 4, 5];
const y = [0.01, 0.03, -0.02, 0.03, 0.02];
const poly = new Polyfit(x, y);
const solver = poly.getPolynomial(6);
// Using the solver
console.log(solver(1.17)); // Calculates y for x = 1.17
const terms = poly.computeCoefficients(6);
console.log(terms); // Shows polynomial coefficients
const terms = poly.computeBestFit(100,0.99); // Max degree, min correlation coefficient
console.log(terms); // Shows polynomial coefficients
const terms = poly.computeCoefficients(6);
const correlation = poly.correlationCoefficient(terms);
const stdError = poly.standardError(terms);
To build the project, run the following command:
git clone git@github.com:sctg-development/polyfitjs.git
cd polyfitjs
npm ci
npm run build
npm test
Copyright © 2023, P. Lutus and Ryan Fink.
Modifications © 2025, SCTG Development.
Released under GPL v3 - Details
Heavily inspired by Paul Lutus's work (lutusp@arachnoid.com) - polysolve
FAQs
Polynomial fitment library for javascript
We found that @sctg/polyfitjs demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers 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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.