.claude/skills/chebyshev-barycentric-interpolation/SKILL.md
Evaluate Chebyshev polynomial interpolants using the barycentric formula, which provides stable and efficient computation of polynomial values at arbitrary points. Use when you need to evaluate Chebyshev interpolants, understand the underlying interpolation algorithm, or implement custom polynomial interpolation.
npx skillsauth add ShaneLogic/SolarLab chebyshev-barycentric-interpolationInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Use the barycentric formula (Theorem 4) to evaluate the polynomial p(x) at any point.
p(x) = (Sum'' [ (-1)^k * f(x_k) / (x - x_k) ]) / (Sum'' [ (-1)^k / (x - x_k) ])
If x is exactly equal to a node x_k, return f(x_k) directly to avoid division by zero.
% Check if x is exactly a node
[found, idx] = ismembertol(x, x_nodes, 1e-14);
if found
p_val = f_values(idx);
return;
end
% Compute numerator and denominator
N = length(x_nodes) - 1;
numerator = 0;
denominator = 0;
for k = 0:N
weight = (-1)^k;
if k == 0 || k == N
weight = weight / 2; % Double prime notation
end
term = weight / (x - x_nodes(k+1));
numerator = numerator + term * f_values(k+1);
denominator = denominator + term;
end
p_val = numerator / denominator;
end
development
Understand and comply with Driftfusion software licensing terms, including the open-source AGPL v3.0 frontend and proprietary MATLAB pdepe solver backend. Use when using, modifying, or distributing Driftfusion code.
development
Initialize the Driftfusion simulation environment and create parameter objects. Use this skill when starting a new MATLAB session or setting up device properties for simulation.
development
Define device layer structure, configure spatial and time meshes, and build device structures with interface grading. Use this skill when setting up the physical geometry and discretization of a simulation device.
research
Analyze simulation solutions, calculate physical quantities, and generate plots. Use this skill when processing completed simulations, extracting currents/densities, or visualizing results.