Skip to content
This repository was archived by the owner on Jan 13, 2024. It is now read-only.

Conversation

lovc21
Copy link
Collaborator

@lovc21 lovc21 commented Aug 17, 2023

This is my solution for Interpolation using the barycentric formula.

@lovc21 lovc21 requested a review from mrcinv August 17, 2023 18:00
Copy link
Collaborator

@mrcinv mrcinv left a comment

Choose a reason for hiding this comment

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

Really high quality project. Good code, good documetation, good explanation and presentation of results.

Returns:
max_error: the maximum error
"""
function compute_max_error(f, a, b, n)
Copy link
Collaborator

Choose a reason for hiding this comment

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

This method could be more efficient. One suggestion would be to use use trisection to find maximal error between nodes. This would lead to lower number of computations for small number of nodes and better estimation for larger number of nodes.

---
Here are the results of the interpolation for the three equations for the nodes 1 ,3 the number so that the error is less than 1e-6:

1. e^(-x^2)
Copy link
Collaborator

Choose a reason for hiding this comment

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

I would comment about the results you presented. What are sufficient number of nodes for the exemples and why they are different?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants