Rouben Rostamian

MaplePrimes Activity


These are replies submitted by Rouben Rostamian

@nm Yes, an option to draw connected arrows will be a good enhancement.  I don't see it as an option right now.

As to the font size, yes, I have it set in my ~/.mapleinit initialization file in Linux.  There should be something like that in Windows.  Here is what I have there:

plots[setoptions](font=[TIMES,12], labelfont=[TIMES,16]);
plots[setoptions3d](font=[TIMES,12], labelfont=[TIMES,24]);

As to your question about DEtools:-DEplot versus DEtools:-phaseportrait, I always use the former.  DEtools:-phaseportrait seems to be redundant.

@Suryakanth Considering that you started with "I am not familiar with maple", and then you wrote "I have not taken this worksheet from anywhere", I am impressed with the quality and sophistication of the code that you were able to create within a few hours after that.   It would take years for some people to reach that level of expertise.  Congratulations!

@acer I verified that the issue goes away after removing Physics from libname.

@segfault The −j flag is not doucumented anywhere that I know of.  I found it in the script file bin/maple in Maple's installation directory.  I have no idea whether there is an upper limit to the heap size.

As to Maple 9.5, that goes back to almost 20 years ago and I have no access to it.  You may want have a look at the corresponding script file in your installation.

 

@acer You are quite right, and the drawing looks better that way to boot.

@MarcinM The documentation says that plots:-spacecurve takes a list or an rtable as an argument. A Vector is a special case of the rtable, so we are okay.

The documentation of plot3d says that the input should be a list.  The use of a Vector as input does not seem to be documented but that has worked for as long back as I can remember.

@MarcinM Regarding "I do not understand the philosophy of plotting vector functions in Maple", you need to go back to Stewart's chapter 13 where space curves are introduced as vector-valued functions like this:
    r(t) = < f(t), g(t), h(t) >
where t is a parameter.

The Maple command spacecurve( < f(t), g(t), h(t) > , t=a..b) plots that parametric curve.

But the parameter need not be named "t".  Any symbol may be used for the parameter.  In the answer that I posted, the parameter is named "x", as in:
  C1 := < x, sqrt(1-x^2), 0>;

As to plotting surfaces in Maple, we do

plot3d([f(x,y), g(x,y), h(x,y)], x=a..b, y=c..d);

The parametric surface here is described as a list [f, g, h], but a vector description, as in <f,g,h> works just as well and produces the same result.  I used the vector representation in my answer.

@simplevn1967 You referred to "Maple 17".  Did you perhaps mean "Maple 2017"?  The two are quite different.   "Maple 17" was released in 2013 while  "Maple 2017" was released in 2017.

I ran the worksheet that you posted in my Maple 2017 and it worked just fine.  I don't have "Maple 17" on my machine so I cannot test it.  Perhaps "Maple 17" is too old for that code.

@simplevn1967 I cannot diagnose the problem without seeing your worksheet.

As you reply to this message, you will see a large green upward pointing arrow in the toolbar.  Click on it to attach your worksheet to your reply.

@mmcdara Your calculation imposes the initial condition y(0)=0 but the result does not satisfy y(0)=0.  In what way is that a solution to the initial value problem?

@Carl Love That's cool, but perhaps too clever for my taste.  I prefer more verbose code that one can verify at a glance rather a overly terse code that requires effort to decipher.   Vote up, nonetheless.

@mmcdara I had no intention of criticizing your suggestion.  My remark was directed to the OP, who in response to my question of whether he knew how to write the equation of a tangent plane to a sphere, he responded with an appeal to Maple's geom3d package, while the simple answer is just (X − P) . (P − C) = 0, where C is the sphere's center, P is the point of tangency, and X is an arbitrary point on the tangent plane.

@rlopez Yes, I recall having seen finite difference schemes applied to non-rectangular domains. I don't think that's worth the effort.

Writing a finite element scheme using 1st degree elements will take just a few dozens lines of Maple code and it will work for arbitrary-shaped domains. That's provided that we have a general proc for triangulating the domain. Maple's GraphTheory:-DelaunayTriangulation comes close to fulfilling that task but is not quite adequate.  For instance, it is not suitable for triangulating nonconvex domains.  Even on convex domains Delaunay triangulation produces poor results for finite element applications.

Jonathan Shewchuck's Triangle library (written in C) produces perfect triangulations of arbitrary two-dimensional domains bounded by polygons and possibly containing one or more polygonal holes.  I have made extensive use of that code in my programs (also in C).  I suspect that it would be possible to compile Shewchuck's C code into a Maple library but I haven't looked into that.  Once that's done, a slew of possibilities will open for implementing finite element code in Maple.  Perhaps someone at Maplesoft would be interested in looking into that.

It's not clear how much help you will need for this.  Do you know how to write the equation of the tangent plane to a sphere at a given point?  If you explain how you would do that, then I will be happy to show how to do that for a list of points.

@rlopez That's a nice video.  In it you explain a variety of ways, and their pros and cons, of solving elliptic and parabolic PDEs.

The finite differences method that lies at the foundation of all those methods, limits the spatial domain to a rectangle (of any dimension).  It will be difficult, if not impossible, to extend those methods to more general domains. (I am thinking of a square domain from which one or more holes have been punched out).  That's not a fault of your presentation; that's an inherent limitation of the finite difference methods.

At one point you say: "I have a feeling that this is why Maple does not have an elliptic numeric solver cause it is hard to have it robust enough to handle a variety of problems."

I agree.  Implementing a solver that works on arbitrary-shaped domains is a monumental task. There are specialized companies—Comsol and LS-Dyna come to mind—devoted to that task.  Their underlying method is finite elements rather than finite differences.  Perhaps one day Maple will branch out in that direction but I don't envision that happening anytime soon.

1 2 3 4 5 6 7 Last Page 3 of 91