Ask Your Question

kmr2014's profile - activity

0 years ago received badge  Notable Question (source)
0 years ago received badge  Popular Question (source)
4 years ago asked a question help plot graph - syntaxError

can anyone PLEASE tell me what am i write wrong on this??

f(x) = (xcos(x) + sin(x))/(x+1) + (xsin(x)/((x+1)^2)

show(f)

whenever I try to plot a graph, the following error appears:

File "<ipython-input-1-9a8367ab3956>", line 2 show(f) ^ SyntaxError: invalid syntax

4 years ago asked a question help show(f) ^ SyntaxError: invalid syntax

I write the following code:

f(x) = (xcos(x) + sin(x))/(x+1) + (xsin(x)/((x+1)^2)
show(f)

Whenever I try to plot a graph, the following error appears:

File "<ipython-input-1-9a8367ab3956>", line 2
    show(f)
           ^
SyntaxError: invalid syntax