Mathematica Troubleshooting Graph Plotting in Mathematica: K Value Error

  • Thread starter Thread starter madness
  • Start date Start date
  • Tags Tags
    Mathematica
AI Thread Summary
The discussion revolves around using Mathematica to plot the function f(x)=K(1-x)^{\frac{-3}{8}}. The user initially encountered issues with the graph starting at a negative value when K was set to 325, which was incorrect for their physical application. They also noted that changing K to other values resulted in the graph starting at zero, which was also not desired. A suggestion was made to check the intersection point of the graph, clarifying that it might not start at (0, 0) but rather at (0, 325). The solution provided involved modifying the plot command to include AxesOrigin->{0, 0}, which resolved the issue for the user. The user expressed their inexperience with Mathematica but appreciated the guidance.
madness
Messages
813
Reaction score
69
I just got Mathematica last night and am trying to use it for the first time. I'm trying to plot a graph f(x)=K(1-x)^{\frac{-3}{8}} but it's not working right. I tried first with K = 325 (for physical reasons) and the graph started negative at x=0. If I choose K to be almost anything other than 325 the graph starts at 0 which is also wrong. The command I gave was Plot[325(1-x)^(-3/8), {x,0,0.9}]. Did I do something wrong?
 
Physics news on Phys.org
download the following software which is much more easier than mathematica
http://www.grapheeasy.com/download/ge2en.exe
 
Last edited by a moderator:
Are you sure it starts at 0?
Or does it start at the crossing of the axes? Look carefully if the intersection point is indeed (0, 0), and not (0, 325).
If you insist on having it in the origin, usr

Code:
Plot[325(1-x)^(-3/8), {x,0,0.9}, AxesOrigin->{0, 0}]
 
Thanks that solves the problem. I'm really new at this so I'm still trying to get used to it all.
 

Similar threads

Replies
4
Views
2K
Replies
3
Views
2K
Replies
1
Views
2K
Replies
5
Views
2K
Replies
1
Views
2K
Replies
5
Views
3K
Replies
1
Views
611
Back
Top