Christopher2222

5785 Reputation

24 Badges

16 years, 351 days

MaplePrimes Activity


These are answers submitted by Christopher2222

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)

                             

 

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.

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?

Same system (Windows XP 3Ghz 2.5G RAM 32bit) Maple Standard GUI

restart;  
kernelopts(gcfreq= 2^22):  
UseHardwareFloats:= true:  
gc():  
 
n:=500:  
 
M:= LinearAlgebra:-RandomMatrix(  
     n  
    ,n  
    ,generator=0.0 .. 1  
    ,outputoptions=[datatype=float[8]]  
):  
 
time[real](LinearAlgebra:-LA_Main:-Rank(M));


M12   0.531

M18   1.156

 

 

There are lots, aside from the manuals themselves,

Introduction to Maple by Andre Heck is a classic.
Essential Maple 7 - Robert Corless
The Maple Book - Frank Garvan
Programming in Maple - Michael Monagan
Partial Differential equations and Boundary value problems with MapleV
Physics with Maple

There is really no one best maple book out there.

As of April 14, 2013 Modelica standard look up tables were not yet supported.  You can check out the maplesim datasheet here http://www.maplesoft.com/view.aspx?SID=145968

Under interface and modeling there's only two points that may be partially relavent to your question:

- Import of Modelica libraries and models based on the Modelica 3.1 standard library
- Data import and export, and lookup tables

no specifics though.

MapleSim 6.2 and 6.3 may have added support.

Using the sowpods dictionary (freely downloadable)

with(ListTools):

a:=readdata("f:/sowpods.txt",string,1):  #memory jumped to 372Mb isn't that high? reason unknown
b:=Flatten(a):

nops(b)
                   276651

 

tot:=0
for i from 1 to nops(b) do
  if searchtext("CIE",b[i])>0 then tot:=tot+1: end if
end do:
tot;

                          923

 

 

 


 

If you use ScatterPlot3D and use shading=zhue we can roughly achieve what you want ... I think.

Maybe this?

with(Statistics):

a := [[1, 1, 0], [1, 2, 2], [1, 3, 3], [2, 1, 1], [2, 2, 4], [2, 3, 5], [3, 1, 2], [3, 2, 1], [3, 3, 3]]
x:=[..,1]
y:=[..,2]
z:=[..,3]
xyz:=Matrix([x,y,z])

ScatterPlot3D(xyz,symbolsize=30,orientation=[-90,0,0],view=[0..max(x),0..max(y),default],axes=normal, shading=zhue)

 

The third point will determine the zpoint and hence the zhue shading color.

 

It seems the whole Maple18 help is not yet available online.  I was looking for the help page on the InertForm package but it is also not there yet.

You could also use the statistics supplement package from the application center here as well.

with(stat):

a:=[1,1,1,0,1,0]

m:=proc(a)  {op(Locate(a,1))}
end proc:

m(a)
                  

 

Alternatively you could grab the Statistics supplement from the application center, it uses the same Standard deviation calculation that most other softwares use to calculate the standard deevs.    http://www.maplesoft.com/applications/view.aspx?SID=4679

Save the .lib and .ind files in your user directory

For example in my Maple12 folder I saved it under users/statsupp/

restart;
libname:="c:/Program Files/Maple 12/Users/statsupp/",libname

with(stat)

[Anova1,Anova2m,Anova2s,AnovaBeta,BernoulliCDF,BernoulliPDF,BernoulliS,BetaCDF,BetaP,BetaPDF,BetaS,
BinomialCDF,BinomialPDF,BinomialS,BivariateNormalPDF,BivariateNormalS,BoxWhisker,CauchyPDF,CauchyS,
ChisquareCDF,ChisquareFit,ChisquareP,ChisquarePDF,ChisquareS,ClassFreq,ConfIntAvLen,ConfIntMean,
ConfIntPlot,ConfIntProp,ConfIntSuc,ConfIntVar,Contingency,ContinuousS,Convolution,Correlation,Craps,Die,
DiscUniformS,DiscreteS,DoubleExponentialPDF,ExponentialCDF,ExponentialP,ExponentialPDF,ExponentialS,
ExponentialSumS,FCDF,FP,FPDF,FS,FastCraps,Freq,GBCDF,GBDPDF,GBP,GammaCDF,GammaP,GammaPDF,
GammaS,GeometricCDF,GeometricPDF,GeometricS,GraphRandWalk,GraphRandWalk2,Histogram,
HypergeometricPDF,HypergeometricS,KSFit,Kurtosis,LinReg,Locate,LogisticPDF,LogisticS,MakeRandom,
MarginalRelFreq,Max,Mean,Median,MedianTest,Min,N01S,NegBinomialCDF,NegBinomialPDF,NegBinomialS,
NormTransVarS,NormalCDF,NormalMeanS,NormalMedianS,NormalP,NormalPDF,NormalS,NormalSumS,
NormalVarianceS,Ogive,Percentile,PlotDiscCDF,PlotEmpCDF,PlotEmpPDF,PlotPolyReg,PlotRunningAverage,
PoissonCDF,PoissonPDF,PoissonS,PolyReg,ProbHist,QQ,QQFit,RNG,RandWalk,RandWalk2,Range,RegAnal,
RegBand,Residuals,RunTest,RunningSum,ScatPlot,ScatPlotLine,SignTest,Skewness,StDev,StemLeaf,TCDF,
TP,TPDF,TS,TimePlot,UniformCDF,UniformMeanS,UniformMedianS,UniformP,UniformPDF,UniformS,
UniformSumS,Variance,WeibullPDF,Wilcoxon,Wilcoxon2,XbarChart,rng]

a:=[[3,7],[2,13]]:

StDev(a)

                              

evalf(%,15)
                             0.489360484929593

 

 

 

First 14 15 16 17 18 19 20 Last Page 16 of 47