Plot won't show up in Mathematica

  • Thread starter Thread starter Victini11
  • Start date Start date
  • Tags Tags
    Mathematica Plot
Click For Summary
SUMMARY

The forum discussion addresses an issue with the Plot3D function in Mathematica where the plot does not display as expected. Users identified that the variable 'n2' is included in the function but is not defined, which leads to the plot not rendering. Additionally, the cosine function should be corrected to Cos[4*Pi*d*n1] for accurate plotting. These adjustments are crucial for successfully visualizing the 3D plot in Mathematica version 12.3.

PREREQUISITES
  • Familiarity with Mathematica syntax and functions
  • Understanding of 3D plotting concepts
  • Basic knowledge of mathematical functions and variables
  • Experience with debugging code in Mathematica
NEXT STEPS
  • Review the documentation for Mathematica's Plot3D function
  • Learn how to define and manipulate variables in Mathematica
  • Explore examples of 3D plots in Mathematica version 12.3
  • Investigate common errors and troubleshooting techniques in Mathematica
USEFUL FOR

This discussion is beneficial for Mathematica users, particularly those involved in mathematical modeling, data visualization, and anyone troubleshooting plotting issues in version 12.3.

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 1 ·
Replies
1
Views
834
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
2
Views
2K
Replies
7
Views
3K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K