Python
import numpy as np
import plotly.graph_objects as go

# Generate t values
t = np.linspace(0, 4, 1000)

# Calculate function values
y = 3 * np.exp(-t) * np.sin(-5 * np.pi * t)

# Create the plot
fig = go.Figure(data=go.Scatter(x=t, y=y, mode='lines'))

# Update layout
fig.update_layout(
    title='f(t) = 3 * e^(-t) * sin(-5πt)',
    xaxis_title='t',
    yaxis_title='f(t)',
    showlegend=False
)

# Show the plot
fig.show()
Click Run or press shift + ENTER to run code.