Product Tips & Techniques

Tips and Tricks on how to get the most about Maple and MapleSim
Hi, I was wondering, how the Boolean matrices can be operated (multiplied, added etc) in Maple? Can we find their eigenvalues etc? Your reply would do great help to me. Many Thanks. Athar Kharal
Hi All. To find all solutions to a trig eqn in Maple 11 you do the following (See attached file). My question is what commands do I use in Maple 10 to replicate the Maple 11 results. M11 is too slow on my machine. (in M10 all i get is error message "solutions lost"). rgds View 2735_Solutions with restrictions.mw on MapleNet or Download 2735_Solutions with restrictions.mw
I need to sketch a graph of a sail and indicate the location of the center of pressure. I'm semi new to maple, so if you could explain step by step, that would help me. Points (0,0),(2,1),(0,5) The lines would be y=-2x+5, y=0, & y=x/2 How do I get all three of them into one graph and only from ththe points? Also, how do I indicate the center of pressure which is (31/12,7/12) ? Thanks, Jerry
Hi All In M11 you do the following; _EnvAllSolutions := true: _EnvExplicit := true: solve([sin(x)*cos(x)=0,x>0,x
I can't seem to figure out how to plot the following in polar form. Can you help please. I'm semi new, so not to fast please. -9/(4*r^2+36)
A poster on the usenet group comp.soft-sys.math.maple asked how to do the following more simply:
A:={ { [1,2],[3,4] } , { [5,6],[7,8] } }:
map(x->map(y->map(f,y),x),A);

       {{[f(1), f(2)], [f(3), f(4)]}, {[f(5), f(6)], [f(7), f(8)]}}
As has been discussed here recently, this can be readily done using evalindets. For example,
evalindets(A, list, integer, f);
       {{[f(3), f(4)], [f(1), f(2)]}, {[f(5), f(6)], [f(7), f(8)]}}
John Fredsted asks whether there is a built-in method in Maple for lexically sorting a list of lists of small positive integers. There is not, however, Robert Israel provided two methods for accomplishing the task. The first uses the standard technique for extending Maple's sort procedure, that is, assigning a boolean-valued binary function and passing it to sort. The second method that Robert provided is ingenious. Here it is, in full,
Ls:= map(convert,L,bytes):
Ls:= sort(Ls, lexorder):
map(convert,Ls,bytes);

It converts each list into a string, sorts the strings, then converts the strings back to lists. This method is significantly faster than the previous. It does, however, have a limitation; it can only operate on lists with positive integers in the range 1..255. While that limitation was suitable for the original poster's application, that will not always be the case.

Dear Sir: In worksheet mode, I got an evaluation result which has a very long equation. The maple display it just on one line so that the result is displayed over window bound. I want to set it up to display the result on multiline. So, it is easy to look at my result without moving my mouse. Could you tell me how to set it up? Thanks in advance.
The student is supposed to use the logistic differential equation given to them (with carrying capacity .52e12), dsolve() the differential equation with a specific initial condition, and then calculate the population at 3 different times. Notice what happens:

[> restart;
[> my_deq := (diff(P(t), t))/P(t) = .789*(1-P(t)/(.52*10^12));

                   d
                   -- P(t)
                   dt                               -11
         my_deq := ------- = 0.789 - 0.1517307692 10    P(t)
                    P(t)

[> dsolve({my_deq,P(2290)=.83*10^10});
Hi, is the JavaViewLib package 3.22 running with Maple 11? After: libname := "/home_zam/plch/maple/JavaViewLib", libname: with(JavaViewLib): (this works fine in Maple 10) I received: Warning, system/ssystem calls have been disabled in the options dialog. Any suggestions? With best regards. Roman

In order to get better acquainted with the plotting facilities of Maple I thought I would try to plot the Möbius strip. In the proces I generalized the task so that I would be able to plot a ribbon twisted an arbitrary number of times. From these efforts the following code resulted:

with(plots):
radiusVector := (phi) -> Vector([cos(phi),sin(phi),0]):
ribbonVector := (phi) -> Vector([-sin(phi)*cos(phi),-sin(phi)*sin(phi),cos(phi)]):
p := (twist,theTitle,theOrientation) -> plot3d(
   radiusVector(phi) + t*ribbonVector(twist*phi),phi=0..2*Pi,t=-0.3..0.3,
   title=theTitle,orientation=theOrientation,grid=[100,10],scaling=constrained
):

Below follow two examples: 1. Ribbon with 1/2 twist: The Möbius strip:

display(p(1/2,"Ribbon with 1/2 twist: The Möbius strip",[200,70]));

 

2. Ribbon with 1/1 twist:

display(p(1/1,"Ribbon with 1/1 twist",[40,60]));

The Vim editor ships with a maple.vim file, which is a "maple mode". It was first created by Charles Campbell, and I provided some updates (up to Maple 9.5). I am about to rev that up to Maple 11, so I would like to know if there are any feature requests which I should consider rolling-in at the same time? If you have little bits of vim scripts which you yourself use, by all means, send them along! [You'll get full credit for that, I am fine with being just an aggregator...

I thought this might be of interest to anyone interested in seeing some simple ciphers broken with maple. Download 6039_huffaf_crack.mws
View file details
Hi, I ran into this in my Modern Algebra class; and decided it might be of interest. We were given the problem to: "Find the least prime p s.t. 2^(p-1) congruent to 1 (mod p^2)" EVERY prime p > 2 has the property, 2^(p-1) congruent to 1 (mod p), by Fermat's Theorem (since 2 does not divide such prime p). But, mod p^2 is another story. This was given in a class where everything is done by hand calculation, based on theorems. I couldn't come up with any way to determine it other than brute force. Here is a tiny Maple snippet which finds it:
The fact that animate uses subs when replacing the animation parameter with a number in the animation range can cause problems when the expression to be animated is only evaluated when the animation parameter is replaced by a numeric value. This is shown in the simple example below My suggestion is that in the procedure `plots/animate` the three subs's are replaced by eval's. Is there any problem with that? Preben Alsholm The following does not work at all, apparently because animate uses subs instead of eval in 3 places, lines 29, 43, and 64 (using showstat(`plots/animate`).
First 48 49 50 51 52 53 54 Last Page 50 of 65