Plot won't show up in Mathematica

  • Thread starter Thread starter Victini11
  • Start date Start date
  • Tags Tags
    Mathematica Plot
Click For Summary
The user is experiencing issues with a Plot3D function in Mathematica, where the plot does not render as expected. The formula includes variables n1 and d, with n2 mentioned but not defined, which may contribute to the problem. There is a correction needed in the cosine function, which should be written as Cos[4*Pi*d*n1]. The range for n1 is set from 1 to 1.5, and d is set from 100 to 1000. Ensuring all variables are properly defined and correcting the cosine function should resolve the plotting issue.
Victini11
Messages
1
Reaction score
0
Homework Statement
My plot is not working, for some reason when I try to plot it it show nothing. I am not really used to using mathematica so maybe it's an syntax error but can really get what is wrong
Relevant Equations
Plot3D [(1.5/
1)*(2/1 +
n2)^2*((2*n1)/(n1 +
1.5))^2/(1 + ((n1 - 1.5)/(n1 + 1.5))^2 ((n1 + 1)/(1.5 +
1))^2 -
2*((n1 - 1.5)/(n1 + 1.5)*((n1 + 1)/(1.5 + 1)))*
Cos*(4*Pi*d*n1)), {n1, 1, 1.5}, {d, 100, 1000}]
IMG_20220614_144451.jpg
IMG_20220614_201740.jpg
1655255981668.png
 
Physics news on Phys.org
Code:
Plot3D [(1.5/
1)*(2/1 +
n2)^2*((2*n1)/(n1 +
1.5))^2/(1 + ((n1 - 1.5)/(n1 + 1.5))^2 ((n1 + 1)/(1.5 +
1))^2 -
2*((n1 - 1.5)/(n1 + 1.5)*((n1 + 1)/(1.5 + 1)))*
Cos*(4*Pi*d*n1)), {n1, 1, 1.5}, {d, 100, 1000}]
The is a n2 in there and the cosine should be
Code:
Cos[4*Pi*d*n1]
 

Similar threads

  • · Replies 0 ·
Replies
0
Views
598
  • · Replies 5 ·
Replies
5
Views
1K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
2
Views
2K
Replies
7
Views
2K
  • · Replies 2 ·
Replies
2
Views
994
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K