Skip to content

Conversation

@pasabanov
Copy link
Member

Types of changes

  • Feature
  • Testing

Related: #1 #9

Description

  1. Implemented misc/generate.py script to generate test data for barycentric formula interpolation.
    mp.dps = 30 was chosen as the smallest multiple of 10 that gives the most accurate results after rounding to precision = 17.
  2. Created misc/barycentric.toml as the output of the script.
  3. Updated verify_data.py to verify the generated data against the saved data.

@pasabanov pasabanov added feature New feature or request tests Adding or changing tests labels Mar 26, 2025
@pasabanov pasabanov requested a review from Copilot March 26, 2025 18:22
@pasabanov pasabanov self-assigned this Mar 26, 2025
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request introduces a new barycentric data generation feature along with appropriate testing support. Key changes include:

  • Implementation of the new script (misc/generate.py) for generating test data using barycentric formula interpolation.
  • Integration of the new barycentric data generation into the testing framework via verify_data.py.
  • Addition of the corresponding output file (misc/barycentric.toml) containing the generated test cases.

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
misc/generate.py New script implementing barycentric interpolation data generation.
verify_data.py Updated to verify barycentric test data.
misc/barycentric.toml Contains barycentric interpolation test cases generated by the script.

@pasabanov pasabanov force-pushed the misc branch 2 times, most recently from 14d7f6e to 28d77b8 Compare March 26, 2025 21:15
1. Implemented `misc/generate.py` script to generate test data for barycentric formula interpolation.
   `mp.dps = 30` was chosen as the smallest multiple of 10 that gives the most accurate results after rounding to `precision = 17`.
2. Created `misc/barycentric.toml` as the output of the script.
3. Updated `verify_data.py` to verify the generated data against the saved data.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature or request tests Adding or changing tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants