.claude/skills/chebfun-analysis/SKILL.md
Compute global extrema (minimum and maximum values) and vector norms (1-norm and infinity-norm) of chebfun objects. Use when analyzing the behavior, bounds, or magnitude of functions represented as chebfuns.
npx skillsauth add ShaneLogic/SolarLab chebfun-analysisInstall 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.
% Create chebfun
f = chebfun(@(x) sin(x) + 0.1*x.^2, [-5, 5]);
% Get global minimum value
min_val = min(f);
% Get global maximum value
max_val = max(f);
% Get minimum value and its location
[min_val, min_pos] = min(f);
% Get maximum value and its location
[max_val, max_pos] = max(f);
Chebfun computes extrema by:
min(f) and max(f) separately is inefficient for large chebfunsFor large chebfuns, use combined computation:
% Faster alternative (if available)
[min_val, max_val, min_pos, max_pos] = minandmax(f);
% Compute 1-norm
one_norm = norm(f, 1);
||f||_1 = ∫ |f(x)| dx% Compute infinity-norm
inf_norm = norm(f, inf);
||f||_inf = max |f(x)|max(max(f), -min(f))% For single chebfuns, 2-norm equals Frobenius norm
two_norm = norm(f, 2);
fro_norm = norm(f, 'fro');
% two_norm == fro_norm for single chebfuns
Note: For quasimatrices, 2-norm and Frobenius norm differ.
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.