Using Mathematica to plot and fit data

Levi Tate
Messages
121
Reaction score
0

Homework Statement



Hello. My problem is that I need to learn how to use computer software this semester. My teacher said, go and figure out how to use any computer software you like to make graphs. I have Mathematica but I am not proficient in using it, could somebody please help me with graphing the attached function.


The Attempt at a Solution



There are some questions to answer with respect to the graphs, but I simply need to know how to use the software, that is my goal here, I am really struggling to figure this out so any help would be greatly appreciated. If anybody has a mathematica notebook they could email me with the proper syntax that would be helpful. Thanks again



For 1. I need to know how to take the function γ(β)=1/[(1-(β^2/c^2))]

And compute it for values that I choose, ten of them from [0,0.999] and then have the function compute those values and graph γ(β) at that point.

There are two other similar things on different intervals, but if I knew how to do the first then I could do the other two.

2. I have to plot log(γ) vs. β over the entire range of β

3. I have to plot 1/γ^2 vs. β and then fit this curve to the functional form of y(β)
 

Attachments

Physics news on Phys.org
Or if anybody can point me to relevant videos on the topic that would be very helpful to me. I am willing to put as much work as I need to into this, this is not a matter of laziness, it is just a matter of not being able to find the right information to be able to properly learn how to do this.
 
You might find these videos helpful.

Doing a web search on "plotting with mathematica" or similar searches should help you find some useful tutorials.
 
Yeah, I've been looking all day, I cannot figure out how to take the function and generate values of the function in a table format.

People are telling me to use excel but I don't want to waste having this really powerful software, even if I don't know how to use it.
 
Hello everyone, I’m considering a point charge q that oscillates harmonically about the origin along the z-axis, e.g. $$z_{q}(t)= A\sin(wt)$$ In a strongly simplified / quasi-instantaneous approximation I ignore retardation and take the electric field at the position ##r=(x,y,z)## simply to be the “Coulomb field at the charge’s instantaneous position”: $$E(r,t)=\frac{q}{4\pi\varepsilon_{0}}\frac{r-r_{q}(t)}{||r-r_{q}(t)||^{3}}$$ with $$r_{q}(t)=(0,0,z_{q}(t))$$ (I’m aware this isn’t...
Hi, I had an exam and I completely messed up a problem. Especially one part which was necessary for the rest of the problem. Basically, I have a wormhole metric: $$(ds)^2 = -(dt)^2 + (dr)^2 + (r^2 + b^2)( (d\theta)^2 + sin^2 \theta (d\phi)^2 )$$ Where ##b=1## with an orbit only in the equatorial plane. We also know from the question that the orbit must satisfy this relationship: $$\varepsilon = \frac{1}{2} (\frac{dr}{d\tau})^2 + V_{eff}(r)$$ Ultimately, I was tasked to find the initial...
Back
Top