UPDATE!!! I found that my blogpost appers in Maple reporter. You should know, that this blogpost was just a question about how to solve my problem better. Alec Mihailovs gave me and aswer and his solution of testing nested objects is much better. If you still want to use my piece of code, you should remove "set object" form "convertAMVStolist" procedure and replace all occurrences of "hastype" with "type" (as mentioned in comments below).
This piece of code should be able to test two objects (not of every type) for equivalence (like testeq() does). The benefit is, that it should be able to test also nested objects. Is there any other and more simple way how to do that? How to test nested objects in sets?
Hi everyone,
I am an undergraduate studying Stochastic Financial Modelling. I am currently writing up a simple brownian motion as shown on the attachment. I have difficulty in simulation a number of these paths and displaying 5 or so of them on the graph with the average path of all simulated paths. In this case, i would expect the average to be a straight line along the axis. Can anyone help me with this as i am only a novice in maple programming?
Thanks,
Steve
Hello
i wonder whether its possible to solve elliptic pdes numerically
in Maple10. I didnt succeed.
I have a 2dim. poisson equation with the source term being the output from an other pde, i.e the source term can not be given in closed form
so how to integrate this? i always get the message that Maple10
can not solve elliptic pdes
Thanks for any ideas
The question of how to scale the x-axis with intervals of Pi has been raised on a number of occasions. Inspired by a contribution from Will, I produced the procedure and examples shown in the worksheet attached below. Hopefully, Maple users will find it useful.
J. Tarr
View 724_Pi axes.mw on MapleNet or
Download 724_Pi axes.mwView file details
Does anybody know why Maple's support of PDF is so poor? I posted a forum topic entitled "PDF support" in the past but didn't get any satisfactory answers. Suppose that I want to automatically generate a bunch of PDF files in Maple and manually saving each one as PDF isn't an option because it is too time consuming? Am I the only Maple user who has ever encountered this option? A search of the web seems to indicate that this is the case. I want to use Maple over Mathematica, but this is one issue that has prevented me from making the switch (permanently) so far. I am currently running Maple 10.04 for Mac on OS 10.4.8 on a G4.
restart:with(LinearAlgebra):
L:=407:
> L2:=convert(L,binary):
> N:=length(L2):
> T:=2^N-L:
> TB:=convert(T,binary):
> k:=length(TB):
> T2:=convert(T,base,2):
> T2V:=Vector[row]([T2,0$(N-k)]):
> T2VC:=Vector[row]([1$N]):
> T2V1:=VectorScalarMultiply(T2V,-1):
> T2VA1:=VectorAdd(T2VC,T2V1):
> ADDT:=Vector[row]([1,T2VA1]):
> B_N:=Array(Hessenberg[lower],1..N+1,1..N+1,(a,b)->1):
> C:=convert(B_N, Matrix):
> Permanent(C):
> delB:=DeleteRow(C,N+1..N+1):
> B(L):=Matrix(N+1,N+1,[[delB],[ADDT]]):
> Permanent(B(L));
Hi all,
I am Using Maple 10.
i am getting a frequent bug When i plot a 3d graph.
Description:
In a 3d plot, if i rightclick after rotating the graph, maple exits automatically.
can somebody please tell me what's the problem?
Thank you
Divahar.J
Indian Institute of Science,
Bangalore,
India.
convert(407,binary);
101100111
I want the vector [1,0,1,1,0,0,1,1,1].
I don,t make this. Please help me!
I just posted this application to the Maple Application centre, and thought that MaplePrimes users may be interested in seeing it. The title is
Convolution of Finite Discrete Signals Tutorial and is designed to be a tutorial for students in a Singals and System course. Here is a screenshot:

