Computing Numerical Integrals with Maple

Click For Summary

Discussion Overview

The discussion revolves around the challenges of computing numerical integrals using Maple software. Participants share their experiences and seek assistance with specific issues related to function definitions and integration methods.

Discussion Character

  • Exploratory, Technical explanation, Homework-related

Main Points Raised

  • One participant describes their process of defining functions and substituting values, but encounters an issue where the integral remains unevaluated.
  • Another participant suggests starting with simpler problems to better understand the software's functionality.
  • A repeated suggestion emphasizes the importance of ensuring only one variable is present before attempting integration, recommending the use of evalf on the output first.

Areas of Agreement / Disagreement

There is no consensus on a specific solution to the original problem, and multiple suggestions are offered without agreement on the best approach.

Contextual Notes

Participants do not clarify the specific nature of the functions defined or the assumptions made in their integration attempts, leaving some details unresolved.

Who May Find This Useful

Users of Maple software, particularly those new to numerical integration or seeking to troubleshoot similar issues.

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,445
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
2K
Replies
7
Views
2K
  • · Replies 10 ·
Replies
10
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 6 ·
Replies
6
Views
17K
  • · Replies 8 ·
Replies
8
Views
4K