Mathematica Cannot Plot This Function in Mathematica

Click For Summary
In a discussion about troubleshooting Mathematica, a user encountered errors when attempting to plot the output of a function h[2,x,0.5]. Despite reviewing error messages, clarity on the issue remained elusive. Suggestions included searching online forums and the Mathematica website for similar problems, which often yield helpful insights from other users. The user later realized that the issue stemmed from needing to evaluate integrals using dummy variables, leading to a resolution of the plotting problem.
member 428835
Hi PF!

I have the following in Mathematica.
Screen Shot 2018-02-26 at 1.41.39 PM.png
Screen Shot 2018-02-26 at 1.41.48 PM.png

Notice h[2,x,0.5] gives me an output in terms of x, but when I try to plot this I get errors. Anyone know why this is? I read the error messages but am still unsure why I am not getting a clean output.
 

Attachments

  • Screen Shot 2018-02-26 at 1.41.39 PM.png
    Screen Shot 2018-02-26 at 1.41.39 PM.png
    21.1 KB · Views: 1,048
  • Screen Shot 2018-02-26 at 1.41.48 PM.png
    Screen Shot 2018-02-26 at 1.41.48 PM.png
    20.1 KB · Views: 1,006
Physics news on Phys.org
  • Like
Likes member 428835
jedishrfu said:
Have you googled the error messages? Often other users of Mathematica or Matlab post these questions on forums too and someone may answered it already. ALso I would check the Mathematica website for more info on the error message.

I found these two examples:

https://www.physicsforums.com/threads/summation-with-mathematica.498250/

https://stackoverflow.com/questions/40987025/raw-object-1-cannot-be-used-as-an-iterator
Thanks for your response. While the two links didn't explicitly help me, you made me think about digging deeper in what I wrote. Problem was I needed to evaluate the integrals using dummies. Makes sense. Thanks.
 
  • Like
Likes jedishrfu

Similar threads

  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 18 ·
Replies
18
Views
5K