Numerical Simulations with Mathematica: A Beginner's Guide

Click For Summary

Discussion Overview

The discussion revolves around using Mathematica for numerical simulations, specifically focusing on plotting a theoretical relationship defined by the equation Y = CX, where C is a constant. Participants explore how to effectively use Mathematica's plotting capabilities, particularly for beginners.

Discussion Character

  • Exploratory
  • Technical explanation
  • Homework-related

Main Points Raised

  • One participant expresses confusion about how to plot Y vs. X in Mathematica, suggesting that they initially thought they needed to calculate Y for each X value manually.
  • Another participant clarifies that Mathematica's Plot command can be used to plot the function directly by specifying the function, variable, and range, indicating that Mathematica handles the calculations automatically.
  • A subsequent post questions whether the ease of using the Plot command is common among researchers for theoretical simulations, expressing surprise at its simplicity.
  • Another participant asserts that plotting should not be a tedious task, emphasizing that it is not the primary focus of researchers' work.

Areas of Agreement / Disagreement

Participants generally agree that Mathematica's Plot command simplifies the plotting process, but there is some uncertainty regarding the perceived complexity of using it for theoretical simulations. The discussion does not reach a consensus on the overall ease of use for beginners.

Contextual Notes

Some limitations are noted regarding the participants' familiarity with Mathematica and the need for a specific value for C to generate a plot. There is also an implicit assumption that users have a basic understanding of programming and mathematical concepts.

Who May Find This Useful

Beginners in Mathematica, researchers interested in numerical simulations, and those looking for insights into plotting functions in computational software may find this discussion beneficial.

shinobi20
Messages
277
Reaction score
20
I'm very new to Mathematica/programming and I want to do a theoretical calculation using Mathematica,
suppose I have,

##Y=CX,~~~C=constant##

Now, I want to plot Y vs. X but X should run at every point since every point is a solution for Y, how should I do this? Before, I was thinking maybe I could just give the domain (i.e. from 0 to 100 with interval 1) and then just let Mathematica do it, but I was wrong since Mathematica should calculate the value of Y for a certain X for one round then input another point then run again, etc.

Background:
* I'm really a beginner, I can just do the basic stuff in Mathematica (arithmetic, calculus, etc)
* Hands on start to mathematica (Wolfram website)
* Mathematica: A Problem Centered Approach by Roozbeh Hazrat (https://www.amazon.com/dp/1849962502/?tag=pfamazon01-20)

I will appreciate any advice on how to continue in this situation.
 
Last edited by a moderator:
Physics news on Phys.org
shinobi20 said:
Before, I was thinking maybe I could just give the domain (i.e. from 0 to 100 with interval 1) and then just let Mathematica do it, but I was wrong since Mathematica should calculate the value of Y for a certain X for one round then input another point then run again, etc.
With Mathematica's Plot command you need only specify the function to plot, the variable, and the variable's range. Mathematica will do the rest.

Plot[C X, {X,0,100}]

Of course, C will need to have a value for this to work.
 
Orodruin said:
With Mathematica's Plot command you need only specify the function to plot, the variable, and the variable's range. Mathematica will do the rest.

Plot[C X, {X,0,100}]

Of course, C will need to have a value for this to work.
Is the plot command also used by researchers when doing their theoretical simulation (assuming mathematica can)? Is it really that easy now? I thought it was a very tedious work.
 
Last edited by a moderator:
A simple plot should not need tedious work to be plotted, because nobody wants to waste essential time of their work trying to figure out how plotting a function works... it's not the tedious part of their work...
 
Last edited:

Similar threads

  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 13 ·
Replies
13
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 6 ·
Replies
6
Views
12K