MAPLE help - plotting integration equation

Click For Summary
The discussion focuses on troubleshooting plotting issues in Maple, specifically related to defining variables for an integral with a constant ranging from zero to under one. Users highlight the importance of using the correct syntax, such as using sin(x)^2 instead of sin^2(x), and the distinction between Int and int commands for delayed evaluation. The conversation also emphasizes the utility of applying assumptions locally rather than globally to avoid complications with parameter representation. Suggestions include utilizing resources like books and online tutorials to better understand Maple's complexities. Overall, the thread provides practical insights for effectively using Maple for integration and plotting tasks.
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
 
Question: A clock's minute hand has length 4 and its hour hand has length 3. What is the distance between the tips at the moment when it is increasing most rapidly?(Putnam Exam Question) Answer: Making assumption that both the hands moves at constant angular velocities, the answer is ## \sqrt{7} .## But don't you think this assumption is somewhat doubtful and wrong?

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