Christopher2222

5785 Reputation

24 Badges

16 years, 348 days

MaplePrimes Activity


These are answers submitted by Christopher2222

Same base you could turn the 5 into a symbol

`5`^2*`5`^(1/2);

                              5^5/2

sorry don't know how to do with the numeric 5

A couple of articles pointed to clearing the windows memory by creating a shortcut on your desktop
c:\windows\system32\rundll32.exe advapi32.dll,ProcessIdleTasks

I tried that from within Maple.  That supposedly clears the RAM from windows without restarting it, in the event that your computer becomes slow and bogged down.  I am not sure if it really clears RAM or is more of file optimization process.  Anyways I tried calling it externally from within Maple, using the following command, to see if it might have the slight possibility of working,  but it did not ( I knew it probably wouldn't but thought I would try it anyway)

ssystem("c:/windows/system32/rundll32.exe advapi32.dll,ProcessIdleTasks")

I also tried luigidavinci's in Maple15 but there was no memory clearing after gc()

I'll give the explanation a shot

gc() doesn't clear the memory but restart; should

You've created a name temp to store 5Gb of data in a matrix.  The name has been evaluated and memory allocated to do as such.  unassign from the help page states: The names passed to unassign must be unevaluated

gc() will not clear the memory as used as you might think it should but clears data that was needed to carry out intermediate calculations which has not been done.

The memory has already been set aside for Matrix(25000) and now before Maple creates another Matrix(25000) regardless of the name you gave it, it first checks memory to see if it's possible to be done. 

temp:=Matrix(25000);
                              [ 25000 x 25000 Matrix ]
                              [ Data Type: anything  ]
                 temp := [ Storage: rectangular ]
                              [ Order: Fortran_order ]
temp:=Matrix(25000);
              Error, (in Matrix) not enough memory to allocate rtable

restart;

temp:=Matrix(25000);
                              [ 25000 x 25000 Matrix ]
                              [ Data Type: anything  ]
                 temp := [ Storage: rectangular ]
                              [ Order: Fortran_order ]



look under ?add in the maple help

Here's an interesting way to add the sum of your 7 sequence

s1:=proc(n)
  add(i, i = [seq(parse(cat(seq(7, i = 1 .. j))), j = 1 .. n)])
end proc:

s1(4)
                      8638
             

Without giving you the answer.  Look at ?isprime in the help, it should get you started in the right direction.  It should lead you to a command when used in a loop will get what you want.

Even here in mapleprimes there is probably an answer to your homework question.

I am not sure for Maple 16 but I use Maple 12.  Not sure if it is the same for both but a good visual clue to see if Maple is still alive is to look in the bottom left if the black dot is pulsating then things are moving along, if it is not then it's like it's heart has stopped. 

You could try the classic version of Maple see if it works better there.  Currently I am working with a 1 Mb data file and Maple reads it fine and can work with it fine but if I accidentally forget the semi colon on execution Maple seems to freeze.

**edit add** because it is trying to display too much information.

In your case it is most likely something else.  You would get more help if you are able to post your worksheet, then we could have a look and locate the problem.  At least if Mathematica can do it, I'd like to think so can Maple.

Check out ?remove too

Something like this?

plots:-listplot(a(.5,2.5));

It is good you used grid=[100,100] as the default is 25 but why don't you increase your grid size to 1000 or more?  That should increase your resolution.

Also maybe use contours=# option to fix the number of contours being drawn.

You are close. 

Your functions need to be in square brackets as do the colors in order to be ordered correctly

plot([C1,C2,C3],t=1..200,color=[red,green,blue])

Unfotunately DocumentTools[Retrieve] is limited.  If the reference is a Matrix maple is unable to link the reference values, so unfortunately you're out of luck there.

Perhaps a future request for maple to maple data transfer will be available?

The workaround is to export to an excel spreadsheet and then import it back into Maple.  It's kind of a stupid way of transfering the data around in Maple.  Maybe someone has more of a Maple particular solution, ie one that strictly uses Maple itself?

Firstly,  Tools -> Options -> under General Tab select share one engine among all documents.  a:=6 on one sheet , create another worksheet and the variable value has the assigned value in the new sheet and any other sheets created after that in the same session unless you apply globally.

Now your question about data sharing between different kernels

Check out DocumentTools[Retrieve]

You forgot to use with(DEtools);

Using help on the command your trying to use will help you out.

Try re-saving your worksheet under the classic Maple 16 and see if the standard gui will then open the newer saved worksheet (that method has worked for me in the past). 

Throwing some ideas around.  Any thoughts?

I was wondering (not near computer with Maple right now) if we could use Labels from another worksheet.

When a worksheet is run the values are stored to labels, however I guess once the worksheet closes, unless it's saved after it's run, those values are lost. I thought we could use the labels from the other worksheet to pull values off of it into another one. 

The reason I think one would want to do this is to calculate the values in another Maple engine then pull the values into a clean worksheet with minimal memory used.  The other reason I could see is if it took forever to calculate the values and you just wanted the values, but then you could just copy paste maybe (however that doesn't always work especially if it is an answer with many variables or some mess of variables that are difficult to copy). 

Doesn't using a Maple engine to share across worksheets get bogged down if one worksheet ties up the memory too much?  Just curious. 

One Maple worksheet, it would seem cannot read another worksheet, like it can Excel.  Reading another worksheet would be like opening an mw file in notepad and all you see is gobbledygook.  And so things like data get, read, etc.. wouldn't work.  But if we could use ssystem to run the worksheet could we not get Maple to read the values off the worksheet .. could we?

First 20 21 22 23 24 25 26 Last Page 22 of 47