Using Mathematica to plot and fit data

Click For Summary

Homework Help Overview

The original poster is seeking assistance with using Mathematica to graph a specific function related to their homework. The function in question is γ(β)=1/[(1-(β^2/c^2))], and the poster aims to compute and plot values of this function over specified intervals, as well as create additional plots involving logarithmic and inverse squared transformations of the function.

Discussion Character

  • Exploratory, Conceptual clarification, Problem interpretation

Approaches and Questions Raised

  • The original poster expresses a need to understand how to generate values from the function and plot them using Mathematica. They inquire about the syntax and methods for achieving this, including generating a table of values. Other participants suggest looking for tutorials and videos related to plotting in Mathematica, while some express frustration with the learning curve of the software.

Discussion Status

The discussion is ongoing, with participants sharing resources and expressing their challenges in learning to use Mathematica effectively. There is a recognition of the need for guidance on specific functionalities within the software, but no consensus has been reached on a particular solution or method.

Contextual Notes

The original poster emphasizes their willingness to learn and the difficulty they are facing in finding appropriate resources. They mention that they have other similar tasks to complete once they understand the first one, indicating a broader context of learning software skills for their coursework.

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.
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
Replies
21
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 12 ·
Replies
12
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K