How to plot it graph in Mathematica

  • Context: Undergrad 
  • Thread starter Thread starter roshan2004
  • Start date Start date
  • Tags Tags
    Graph Mathematica Plot
Click For Summary

Discussion Overview

The discussion revolves around how to plot the potential inside a uniformly charged sphere of radius R using Mathematica. Participants are seeking assistance with the correct syntax and parameters needed for the plot.

Discussion Character

  • Technical explanation

Main Points Raised

  • One participant presents the equation for the potential inside a uniformly charged sphere and requests help with plotting it in Mathematica.
  • Another participant suggests a specific Mathematica command for plotting the equation but includes a syntax error in their response.
  • A third participant indicates that the plot command results in an error, implying that the syntax may be incorrect or incomplete.
  • A later reply emphasizes the necessity of assigning specific values to the parameters (Q, epsilon_0, R) to create a function of one variable (r) suitable for plotting.
  • One participant acknowledges their mistake in the previous message, indicating a recognition of the error in the plotting approach.

Areas of Agreement / Disagreement

Participants generally agree on the need to assign values to parameters for successful plotting, but there is no consensus on the correct syntax or approach to achieve this.

Contextual Notes

The discussion highlights the importance of parameter assignment in plotting functions in Mathematica, but does not resolve the specific syntax issues or errors encountered.

roshan2004
Messages
140
Reaction score
0
The potential inside of a uniformly charged sphere of radius R is given by [itex]\frac{Q}{4\pi \epsilon _{0}}\frac{1}{2R}(3-\frac{r^2}{R^2})[/itex].
Please help me on how to plot this equation in Mathematica
 
Physics news on Phys.org
Thanks for the help, but it shows error.
 
You cannot plot it as a general formula. You need to assign values to the parameters (Q, epsilon_o, R) so you will have a function of one variable only (r).
 
Oops my bad, sorry :)
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 19 ·
Replies
19
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K