Computing Numerical Integrals with Maple

WWCY
Messages
476
Reaction score
15
Hi all, I am new to the Maplesoft software and have been experiencing trouble computing numerical integrals.

I defined a few mathematical functions in terms of a few variables like so:
Screen Shot 2018-04-07 at 12.41.48 AM.png

I then used "subs" to input values to anything that isn't already a defined constant (like ##\hbar,\pi## and all that) into my function Psisq.

I took the entire chunk of the resulting output and placed it into evalf( int( output, x=-infinity..infinity ) ) but all I got was the unevaluated integral rather than a number.

Could anyone assist or even suggest a better way? Many thanks in advance!
 

Attachments

  • Screen Shot 2018-04-07 at 12.41.48 AM.png
    Screen Shot 2018-04-07 at 12.41.48 AM.png
    17.8 KB · Views: 1,456
Physics news on Phys.org
Maybe you should start with something a little bit less complicated to learn how this all works.
 
Dr.D said:
Maybe you should start with something a little bit less complicated to learn how this all works.
Thanks
 
Maybe just evalf(output) without integration to make sure you only have 1 variable now.
 

Similar threads

  • · Replies 13 ·
Replies
13
Views
3K
  • · Replies 7 ·
Replies
7
Views
5K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
17
Views
6K
  • · Replies 11 ·
Replies
11
Views
4K
Replies
7
Views
3K
  • · Replies 10 ·
Replies
10
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 6 ·
Replies
6
Views
17K
  • · Replies 8 ·
Replies
8
Views
4K