본문으로 건너뛰기
cccskills
무료GitHub에 공개

interpolation

Problem-solving strategies for interpolation in numerical methods

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(1)

  • SKILL.md4.0 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Interpolation

When to Use

Use this skill when working on interpolation problems in numerical methods.

Decision Tree

  1. Assess Data Characteristics

    • How many data points? Spacing uniform or non-uniform?
    • Is data smooth or noisy?
    • Need derivatives at endpoints?
  2. Select Interpolation Method

    • Few points (<10): Polynomial (Lagrange, Newton)
    • Many points, smooth data: Cubic splines
    • Noisy data: Smoothing splines or least squares
    • High dimensions: Use simplex-based (n+1 neighbors vs 2^n)
  3. Implement with SciPy

    • scipy.interpolate.CubicSpline(x, y) - natural cubic spline
    • scipy.interpolate.make_interp_spline(x, y, k=3) - B-spline
    • scipy.interpolate.interp1d(x, y, kind='cubic') - 1D interpolation
  4. Validate Results

    • Check for Runge's phenomenon at boundaries (high-degree polynomials)
    • Cross-validate: leave-one-out error estimation
    • Visual inspection of interpolated curve
    • sympy_compute.py limit "interp_error" --at boundaries
  5. High-Dimensional Considerations

    • Coxeter-Freudenthal-Kuhn triangulation for O(n log n) point location
    • Barycentric subdivision for balanced performance

Tool Commands

Scipy_Cubic_Spline

uv run python -c "from scipy.interpolate import CubicSpline; import numpy as np; x = np.array([0,1,2,3]); y = np.array([0,1,4,9]); cs = CubicSpline(x, y); print(cs(1.5))"

Scipy_Bspline

uv run python -c "from scipy.interpolate import make_interp_spline; import numpy as np; x = np.array([0,1,2,3]); y = np.array([0,1,4,9]); bspl = make_interp_spline(x, y, k=3); print(bspl(1.5))"

Sympy_Lagrange

uv run python -m runtime.harness scripts/sympy_compute.py interpolate "[(0,0),(1,1),(2,4)]" --var x

Key Techniques

From indexed textbooks:

  • [An Introduction to Numerical Analysis... (Z-Library)] DISCUSSION OF THE LITERATURE Discussion of the Literature As noted in the introduction, interpolation theory is a foundation for the development of methods in numerical integration and differentiation, approxima tion theory, and the numerical solution of differential equations. Each of these· topics is developed in the following chapters, and the associated literature is discussed at that point. Additional results on interpolation theory are given in de Boor (1978), Davis (1963), Henrici (1982, chaps.
  • [Numerical analysis (Burden R.L., Fair... (Z-Library)] The most commonly used form of interpolation is piecewise-polynomial interpolation. If function and derivative values are available, piecewise cubic Hermite interpolation is recommended. This is the preferred method for interpolating values of a function that is the solution to a differential equation.
  • [Numerical analysis (Burden R.L., Fair... (Z-Library)] Copyright 2010 Cengage Learning. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
  • [Numerical analysis (Burden R.L., Fair... (Z-Library)] Galerkin and Rayleigh-Ritz methods are both determined by Eq. However, this is not the case for an arbitrary boundary-value problem. A treatment of the similarities and differences in the two methods and a discussion of the wide application of the Galerkin method can be found in [Schul] and in [SF].
  • [An Introduction to Numerical Analysis... (Z-Library)] Polynomial interpolation theory has a number of important uses. In this text, its primary use is to furnish some mathematical tools that are used in developing methods in the areas of approximation theory, numerical integration, and the numerical solution of differential equations. A second use is in developing means - for working with functions that are stored in tabular form.

Cognitive Tools Reference

See .claude/skills/math-mode/SKILL.md for full tool documentation.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Agent Context Isolation

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

parcadei/Continuous-Claude-v33.9천2026년 1월 27일 업데이트

Agent Orchestration Rules

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

parcadei/Continuous-Claude-v33.9천2026년 1월 27일 업데이트

Agentic Workflow Pattern

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

parcadei/Continuous-Claude-v33.9천2026년 1월 27일 업데이트

Guide for integrating Agentica SDK with Claude Code CLI proxy

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

parcadei/Continuous-Claude-v33.9천2026년 1월 27일 업데이트

Reference guide for Agentica multi-agent infrastructure APIs

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

parcadei/Continuous-Claude-v33.9천2026년 1월 27일 업데이트

Write reliable prompts for Agentica/REPL agents that avoid LLM instruction ambiguity

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

parcadei/Continuous-Claude-v33.9천2026년 1월 27일 업데이트

parcadei의 스킬 모두 보기

이 스킬의 문제 신고