I'm trying to solve the following laplace transform: f(t) = sen(ωt φ) I wrote the following code to solve the problem
import sympy as sym
from sympy.abc import s,t,x,y,z
from sympy.integrals import laplace_transform
from sympy.integrals import inverse_laplace_transform
omega = sympy.Symbol('omega', real=True)
sin = sympy.sin
function = (sin(omega*t phi))
function
U = laplace_transform(function, t, s)
U[0]
As you can see, I tried the code above to solve the problem, however, the error that the name 'phi' is not defined. Could someone give me an idea of what I would have to fix to make it work?
CodePudding user response:
add a import for phi
from sympy.abc import phi