dharr

Dr. David Harrington

8235 Reputation

22 Badges

20 years, 341 days
University of Victoria
Professor or university staff
Victoria, British Columbia, Canada

Social Networks and Content at Maplesoft.com

Maple Application Center
I am a retired professor of chemistry at the University of Victoria, BC, Canada. My research areas are electrochemistry and surface science. I have been a user of Maple since about 1990.

MaplePrimes Activity


These are answers submitted by dharr

The code works for me in Maple 2015 in 1-D math. It seems you have a space between print and ( which is interpreted as multiplication - remove it and it should work.

Use shift-enter to make a new line in the same execution group. (In more recent versions, the error message gives you this advice).

Following the observation from @tomleslie, you can just divide your equation through by x to get x^3+x*z+y and then implicitplot gives you what you want. 

implicitplot is confused by filled=true; wants a closed curve then filledregion=true

Perhaps you want

eq:=x^(1/2)+y^(1/2)=2;
solve(eq,y);
plot(%,x=0..1,filled=true);

 

x^(1/2)+y^(1/2) = 2

x-4*x^(1/2)+4



 

indets(eq[1],name); gives the indeterminates: {a, b, c, d, HRa[1, 0], SR[1, 1], W[1, 0], ga[1, 0]}

If you add "assuming t>0", then you will get just (+) infinity, which seems to the the correct answer since the denominator approaches zero as s approaches t. This assumes you wanted s real - not sure what answer you expected here.

_z1 is a dummy integration variable. You asked for an analytic solution (the default) and it contains an integral that can't be evaluated analytically.

Probably you only want an numerical solution, so add the numeric option to dsolve. Then you can use the returned procedure to find values of Vc at different times, or use odeplot to look at the solution as a function of time.

How about putting the whole thing in a procedure? Then your "quitting the search" can be

return i[1], ...i[10];

Put the cursor in the execution group, then use edit/select execution group (or ctrl-alt-shift-E) to select the group. Then you can copy it. This copies the input and output.

In Maple 2015, you can fudge it like:

with(plots):with(plottools):

p1:=display(parallelepiped([0, 0, 1], [0, 2, 2], [2, 2, 2], transparency=0.5),shading=xyz):

p2:=display(parallelepiped([0, 0, 1], [0, 1, 1], [1, 1, 1], transparency=0.5),shading=zhue):

display([p1,p2]);

 

(I think in earlier versions, color functions and shading schemes weren't available for all plot structures, like the POLYGON structure that parallelopiped produces. So I think the warning from plottools is perhaps a leftover from earlier versions, and I'm not sure this workaround can solve the problem in Maple 15)

Set each of your plots into a variable, then combine them with plots:-display. You may want to add extra options to the display that override the ones in the individual plots:

p1:=plots:-pointplot([seq([x,0],x=[-sqrt(16),-2,-3/4,0,exp(1),Pi])],view=[-4..4,0..0.01],symbolsize=20,symbol=solidcircle,colour=blue,scaling=constrained);

p2:=plots:-textplot([-4,.7,typeset("-sqr 16")],font=[TIMES,BOLD,12]);

plots:-display(p1,p2,view=[-4..4,0..1],scaling=constrained);

Use Digits:=40; before plotting. I'm guessing you need more digits to combine the very large 10^1390 with the very small exp(-1.597924898*2000)

I'd select the text, copy it and then paste in into a text file such as code.txt. Then read it into maple using the read command, something like read(cat(currentdir(),"/code.txt")); (assumes your maple worksheet and code.txt are in the same directory). You may have to edit the text file slightly, e.g., what look like backquotes don't seem to be, so replace them with actual backquotes (according to the syntax error).

Also conformal in the plots package will do the grids in to new curves as you wanted. See also conformal3d.

After creating two plots, e.g. by

p1:=plot(x,x=0..1,color=blue);p2:=plot([[0.5,0.5]],style=point,symbol=solidcircle,symbolsize=30,color=red);

 

then plots:-display(p1,p2) plots p2 on top of p1, and plots:-display(p2,p1) plots p1 on top of p2.

First 70 71 72 73 74 75 76 Last Page 72 of 81