Carl Love

Carl Love

28100 Reputation

25 Badges

13 years, 104 days
Himself
Wayland, Massachusetts, United States
My name was formerly Carl Devore.

MaplePrimes Activity


These are replies submitted by Carl Love

@acer wrote:

For 3D plotting there may be an additional wrinkle: I sometimes see the GUI itself slow down as the GUI (not the kernel) leaks a little memory on (large?) 3D (point?) plots. As the java process's resident memory increases the GUI may get slower to render.

Yes, I've noticed something like this. The slow down isn't so bad, but the memory leak is. Of course, as you get close to 100% memory usage, there's a considerable slow down. This memory isn't reclaimed when you remove the animation nor when you close the worksheet! You need to close the whole Maple session. The amount of memory used seems to be many times higher that what would be required to store every frame of the animation.

 I should mention that one likley could not make a a traditional animation with the appliable module (which used the inplace techniques) in the attached worksheet unless calls to it were wrapped in a call to copy. Because otherwise all frames might appear the same.

plots:-pointplot3d already works inplace. If you produce a traditional animation with each frame being plots:-pointplot3d(A), where A is an n x 3 Matrix, then every frame will be the last frame. It needs to be plots:-pointplot3d(copy(A)). The same thing doesn't apply to plot(A) or plots:-pointplot(A).

Considering that my code computes in an arbitrary number of dimensions, of which I plot the first two or three, should I use ArrayTools:-Alias to make an alias to the first two or three columns of the Matrix?

 

@Markiyan Hirnyk There's no reason that you need to vote for just one.

Yes, without VV's help, I couldn't have translated the Mathematica; without Acer's, I couldn't have built the Explore.

@stefano91 Your functions Qv and Qm need to be applied to arguments. I think that your first line of code should be

=maple("Fm:= x-> (Qv(x) + &1*Qm(x))/2"; B3)

@vv

Yes, to "find" them, simply increase the `Origin step` slider in the Explore.

A traditional animation has the VIEW automatically set large enough to accomodate all the frames. I don't know how Explore handles it---it can't have foreknowledge of the total VIEW, so I suppose that it adjusts the VIEW as needed.

Acer, would you please have a try at that inline updating of PLOT structures? I'd like to do 10^5 points, and currently that runs a bit too slow. If you could get a small example working, I'd be able to work it into the code.

@asa12 Sorry, but I don't know anything about the Igusa invariant.

@taro See ?substring.

@asa12 You have ended the genus command with a colon!! That's why you can't see the output. When I run your commands, I get that the genus is 2.

@Thomas Dean 

Ah, I will put the default axes in my maple.ini file.

The names p__1 and p[1] are distinct, and their subtraction should not be 0. There are a great many examples in Maple of names that are distinct but which print the same. This is an often-useful feature, not a bug.

The reason to use p__1 is that it's considered a completely separate symbol from p, whereas p[1] isn't a separate symbol. (Note that "symbols" is a subset of "names"; see ?name, ?type,name, ?type,symbol, and ?type,indexed.)

To see an example of what can go wrong if you try to use p and p[1] as separate variables, execute

p[1]:= 0;  p:= 1;  p[1];

@vv You asked:

How have you included the gif file? In my case a single frame was copied this time.

Steps:

  1. Left click on the animation to select it. It doesn't matter if the animation is actually playing at the time.
  2. Right click on the animation to bring up the context menu.
  3. Export as GIF.
  4. Upload to MaplePrimes the same way you would upload any plot: with the green uparrow.

@tomleslie The GAMMA function is spelled all uppercase, so your point 2 doesn't apply.

@acer Thanks for that Explore. What is the purpose of the paradoxical clause

if true or del > 0.0?

And what is the purpose of the argument xx, which corresponds to no parameter of Starlings?

If you look up "flock of starlings" or "starlings murmuration" on YouTube, you'll understand why I named it Starlings. That's the effect that I'm trying for. As you may have guessed, I've redone the computations in 3D. I will post that soon.

@abcd No, I find nothing inappropriate about that. I'm just curious about why people change their account name. Your reason seems totally legitimate. There's a certain very frequent poster here who has changed about a dozen times. Also, it would never occur to me to use anything other than my real name, yet it seems that most people are more creative.

@abcd And what about marc sancandi? (Not sure if I spelled that correctly.)

@abcd 

From my previous example, note that A[2,1] doesn't work either. So, if you want to use a Matrix, then you need

userData[1, thisNode+1]

not

userData[thisNode+1, 1].

Applying convert(..., Matrix) to a 1D list creates a 1 x n Matrix, not an n x 1 Matrix.

 

 

@w-Teilchen It's not fixed in the current version, even if you use:

with(Physics):
Setup(redefinesum= true):

First 412 413 414 415 416 417 418 Last Page 414 of 709