Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Maple Computing Numerical Integrals with Maple

  1. Apr 6, 2018 #1
    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!
     
  2. jcsd
  3. Apr 6, 2018 #2
    Maybe you should start with something a little bit less complicated to learn how this all works.
     
  4. Apr 8, 2018 #3
    Thanks
     
  5. Apr 13, 2018 #4

    scottdave

    User Avatar
    Science Advisor
    Homework Helper
    Gold Member

    Maybe just evalf(output) without integration to make sure you only have 1 variable now.
     
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook

Have something to add?