MAPLE help - plotting integration equation

Click For Summary

Homework Help Overview

The discussion revolves around using Maple software for plotting equations involving integrals. The original poster is encountering difficulties in defining variables and handling constants within the integral, particularly when the constant ranges from zero to under one.

Discussion Character

  • Exploratory, Conceptual clarification, Mathematical reasoning

Approaches and Questions Raised

  • Participants discuss the correct syntax for defining functions and constants in Maple, including the use of sin^2(x) versus sin(x)^2. There are mentions of the importance of delayed evaluation of integrals and the implications of assumptions in calculations.

Discussion Status

Some participants have provided insights into Maple's functionality and suggested approaches for handling integrals and assumptions. There is acknowledgment of the challenges faced with the software, and suggestions for further learning resources have been made.

Contextual Notes

Participants express frustration with certain aspects of Maple, particularly regarding the evaluation of integrals with assumptions. There is a mention of previous experiences in a Physical Chemistry class that relate to these challenges.

fishspawned
Messages
66
Reaction score
16

Homework Statement



Does anybody out there have a good knowledge of maple? i am trying to plot out some equations and having a bit of a snag and not sure how to define my variables to make this work. The integral has a constant that ranges from zero to under 1 and this seems to be giving me a foul up .


Homework Equations



Maple 15 [not the classic version]

The Attempt at a Solution



here's an image of my attempt

mapleattempt_Page_1.jpg

 
Physics news on Phys.org
fishspawned said:

Homework Statement



Does anybody out there have a good knowledge of maple? i am trying to plot out some equations and having a bit of a snag and not sure how to define my variables to make this work. The integral has a constant that ranges from zero to under 1 and this seems to be giving me a foul up .

Homework Equations



Maple 15 [not the classic version]

The Attempt at a Solution



here's an image of my attempt

mapleattempt_Page_1.jpg

Homework Statement


Homework Equations


The Attempt at a Solution

Possibly, Maple does not know what sin^2(x) is; it wants sin(x)^2 instead. Also, Maple thinks that pi is just some unspecified parameter; if you really mean Pi = 3.14169... , you should write that: Pi is a reserved constant, but pi is anything at all. The following works just fine:f:=1/(1-b^2*sin(x)^2);

J:=Int(f,x=0..Pi/2):

Note the use of Int instead of int. Int is the inert or delayed-evaluation form of the int command; it does not evaluate the integral, but gets it ready for evaluation in future commands.

value(J) assuming b>0,b<1;

Pi/(2*sqrt(1-b^2))

Sometimes it is important to delay evaluation of the integral until after you apply assumptions; usually I prefer to apply assumptions locally, using the "assuming" form, rather than globally, using the "assume" command.

However, you could issue the global command assume(b>0,b<1) as you did, then issue the command int(f,x=0..Pi/2). That would give you the same result, but with b printed out as b~; you don't get that annoying tilde if you use the local "assuming" form instead. (There are ways of re-setting the Maple environment so that trailing tildes are not displayed on assumed parameters.)

RGV
 
Last edited:
thank you. there are aspects of Maple that really bother me. I had the same type of trouble all throughout my Physical Chemistry class. this pause before evaluating with assumptions is something i have not seen before and it really would have been useful well before this. Better now than never.
 
fishspawned said:
thank you. there are aspects of Maple that really bother me. I had the same type of trouble all throughout my Physical Chemistry class. this pause before evaluating with assumptions is something i have not seen before and it really would have been useful well before this. Better now than never.

Well, I hate to suggest it, but why not buy a book on the subject? There are many books about Maple, ranging from very elementary to quite advanced. Maple is a great program, but it IS a piece of very complex software, and has its quirks, too. There are also numerous tutorials or on-line courses on Maple available for _free_ download from the web, and many of them would deal exactly whit the sort of issues you had. In particular, it is often best to use delayed evaluation (and maybe numerical evaluation) when plotting functions involving and integration. For example, if you have a function f = f(x,a) and you want to plot F(a) = ∫ f(x,a) dx, x = b..c it is sometimes best to use Fa:=evalf(Int(f,x=b..c)) and then say plot(Fa,a=a_min ..a _max). That will work even if the integral does not have a closed-form formula.

RGV
 

Similar threads

Replies
7
Views
2K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 14 ·
Replies
14
Views
3K
  • · Replies 24 ·
Replies
24
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
3
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K