Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add hpval #4

Merged
merged 3 commits into from
Jan 24, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
sigma arrays do need to be length N
for the interface,
even though the last value is not used, to my understanding
  • Loading branch information
zmoon committed Jan 24, 2024
commit 24595067dfdeac872d4645588fb271dce0e21c75
6 changes: 4 additions & 2 deletions pytspack/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ def hval(xp, x, y, yp, sigma):
where HP is the derivative of H.
sigma : array
Tension factors, for each interval in the original X points
(as such, length N - 1).
(element I corresponds to the interval (I,I+1);
the last value in the array is not used).

Returns
-------
Expand Down Expand Up @@ -75,7 +76,8 @@ def hpval(xp, x, y, yp, sigma):
First derivatives at original X points. HP(X(I)) = YP(I).
sigma : array_like
Tension factors, for each interval in the original X points
(as such, length N - 1).
(element I corresponds to the interval (I,I+1);
the last value in the array is not used).

Returns
-------
Expand Down