First time here? Check out the FAQ!

Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

The expression for f(x) is missing a closing parenthesis.

The next error might be a NameError concerning xcos.

Multiplication should be explicit: write x*cos(x) and x*sin(x) instead of xcos(x) and xsin(x).