'Simple function cant be plotted
I'm inexperienced because it's my first time learning it. I really appreciate your help.
Solution 1:[1]
The problem are missing brackets in the second line. It is
plt.plot(x, 3+math.exp-x*math.sin(6*x))
while it probably should be
plt.plot(x, 3+math.exp(-x)*math.sin(6*x))
The error could help you with this as you tried to substract x (an integer) from math.exp (a builtin_function_or_method)
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Moanos |
