1. Limited time only! Sign up for a free 30min personal tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Plotting equation in mathematica? Any Ideas?

  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
    Try pressing F1. There are a ton of examples in the help file.
     
  4. Aug 3, 2009 #3
    Functions and their arguments must be clearly delineated in Mathematica. It is not clear what the argument of Cos is in the above script. The following generates the graph:
    Code (Text):

    Plot[x + 1/Sqrt[1 + Cos[x^2]], {x, 0, 9}, PlotRange -> {-10, 10}]
     
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: Plotting equation in mathematica? Any Ideas?
  1. Plots in Mathematica (Replies: 1)

Loading...