Mathematica for Physics - problems

  • Context: Mathematica 
  • Thread starter Thread starter maverick280857
  • Start date Start date
  • Tags Tags
    Mathematica Physics
Click For Summary
SUMMARY

The discussion centers on troubleshooting plotting issues in Mathematica while working through examples from the book "Mathematica for Physics." A user reported difficulties in generating plots from commands in chapter 9, specifically problem 4 regarding a particle propagating toward a rectangular potential. The solution involved correcting a syntax error in the definition of kRules, where a comma should replace a semicolon between kW and kLR. This adjustment resolved the plotting issue, allowing for successful visualizations.

PREREQUISITES
  • Familiarity with Mathematica syntax and commands
  • Understanding of plotting functions in Mathematica
  • Basic knowledge of quantum mechanics concepts, particularly potential wells
  • Access to the book "Mathematica for Physics" for context
NEXT STEPS
  • Review Mathematica syntax rules for defining lists and rules
  • Explore advanced plotting techniques in Mathematica
  • Study quantum mechanics principles related to particle behavior in potential wells
  • Examine additional examples from "Mathematica for Physics" for further practice
USEFUL FOR

Students and educators in physics, Mathematica users troubleshooting plotting issues, and anyone interested in applying computational tools to physics problems.

maverick280857
Messages
1,774
Reaction score
5
Mathematica for Physics -- problems

Hi

I'm trying to work out the solved examples in the book "Mathematica for Physics" [The code is available at http://library.wolfram.com/infocenter/Books/4539/]. But I am unable to plot anything despite using the plot commands given in the book.

Specifically, looking at ch9.nb (available from this link) -- problem 4 (particle propagating toward a rectangular potential), the commands given produce blank plots. I am able to plot simple functions, so I think the problem is with these commands.

I've attached my code with this thread. I'd be really grateful if someone could help me out with this.

Thanks.
 

Attachments

Physics news on Phys.org


Hi Maverick,

there's only one slight mistake in your Mathematica syntax. In your definition of kRules (4th cell in the nb) there should be a , (comma) instead of a ; (semicolon) between kW and kLR. Change that and your plot will look awesome... :smile:
 


Thanks :-)
 

Similar threads

  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 16 ·
Replies
16
Views
7K
  • · Replies 11 ·
Replies
11
Views
17K
  • · Replies 22 ·
Replies
22
Views
4K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 7 ·
Replies
7
Views
6K