hpc

40 Reputation

4 Badges

9 years, 251 days

MaplePrimes Activity


These are replies submitted by hpc

@acer Sorry about that. I just ran it again on Maple 2015 with the StartupCode  and the worksheets work exactly as you mentioned. Thank you for taking the time to post this. I learnt a few things through your worksheets including the idea of StartupCode.

 

@Carl Love The Explore command worked beautifully. I had to change m=1..5 to parameters = [m=1..5] to get it to work though.

 

Thank you.

@acer Thanks a bunch for posting this code. I tried running both the mw files. The code executes fine but the autoplay option doesn't seem to work on  my desktop with Maple 2015:

>kernelopts(version);
   Maple 2015.0, X86 64 LINUX, Feb 17 2015, Build ID 1022128

 

And here's a screen capture of  what I see:

Clicking on the plot, brings the animation menu at the top of maple window. From there, I can play it. 

I will try it on a different machine with a more recent Maple version and let you know if that works. 

@Carl Love thank you for the quick response. I totally didn't see the animate button before reading your post. Clicking the play button  is indeed working.

But is there a way to animate it automatically as soon as the display command is executed? Clicking the play seems like an extra step. I thought insequence = true is supposed to automatically animate the plots.

 

@DSkoog thank you for the excellent solution. Yes, that is exactly what I was looking for. My approach was much longer with for loops, writing to a csv file and reshaping the data in a spreadsheet!! Time consuming. Your solution saves me a lot of time in case I need to make changes to the table.

I would vote up but don't have enough points to do that!

@Carl Love I am looking for a command that can autogenerate a table similar to the one at the following link:

https://faculty.biu.ac.il/~shnaidh/zooloo/library/normal.3.pdf

I can write my own code to do this but I thought there might be a way to get this table with a single command similar to what ProbabilityTable('Normal') does. 

@acer, yes, but I am looking for an autogenerated table of values like the CriticalTable command for StudentT or ChiSquare.

 

Thank you for the quick response. Your comment helped debug my code. It seems like when I cut and pasted the line 

X := RandomVariable(StudentT(nu));

from Maple help page, the assignment operator didn't get copied correctly! It got copied as a single character ≔ instead of ":" and "=".  Without your comment about X not being previously assigned, I wouldn't have noticed this.

Thank you. 

@itsme, got  it. Thanks again for the quick responses. I would have been struggling to figure this out if you hadn't pointed this out.  The reason I asked the original question was to define variables such as δx so that I can easily export maple 2D-output to latex without having to edit the latex code too much. In that sense, the solution posted in this thread has helped me out.

 

@itsme , thanks for the caution.  I don't see the extra space when I use the raw code you provided. Instead, I notice that the delta that maple shows in 2D math after cut and paste (your eqn 5) is different from the delta that maple uses when de is defined (your eqn 2). 

Here is what I see:

 

Thank you all for the quick responses. The command

de:= ` δx`;

is what I was looking for. I didn't know about the double underscore option for naming variables.  Thank you itsme for that. I am sure that I will be using it very often.

Best,

Harish

Page 1 of 1