Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Graphing equation in Mathematica help

  1. Aug 2, 2009 #1
    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: Aug 2, 2009
  2. jcsd
  3. Aug 3, 2009 #2

    Dale

    Staff: Mentor

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

    Function arguments always use square brackets as in f[x]
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: Graphing equation in Mathematica help
Loading...