Plot command error with x + 1/Sqrt[1 + Cos x^2]

  • Context: Mathematica 
  • Thread starter Thread starter abe_cooldude
  • Start date Start date
  • Tags Tags
    Graphing Mathematica
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
1 reply · 5K views
abe_cooldude
Messages
14
Reaction score
0
Hi, I am trying to graph

(x+(1/√(1+cos(x)²)))

in mathematica, and i used

Plot[x + (1/(sqrt (1 + cos (x)^2))), {x, 0, 9}]

but I am not getting an output graph.

Any ideas?!

Plot[x + 1/Sqrt[1 + Cos x^2], {x, 0, 9}, PlotRange -> {-10, 10}]

I found few errors, and above is what I got, it's a progress, but now I get this error:

Plot::exclul: {Im[Cos x^2]-0} must be a list of equalities or \
real-valued functions.
 
Last edited:
Physics news on Phys.org
Plot[x + 1/Sqrt[1 + Cos[x]^2 ], {x, 0, 9}]

Function arguments always use square brackets as in f[x]