Troubleshooting Graph Plotting in Mathematica: K Value Error

  • Context: Mathematica 
  • Thread starter Thread starter madness
  • Start date Start date
  • Tags Tags
    Mathematica
Click For Summary

Discussion Overview

The discussion revolves around troubleshooting a graph plotting issue in Mathematica, specifically regarding the function f(x)=K(1-x)^{\frac{-3}{8}}. Participants explore the behavior of the graph based on different values of K and the command used for plotting.

Discussion Character

  • Technical explanation
  • Debate/contested
  • Homework-related

Main Points Raised

  • One participant reports an issue with the graph starting negative at x=0 when K=325, questioning whether they made an error in their command.
  • Another participant suggests verifying whether the graph actually starts at (0, 0) or at (0, 325), proposing a modification to the plot command to set the axes' origin.
  • A later reply indicates that the suggested modification resolved the initial participant's problem, acknowledging their inexperience with the software.

Areas of Agreement / Disagreement

The discussion appears to have resolved the initial issue raised by the first participant, but there is no explicit consensus on the underlying behavior of the function or the implications of different values of K.

Contextual Notes

The discussion does not clarify the assumptions regarding the function's behavior or the specific conditions under which the graph is expected to start at certain points.

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