Computing Numerical Integrals with Maple

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
3 replies · 3K views
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,460
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