Skip to content

Add Chebyshev interpolation points and floating-point precision#31

Open
andravin wants to merge 1 commit intomasterfrom
add-chebyshev-points
Open

Add Chebyshev interpolation points and floating-point precision#31
andravin wants to merge 1 commit intomasterfrom
add-chebyshev-points

Conversation

@andravin
Copy link
Copy Markdown
Owner

@andravin andravin commented Feb 9, 2026

Summary

  • Add chebyshevPoints(n) function to generate Chebyshev nodes of the first kind as exact symbolic expressions, for use as Cook-Toom interpolation points
  • Add precision parameter to both chebyshevPoints and cookToomFilter for converting results to floating-point at configurable precision (3 for float16, 7 for float32, 15 for float64)
  • Transforms are computed symbolically first then converted, preserving numerical accuracy

Test plan

  • Verify Chebyshev node values match expected exact expressions
  • Verify Chebyshev points produce valid F(2,3) filter via symbolic convolution check
  • Verify floating-point Chebyshev nodes match math.cos to double-precision tolerance
  • Verify cookToomFilter(precision=15) produces numeric matrices matching symbolic results
  • All 10 tests pass

🤖 Generated with Claude Code

Add chebyshevPoints(n) to generate Chebyshev nodes of the first kind
as interpolation points for Cook-Toom algorithms. Add precision parameter
to both chebyshevPoints and cookToomFilter for converting exact symbolic
results to floating-point values at configurable precision (float16,
float32, float64).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant