Product Tips & Techniques

Tips and Tricks on how to get the most about Maple and MapleSim
I have been playing with Maple on and off for 3 months. This summer, now that school is out, I have set about trying to master this environment. My frustration with Maple has subsided a bit only to be replaced with an understanding of its limitations. I set about building my own package of doing surface and flux integrals as a way of discovering how to manipulate expressions. I think I know why Maple is so tough. I read somewhere on these forums a diatribe on what seemed an esoteric nuance in the difference between the way Mathematica approaches functions vs the way Maple does. Mathematica is essentially a functional programming language wrapped around list structures (ala LISP). In mathematica everything, at the ground level, is a list. Various types get defined for different quantities but they are essentially lists. Maple defines its types internally. I don't know how they are put together (rtables?) Maple has evolved over time so that these types have grown to a huge number that are hard to keep track of. The inability of maple functions to screen their inputs for different data types means that the Maple programmers have to write lots of different functions for the different data types. This is a very old style of programming.
This book entry describes a method, using text files and preprocessor macros, to measure the timing and memory usage of Maple procedures. Attached are the source code and compiled library for a small Maple package that does the actual measurements.
handtotal:=proc(hand::list) local total; global Cardvalues; total := 0; total := sum('Cardvalues[hand[k]]', 'k' = 1..nops(hand)); if(is_an_ace(hand)) then (unable to parse)if(total + 10
I've been learning Maple 9.5 for a week now. There are many data types, and they each have their differences in functionality. I came across an article that mentioned that lists and sets make copies of the data for each manipulation, therefore aren't the best choices with that in mind. My questions is essentially: What are the subtleties of the different data types in speed and memory etc...? Which seem to work better is which situations? considering that we all want our code to be done now and take up no memeory :>) thanks James
This book page describes and compares several methods for sorting lists of names. It revisits using attributes for rapid sorting, with attention to their global effect on strings. It demonstrates the use of the lexorder[n] option to sort and it illustrates the use of convert/local.
While responding to a question about creating a new type, I suggested that a module could be used as the data-structure. To type check a given expression against the new data-structure, one can use
type( some_expr, '`module`'( 'export1', 'export2' ))
where export1 and export2 are exports of the module. That technique, however, is not robust in that any module with those exports (and possibly others) matches the type. While that may not be a concern, there is a way to uniquely type check a constructed module: give it an export equal to a local value. Here is a demonstration of the technique:
Currently saving the worksheet and removing the output can only be done via the menu. It would be nice if these tasks could be performed using commands. If this would possible, one could for example start the worksheet with restart;removeoutput;saveworksheet; and never loose any programming after rerunning the script. Furhtermore, a hard break statement stopping completely the excution of the worksheet would be nice. If the current break break statement is executed, the result is to exit from the innermost repetition (for/while/do) statement within which it occurs. After exit, execution proceeds, with the first statement following the repetition statement.
A member recently asked for a description of the mw or mws worksheet format. Click on the following link to download a pdf that I created a couple years ago that describes the syntax of the older mws format. It isn't complete, but covers most of the constructs that one is likely to need. To get a good practical understanding of the mws format, I wrote mws-mode.el, an emacs-mode that displays mws files in a structured manner. Download 84_mws-syntax.pdf
it took some time, a little help by this forum and the excellent maplesoft-support, but here is how it worked on my SuSE 10.1: As root: -Create a directory and copy your installation files into it, i.e. from the delivered CD -The trick is to edit the installer script with binary mode vim (using the -b flag: vim -b LinuxInstaller.bin) -Then scroll down to the first instance of "export LD_ASSUME_KERNEL" and replace the 'e' in 'export' with '#'. This comments out the line and evidently leaves the installer size intact so those compression errors are bypassed -Save and quit the file As your maple-user:
How can I declare a matrix of boolean variables, and later perform logical operations.

Thanks

With this Generation of MapleStudio you can also plot complex functions in 2D and also 3D. For doing this, MapleStudio uses the conformal and the conformal3d comands of Maple 10. The following example will show you, how it works.

Hello World! Please help!! Im trying to make my equation solving user friendly and im having real issues getting to grips with the Get/SetProperty commands for my embedded components. Im trying to set a text box(component_name?) so that the value (value??) within it is set as the desired parameter (attribute_name???) which is then substituted into my equations and solved for. Can you send me a simple example or have a look at mine, all the tutorials are too complex and tricky for me to figure out! I've read about DougsDocument tools but will the end user need this installed to use the utility if it's posted on maplenet?
Can anyone help me please?! Cash Reward! My program solves my implicit equation but i am having trouble getting more than one result, ie, varying one of the variables. The best i can do is make a loop which gives a table of results which requires individually copying the results across into Excel for anysort of graph. Ideally i want to be able to plot the results in Maple, for any variable. This is for my 3rd year engineering project, any help much appreciated. > restart; > with(LinearAlgebra): > # IMPACT OF A FLUID FILLED SPHERICAL SHELL ("NON-HERTZIAN") WITH A "HERTZIAN" BALL-
Consider the following three problems: 1) given a list [a,b,c,d,e], return the list [a=1,b=2,c=3,d=4,e=5] 2) given a nested list [a, [b, [c, [d, [e]]]]] return the list [a,b,c,d,e] 3) given an integer in base 10, compute it's base b representation First I will show you what not to do:
L := [a,b,c,d,e];
M := [];
for i from 1 to nops(L) do
  M := [op(M), L[i]=i];
end do;
Building up lists (and sets) incrementally is quadratic time, because each iteration of the loop allocates linear storage to hold the new list. The standard solution is a loop with a temporary variable, assigning to a table:
I am new to Maple and I am looking for these examples and am having trouble. Could someone lead me in the right direction or tell me which Maple books to purchase? example: precalculus or calculus or one of the new user guide books. I can't seem to find much on "The Square Root Property" and factoring or Solvng Equations by completing the Square, Quadratic Formula and Discriminant. I know I basically need to just play with the applications but know there must be information somewhere.
First 58 59 60 61 62 63 64 Page 60 of 65