Gary Palmer

84 Reputation

11 Badges

16 years, 255 days




Mac w OS X, 10.4.6, 3.06 GHz Intel Duo with 4GB RAM, Maple14 Student

MaplePrimes Activity

These are questions asked by Gary Palmer

This is a question about how to read standard input in UNIX (bash).

I would like to write code in an easy to use editor (BBEdit) and use maple to take input from what other systems would refer to as STDIN or $stdin. The motivation for using an external text editor is to reduce the memory burden on the Maple editor in a program that rotates hundreds, hopefully thousands, of Maple points and other objects (See:

I'm working on a 3D program that plots stars, star clusters and other objects of interest against a model of the Milky Way. The guts of this program create a few hundred points (< 2000) that represent stars, and move them a little bit in random directions to create a cloud effect. Then the animate procedure rotates them about the center of the galaxy. I would like to add more stars and do more things with them, but I am encountering a very sluggish editor, suggesting that Maple is imposing a memory limit. The Activity Monitor says that Maple is using 140 MB, so gigabytes of RAM remain available. Furthermore, if I save the plot as an animated gif, I can run half a dozen copies simultaneously in separate browser windows without encountering noticeable slowdown. But I can't elaborate the program without better performance from the editor.

The program is written in the Document interface. I tried saving it to the classic interface, but that didn't seem to help, and I found it difficult to edit.

Ideas sought.

An animation runs in Maple and it runs in a browser (Chrome) if I export it directly to a .gif file. But if I manually resize (expand) it and export it to .gif, the exported file fails to run in the browser. Why is this, and is there a work-around? The file is about 4.7 MB in size.

Mac w OS X, 10.4.6, 3.06 GHz Intel Duo with 4GB RAM, Maple14 Student

I am trying to resize some 2D and 3D plots. I find that the following writes a resized plot to the desktop, but it is cumbersome to use in a program when there are multiple plots:

MYPLOT := %:
     plotsetup(jpeg, plotoutput = "/Users/username/Desktop/EXPAND.jpg",

     plotoptions = "height=1000,width=1000");


I made various types of plots with the Plot Builder in Maple 14 and then I continued in the Document editor. When I evaluate the document containing the new plot statements, the Plot Builder dialog pops up repeatedly, seemingly once for every plot I previously constructed in it. This continues even after closing and reopening the document. How can I fix the document so this no longer occurs?

Mac w OS X, 10.4.6, 3.06 GHz Intel Duo with 4GB RAM, Maple14 Student

1 2 Page 1 of 2