Cannot Plot This Function in Mathematica

Click For Summary
SUMMARY

The discussion centers on a user encountering errors while attempting to plot a function in Mathematica, specifically the function h[2,x,0.5]. The user received output in terms of x but faced challenges when plotting, leading to confusion regarding the error messages. The resolution involved recognizing the need to evaluate integrals using dummy variables, which clarified the plotting issue. The user was advised to search for similar error messages in forums and the Mathematica website for additional insights.

PREREQUISITES
  • Familiarity with Mathematica 12.0 syntax and functions
  • Understanding of function plotting in Mathematica
  • Basic knowledge of integral evaluation techniques
  • Experience with interpreting error messages in programming environments
NEXT STEPS
  • Research how to use dummy variables in Mathematica for integral evaluation
  • Learn about common error messages in Mathematica and their solutions
  • Explore advanced plotting techniques in Mathematica 12.0
  • Investigate community forums for troubleshooting Mathematica issues
USEFUL FOR

Mathematica users, mathematicians, and educators looking to troubleshoot plotting issues and enhance their understanding of function evaluation and integral techniques.

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,065
  • 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,030
Physics news on Phys.org
  • Like
Likes   Reactions: 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   Reactions: jedishrfu

Similar threads

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