Skip to content

Commit 92e3835

Browse files
Update maths/laplace_transformation.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent fca04e3 commit 92e3835

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

maths/laplace_transformation.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,16 @@ def laplace_transform(
1414
"""
1515
Calculate the numerical Laplace Transform of a function given its values over time.
1616
17+
This implementation supports only real-valued, non-negative Laplace
18+
parameters ``s``.
19+
1720
Args:
1821
function_values: A numpy array of the function values f(t).
19-
s_value: The complex frequency parameter 's' (modeled here as a float).
22+
s_value: The real-valued Laplace parameter ``s``. Must be non-negative.
2023
delta_t: The time step between samples.
2124
2225
Returns:
23-
The approximate value of the Laplace transform at s_value.
26+
The approximate real-valued value of the Laplace transform at s_value.
2427
2528
Example: For f(t) = 1, the Laplace transform L{1} = 1/s.
2629
If s = 2, L{1} should be 0.5.

0 commit comments

Comments
 (0)