erik10

I have a degree in Mathematics and Physics from the Danish University Aarhus, comparable to a masters degree with thesis - majoring in Mathematics. In 1991-92 I was a visting scholar at UCLA, Los Angeles, following graduate courses in Applied Mathematics. Since 1992 I have been a teacher in a high school (gymnasium) in Denmark. Special interests: Applied mathematics, graphics and popularizing Mathematics.

MaplePrimes Activity


These are replies submitted by erik10

@erik10 

I made the requested settings in ChatGPT and tested it with a 12 times 12 matrix, asking for the Jordan Form and its eigenvalues. With Maple MCP added, ChatGPT could give me the final result. 

I also asked the AI Assistant within Maple and it delivered the same result, but more chaotic, codelike.

So my conclusion is that sometimes it may be better using Maple MCP together with ChatGPT rather than just using AI-Assistant within Maple, because the result is delivered in a better and more understandable way. ChatGPT+MCP also delivered the characteristic polynomium, which was quite nice. 

When I asked ChatGPT the same question from another computer without Maple MCP. I was told it was too heavy and was given some commands to try in Mathematica and MatLab ...

I add the matrix too:

 

@erik10 I think I solved it. I figured I was still with version 2026.0. With the 2026.1 update, the red EMP Status turned green, and now I receive a popup code when accessing Maple MCP. I will look into what it can do together with ChatGPT, which I use quite a lot. 

Erik

@acer Thanks for your reply. I don't get any Access Code in a popup! Here is what I get:

 

I assume that with our school license we have access to MCP. From the email I received in March:

We are happy to announce that Maple 2026 is now available. We are sending you the new version of Maple today because you are a member of Maplesoft Elite Maintenance Program (EMP). You will find your download links and purchase codes at the end of this email.

There is however a difference between your ribbon elements and mine: Your left item "EMP Status" is green, mine is red. When I click "EMP Status" I get the following box:

Information is needed. What can I do to get forward from here?

Kind regards,

Erik

@Rouben Rostamian  "outer reach" is probably a bad name. Let me explain:

When Maple renders a 3D object, each point of the surface is represented by a point in 3D, and Maple projects these points into 2D to produce the final image. However, Maple does not compute the silhouette curve (the visible boundary of the object from the current viewpoint).

As a result, the boundary of the projected object often appears fuzzy, because Maple only draws the surface patches and does not draw the mathematical boundary curve.

A simple example is a sphere: its perspective projection is always a circle, but Maple does not draw this circle as a sharp boundary. Instead, the edge looks soft or pixelated.

My question is:

Is it possible to make Maple compute and draw the silhouette curve of a 3D object, depending on the current viewpoint?

Ideally, I would like the silhouette to update automatically when the user rotates the 3D plot interactively. But as far as I can tell, Maple does not expose the current viewpoint to the user, so I cannot recompute the silhouette curve dynamically.

Is there any workaround, or any Maple functionality I have overlooked?

@erik10 I wonder how it is possible to create an outline to the Sphere? Since it is a 3D plot, one cannot obviously add a 2D plot. Sometimes it would be appropriate to add such an outline showing the outer reach of the sphere. But since this circle depends on the Viewpoint of the Perspctive, it seems difficult. But maybe someone has an idea for a solution?

Erik

@Rouben Rostamian  and sand15. Thank you for your suggestions. Rouben, your suggestion of first making a sphere without circles and then adding the circles later is smart and a quick way to get something usable. However, when you enlarge the figure, you can see that the circles extend outside the sphere - a little. I end up using the spacecurve command and putting it together in a display.

@Rouben Rostamian  thanks for making me aware of grid option. I think it ought to be grid[25,19], though:

plot3d(1, t = -Pi .. Pi, p = 0 .. Pi, coords = spherical, grid = [25, 19])

That way the North Pole is 90 degrees and the South Pole -90 degrees, and a latitude circle for every 10 degrees.

It works pretty well. The only disadvantage is that the sphere is becomming more like a polyhedron the less gridlines. But I think that is the way this command works.

@Kitonum Thanks. A third way to do it, and with gaps ...

Erik

@dharr Thanks for your nice alternative plot, which will hold information of all three categories. 

Erik

@Carl Love  

Thanks a lot for showing me how discrete plots can be accomplished using this matrixplot command. I understand the indidual parts, except for the tickmarks option. How can the matrixplot command deal with a list like [1.5=0, 2.5=1, ... ]?

Another thing: I found myself getting stucked in as easy a task as to draw a 1-dimensional histogram with data like the following data:

(1,4), (2,3), (4,5)

meaning that there should be a column at 1 with the height 4, a column at 2 with the height 3, etc. How is this done? Eventually the data could be given in lists: X=[1,2,4] and Y=[4,3,5]. I didn't find that very straight forward in Maple. It seems lige the Histogram command cannot be used in this situation ...

Erik 

@acer 

That was an easy trick to make it work. Thanks a lot. I appreciate your work. Also nice to have the bug reported ...

Erik

@acer Thanks, that settles it all, I think. Thank you for your effort to help me.

Erik

@acer Maybe I understand now: It has to do with the order in which things is being evaluated? All this is due to the presence of the linearInterpolation, I presume.

Now I have finished my task, which is to plot the entire P-wave trajectory. I also allow the angle for the bottom of the curve to be other value than 0, naming it theta_0. I made a mirror plot and put it all together in the attached file. 

One strange thing, though: If I alter r_0 from 5338 to 5330 or less, the calculations takes a lot of time. Maybe due to there being a singularity in the integral around that value ...

Seismology_acc_ev_ac_ev.mw

@acer OK, thank you for the explanations. Now, I also wanted to convert the polar coordinates to rectangular coordinates: See my attached document. Unfortunately my simple approach does not work. It is probably because I don't really understand how the data is represented in Maple due to the Interpolated function being present. My goal is to plot this vector function in 2D along with a circle of radius R = 6338 (using the display command). I will however also have to mirror the curve, because I only get half the propagation path for the P-waves using the integral ...

Seismology_acc_ev.mw

@acer 

Great! I tested both of your methods and they both took about 20 seconds to execute on my computer. Although I don't get the integral displayed in 2D notation in the worksheet, I think I prefer your last acc method. This is mainly because I am able to insert values for the radius into the Theta-function in order to receive angles for specific values of radius. This doesn't happen in the ac method, where I just receive an abstract expression.

A couple of questions:

What does the adaptive=false option in the plot command mean?

Did you choose numpoints=41 by trial and error?

You are doing a great job here at Mapleprimes indeed! The solution to my questions wasn't as easy as expected, and I don't think I could have figured it out myself, even if struggling more.

Erik

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