Skip to content

Instantly share code, notes, and snippets.

View lafkpages's full-sized avatar

LuisAFK lafkpages

View GitHub Profile
@lafkpages
lafkpages / sine.js
Created July 3, 2024 17:40
Modifies the global sine function to interpolate between randomly generated points.
const points = {};
const amplitude = 15;
// For polynomial interpolation
const interpolationLeft = 3;
const interpolationRight = 3;
// When true, uses polynomial interpolation
// Otherwise, uses linear interpolation