You can give the worksheet a try
on MapleNet or
Download it and try it out on your computer.
Hi to All!
This is a true top secret story from Ph Dr S.Arlou
When I was a callow youth at my first year at the university I was very proud of my high rate in general course of physics. Besides I was rather good at mathematics as I was able to add fractions and find derivative of functions. I had only one thing lift to study – mechanics of materials. To my greatest disappointment I couldn’t manage with my test work on mechanics of materials after twenty attempts! The only consolation I found in the team of the same unfortunate students. It seemed to me that a student with an excellent knowledge of physics had to understand mechanics of materials. Its roots according to my brilliant conjecture™ are hidden exceptionally in physics. What’s the matter?
Years passed… More years passed… Some more time passed. All the time I tried to find the answer to my question, how mechanics of materials should be taught so that a child would be able to understand it, at least in general. During these hard meditations I had to be involved into absolutely useless things: post graduation studies, presentation of Ph.D. thesis, teaching at technical university, marriage at last. But Maple with its analytical potential burst into my life as a tornado. The answer came with a lightning speed. Mechanics of materials is short of the power of the power of analytical computing. We need as much of it as our head or laptop can contain.
In one word I invented Mechanics of Materials™ only to converge teaching of mechanics of materials to discussions about weather, magazine Forbes ratings and so on… or discussing scientific problems which are far beyond from our standard mechanics of materials curriculum.
My congratulations to all students on the occasion of a new academic year!
Details
maplesoft.com
mechofmat.com
When doing an implicit plot recently, I ended up with a whole large triangle which was completely tessellated with much smaller triangles. The checking of other graphs and numerical data of the function in this region, it was very clear that the implicit function should be a well defined line in this region.
Further look at the code for implicitplot() indicated that, after some setup work, it ultimately called exactly the same routine (`plot/iplot2d`()) as plots[contourplot]() with the option "contours=[0]" to do the actual calculations. I then discovered that when I called contourplot() directly with the "contours=[0]" option I got a correct implicit curve consistent with my other data and with no tessellations.
As currently programmed, fsolve() does not do numerical derivatives for systems of equations. The reason for this is that subs() is used instead of eval() when evaluating derivatives. [Note: jacob is the symbolically defined jacobian of the system of equations and lsub is the sequence of appropriate numerical substitutions (not the "list" of substitutions the mnemonic might suggest).] The original statement (in `fsolve/sysnewton`) is:
A:=traperror(evalf(subs(lsub,jacob),Digits-5+n));
The functions evalf() and subs() apparently do no know how to work together to produce numerical derivatives. However, the following statement does work.
Maple displays a defined procedure (yours or Maple's)as output when you enter definition or when you execute eval(). It should be noticed that in either case, Maple uses its own well defined indention scheme, regardless of what indention scheme you used or didn't use when you input the procedure.
Now if you want to edit the procedure, and your only copy is gotten by copying Maple's output to an input line, you will have to deal with Maple's hidden indention characters at the beginning of each line. I have been unable to find any Help material on this, and, in particular, I have not been able to find any way to edit (delete or input) these characters directly. However, they are all invisibly located in the blank space, which is visible, at the start of each indented line. The code seems to be of the form "indent a fixed number of spaces more than the previous line". These fixed numbers are one of three values, a positive number (approx. 3), 0, or a negative number (approx. -3).
As most of you have probably experienced, even Maple 10.4 in standard 2D Maple input has some strange editing behavior. Most of it is of the variety of "What you see is Not what you get". There are two basic kinds of things that can happen: (a)You get strange errors that seem impossible from the code that you can see, such as "missing operation" or "object used as name" or even "non-matching delimiters"; and (2) Your editing action happens much further away or much more extensively than your cursor position or highlighting would indicate.
This apparently happens because Maple is creating a parsing structure on the fly behind what you are editing and not visible to you. When some incomprehensible errors happen or Maple seemingly does not want to allow you to edit what you see is wrong, sometimes the only remedy is to retype whole blocks of code (possibly creating other errors in the process requiring the same cure, etc., etc.). Till Maple can supply us with a structural viewer that would allow us to easily find and correct such problems, I want to pass along some tips I have learned in my frustration.
I kept seeing in the help pages for linalg that it is being superseded by LinearAlgebra, so I have tried to work with LinearAlgebra. However, it turns out that LinearAlgebra is very clumsy and annoying for symbolic computations.
LinearAlgebra was clearly meant to be a numerical calculation package. Unfortunately, the desiderata for numerical calculations are not the same as for symbolic calculations.
The main feature of LinearAlgebra which causes this clumsiness is the requirement that all elements of a Matrix be defined. To do symbolic calculations this means assigning a symbol to use with an index for the undefined elements of the Matrix. The name of this symbol has to be different from that of the Matrix itself, and the indexed symbol is not an array or a table or a Matrix. Already then you have two names for essentially the same thing. ==> First Problem. Now, lets say you do some calculations with these Matrices and end up with expressions that that contain the indexed symbolic names. To assign other values to these indexed symbolic names in the resulting expressions, you have to assign the indexed symbolic names new values and you cannot use matrix operations for that since these indexed symbolic names are not arrays or Matrices or even tables. ==> Second Problem. Now if you want to unassign the symbolic names again or assign new values and have these values show up in the original Matrices, you have to reassign the symbolic names and reassign the values in the original Matrices. (Matrix elements cannot be unassigned.) In other words, do the job twice. ==> Third Problem.