-
Notifications
You must be signed in to change notification settings - Fork 0
Submission of homework 2 #1
base: review_branch
Are you sure you want to change the base?
Conversation
…barycentric_formula)
There was a problem hiding this 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) |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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?
This is my solution for Interpolation using the barycentric formula.