Message Boards Message Boards


Mathematica won't plot my functions again. Why is this happening?

Posted 9 years ago
1 Reply
0 Total Likes

In the file I have attached, I have h(x) defined as h[x_]:=x^2 - 4x + 7cos[x] and I have tried to plot it and as you can see from the images, I get an empty graph. Why is this? And can someone help me fix it?

POSTED BY: Melissa Denison

Hi Melissa--

Cosine has to be spelled with t capitol "C". All built-in Mathematica functions start with a capitol.

when you define the function as

h[x_] := x^2 - 4 x + 7 Cos[x]

things work fine.

Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
or Discard

Group Abstract Group Abstract