Christopher2222

6 years, 253 days


These are answers submitted by Christopher2222

currentdir()

March 25 2015 Christopher2222 3906

currentdir() will give you the path of your current worknig directory.

table

March 22 2015 Christopher2222 3906

Please reference this topic http://www.mapleprimes.com/questions/37691-How-Do-I-Change-The-Background-Colour

In a nutshell basically use windows desktop setup to alter the colors.  Failing wanting to do that you can change the font colors easily with Format->Styles or manage style sets and create your own.  As for the background (using the ref above) create a 1x1 table and change the colour in the cell. 

Speed performances for 2015 are much improved - link has been updated in initial post above - All three M algebra systems now have similar speed performances.

Maple 17 user manual and programming guide pdf's can be downloaded from here

http://maplesoft.com/products/maple/history/documentation.aspx

Under View select Show/Hide Contents... then uncheck box labelled Execution Group Boundaries

This problem could be applied to a similar issue in deciding which lengths to cut in set lengths of framing.

Home depot sells pine colonial casing in 7ft. lengths only.  I have 4 windows and one inside door (both sides) to frame.  The windows are 2 - 42x20 windows, 1-30x30 window and 1-16x20 window, the door is 72x32. 

What is the minimum number 7ft framing pieces I need to finish the job? and how do I cut the wood?

So I want to minimize my waste and hence minimize my spending.  

 

spaces

November 23 2014 Christopher2222 3906

It appears readdata stops reading when it gets to a comma.  Maple's readdata also regards spaces as a seperator.

readdata("d:/test.txt",string,5) will read in your data

invconv proc

November 23 2014 Christopher2222 3906

Another less desireable more complex/expensive way to convert the list back into the original number, is to create a procedure that manipulates the list created by convert using commands from the StringTools and ListTools packages. 

a:=convert(197,base,10)

                                    

invconv:=proc(a)
  uses StringTools:
  parse(DeleteSpace(Join(map(convert,ListTools:-Reverse(a),string))))
end proc:

invconv(a)

                197

 

 

collect

November 21 2014 Christopher2222 3906

collect seems to get rid of the negative sign and re-orient the values as well

 

ee := -ln(-a/(b-c));
ff := combine(ee, symbolic);
ln(collect(exp(ff), a));

                     

Expanding on Kitonums answer we could also create a procedure

deg2rad:=proc(d,m,s)
  local a: 
  a:=convert((d+1/60*m+1/60^2*s)*degrees,radians):
  print(a,evalf(a)):
end proc:

deg2rad(58,28,18)

                             

 

listplot

October 24 2014 Christopher2222 3906

Try listplot

with(plots):
listplot(DataTable3[..,1])  #plots the first column of your data

In the Maplesoft application center here http://maplesoft.com/applications/NewContent.aspx

Or at Mobius apps here http://mobius.maplesoft.com/maplenet/mobius/

Various other webpages also exist around the web.

. or *

June 09 2014 Christopher2222 3906

It is possible seeing that you have "******" in one of your answers that you are using "*" for matrix multiplication instead of "." 

Ok, some time to experiment- here we go, I'll keep a running tab on things ....  Currently I have the the maxheap=1600m in launch.ini.  I have run a few spectograms and have pushed my maple.exe memusage to 1,000,576 K and mserver.exe memusage to ~200,000 K -- things have not frozen up yet .  I did a restart and mserver.exe dropped back down to 71,076 K this is good however maple.exe memusage is still sitting up at 1,000,576 K ??  Shouldn't restart also release memory from there too?
Memory at the bottom reads normal.  ~30M

Now I've run Spectrogram again and mserver.exe memusage is rising as expected (187,844 K) as is maple.exe (1,132,340 K).  I would have normally locked up when maple.exe reaches ~1,000,000 K (although initially I had not been keeping track of mserver.exe memusage)

A couple more runs and now ( maple.exe - 1,133,072 K  mserver.exe - 203,052 K ) ... still ok ... Memory at the bottom of Maple reads 136.63M
(maple.exe - 1,280,546 K  mserver.exe - 245,640 K)
(maple.exe - 1,432,484 K  mserver.exe - 312,796 K) .. still ok .. Memory in Maple 136.63M (unchanged)

wooops .. accidentally clicked on the Spectrogram graph and things are frozen .. (maple.exe - 1,482,434 K  mserver.exe - 312.796 K)  .. ok the graph has resized smaller .. I must have dragged it over a little.  

The question remains, why does maple.exe not release the memory?   AH!!  hey!  I minimized my maple window and the memory to maple.exe has dropped CONSIDERABLY!!!!
maple.exe memusage is now 75,804 K mserver.exe @ 312,796 K

I almost had a lock up so it looks like the maxheap change to 1600m gave me a little more headroom.  Restart releases memory to mserver.exe and minimizing the window releases maple.exe memory - strange? I wonder why that can't happen with the window open??  Something to do with the display drivers?  I'm not completely sure, something else maybe or Maple itself - my guess is maybe the way windows allocates memory and Maple has nothing to do with it or maybe it could? 

The good thing is now Maple hasn't locked up, great!  So now is it required that I minimize my window every now and then to release memory?  Could it be a built in process to release that memory?  Or as I mentioned above it's only Windows XP related?

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