Carl Love

Carl Love

28070 Reputation

25 Badges

13 years, 37 days
Himself
Wayland, Massachusetts, United States
My name was formerly Carl Devore.

MaplePrimes Activity


These are replies submitted by Carl Love

@ecterrab There are five places in your Answer where there is supposed to be some Maple code but it is missing. Please edit the Answer to include the code. Plaintext of the code is fine.

@DJJerome1976 Depending on the input mode being used, it may be necessary to express y'(x) as either diff(y(x), x) or D(y)(x).

@mehdi jafari It is important to point out to the student that Maple, which is working in the complex domain, will not put the arguments to ln in abs. I.e., Maple's answers will contain, for example, ln(x) even though the correct answer in the real domain expresses this as ln(abs(x)). I noticed that the multiple-choice answers in the student's assignment make the fine distinction between lns with and without abs.

Also, note the power of the implicit option to dsolve. This will put the answers in a form much closer to those multiple-choice answers.

@Michael The syntax in m mod n. The parentheses around n are superfluous. So the syntax is the same as any other spelled-out binary operator, such as union, in, etc. The premature evaluation is the intended behavior. mod is intended for symbolic computation. For pure integer calculation the command is irem.

@itsme Bravo for the hack! It's rare to be able to hack a procedure in a module just by rewriting its code because you don't have access to the (private) module locals.

I don't know if this was your intention, but your hack also corrects the anonymous procedure anomaly.

@Bendesarts I am probably missing something here since I am not very familiar with document mode, but I fail to see how using document mode helps your situation. How does it make the worksheet shorter?

@Alejandro Jakubi I think backwards compatibility may be easy to maintain while not requiring new code to have to take into account both cases. Simply define(in the Maple library code) Int:= %int, Sum:= %sum, etc.

 My "case 1" Grid:-Map experience is exactly as Darin described. On a 4 CPU machine, I get 5 copies of mserver. One is consuming 0% of the processing power, and the other 4 are each consuming 24-25%.

One disturbing thing: Each of the active mservers was using 160-170 Meg of memory, even though I was running from a pristine (just-opened) copy of Maple. Why is that? My code was simply

F:= proc(x)
local st:= time();
     while time()-st < 5 do end do;
     time()-st
end proc:
Grid:-Map(F, [0$10]);

@mehdi jafari Your procedure has the textplot3d coordinates hardcoded for your example Matrix. Also, your chosen view and orientation may not be appropriate for other sets of vectors. Here's a more general procedure:

F:=proc(A::Matrix(3,3), {plotoptions::list:= []})
local V, P, T, k;  
     V:= seq(convert(A[..,k], list), k= 1..3);
     P:= plots:-arrow({V}, color= red, width= [0.1, relative= false]);
     T:= plots:-textplot3d([seq]([V[k][], sprintf("V%d", k)], k= 1..3), color= black);
     plots:-display([P, T], scaling= constrained, axes= normal, plotoptions[])
end proc;

Plot options can be added in the call; for example,

F(A, plotoptions= [orientation= [45,75]]);

Or you can accept the default options via simply

F(A);

@Mac Dude The 3D pie charts were introduced in Maple 16. 3D pie charts seem dishonest---they overemphasize sections in the foreground. Consider your example above: The Machinery is slightly more than 1/4 (27%), but it looks like slightly less than one quarter.

The arrow can be added with plottools:-arrow.

Just confirming what you said about slideshows, since you seemed unsure: There is no scrolling allowed. Each section becomes one slide. Sections that are longer than one screen get truncated.

@radzys I got the file this time.

@MuriloLobo The module S1 is supposed to be the output of a command in the Optimization package. But there is no such command in the beginning of your worksheet. There is a call later in the worksheet, S1:= NLPSolve(...). A call like this needs to occur before you access S1:-Results.

@Mac Dude Just confirming, since you were unsure: Sections and subsections do work in Classic.

@radzys I suspect that this is a bug in MaplePrimes; I've never seen it before. When I click on the file link in your most recent Reply, I get taken to a completely blank screen. Please try uploading again. Try giving the file a different name.

Debugging info for Bryon: The URL of the erroneous link is

www.mapleprimes.com/view.aspx?sf=206198_Answer/Wind.mw

when it should be (I think)

www.mapleprimes.com/view.aspx?sf=<some number>_Answer/Wind.mw

First 546 547 548 549 550 551 552 Last Page 548 of 709