Mathematica for Physics - problems

  • Context: Mathematica 
  • Thread starter Thread starter maverick280857
  • Start date Start date
  • Tags Tags
    Mathematica Physics
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
2 replies · 4K views
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: