Graphing equation in Mathematica help

  • Context: Mathematica 
  • Thread starter Thread starter abe_cooldude
  • Start date Start date
  • Tags Tags
    Graphing Mathematica
Click For Summary
SUMMARY

The discussion focuses on graphing the equation (x + (1/√(1 + cos(x)²))) using Mathematica. The user initially attempted to use the command Plot[x + (1/(sqrt (1 + cos (x)^2))), {x, 0, 9}] but encountered issues with output. A corrected version of the command is provided: Plot[x + 1/Sqrt[1 + Cos[x]^2], {x, 0, 9}, PlotRange -> {-10, 10}]. The user also received an error message indicating that the function arguments must be enclosed in square brackets, highlighting the importance of syntax in Mathematica.

PREREQUISITES
  • Familiarity with Mathematica syntax and functions
  • Understanding of mathematical functions and graphing concepts
  • Knowledge of error handling in Mathematica
  • Basic understanding of trigonometric functions, specifically cosine
NEXT STEPS
  • Research proper syntax for function arguments in Mathematica
  • Explore error messages in Mathematica and how to resolve them
  • Learn about the Plot function in Mathematica and its options
  • Investigate graphing trigonometric functions in Mathematica
USEFUL FOR

Mathematica users, students in mathematics or engineering, and anyone interested in graphing complex mathematical functions.

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]
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 13 ·
Replies
13
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 4 ·
Replies
4
Views
4K