Skip to content

Commit

Permalink
Improve cubic hermite basis function documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
rchristie committed May 15, 2024
1 parent b15a051 commit 9b9faa3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/scaffoldmaker/utils/interpolation.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

def getCubicHermiteBasis(xi):
"""
:return: 4 basis functions for x1, d1, x2, d2
:return: 4 cubic Hermite basis function values for x1, d1, x2, d2 at xi.
"""
xi2 = xi*xi
xi3 = xi2*xi
Expand Down Expand Up @@ -54,7 +54,7 @@ def interpolateCubicHermite(v1, d1, v2, d2, xi):

def getCubicHermiteBasisDerivatives(xi):
"""
:return: 4 derivatives of basis functions for x1, d1, x2, d2
:return: 4 cubic Hermite basis function first derivative values for x1, d1, x2, d2 at xi.
"""
xi2 = xi*xi
df1 = -6.0*xi + 6.0*xi2
Expand Down

0 comments on commit 9b9faa3

Please sign in to comment.