We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb4f81f commit af4446fCopy full SHA for af4446f
1 file changed
maths/laplace_transformation.py
@@ -54,10 +54,14 @@ def laplace_transform(
54
if function_values.size == 0:
55
raise ValueError("function_values array cannot be empty.")
56
if s_value < 0:
57
- raise ValueError(f"s_value must be non-negative for this implementation, got{s_value}.")
+ raise ValueError(
58
+ f"s_value must be non-negative for this implementation, got{s_value}."
59
+ )
60
61
# Time vector corresponding to the function values
- time_vector = np.linspace(0, (len(function_values) - 1) * delta_t, len(function_values))
62
+ time_vector = np.linspace(
63
+ 0, (len(function_values) - 1) * delta_t, len(function_values)
64
65
66
# The integrand: f(t) * e^(-s*t)
67
integrand = function_values * np.exp(-s_value * time_vector)
0 commit comments