Doug Meade

 

Doug

---------------------------------------------------------------------
Douglas B. Meade <><
Math, USC, Columbia, SC 29208 E-mail: mailto:meade@math.sc.edu
Phone: (803) 777-6183 URL: http://www.math.sc.edu

MaplePrimes Activity


These are replies submitted by Doug Meade

I second Jacques' suggestion.

What I would like to be able to do is copy directly from a Maple worksheet and paste into MaplePrimes. I am pretty good at copying commands (1d Maple Notation), and this is where most of my posts end. If the output is simple enough I will include it in my comment (as ASCII). But, even the smallest matrices cannot be copied to MaplePrimes - all you get is the placeholder, e.g.:

M := << 1, x > | < y, x+y > >;
                           Matrix(%id = 187004512)

Plots are just as bad. Why should it not be possible to simply copy-and-paste from Maple into Primes?

plot( sin(x), x=0..Pi );

3d plots should be supported in the same way. And, while I'm at it, why shouldn't animations be permitted as well?

Jacques has made more than 1700 posts; I just crossed 900. We are not MaplePrimes novices. We have developed our own ways to get around these limitations. Think about the new users who try to post a problem but just don't know how to include their Maple in their posts.

Moving to other areas, it is easy to create hyperlinks in a MaplePrimes post, but it's not easy to create a link to Maple's online help. You have to know the form for the URL and edit the search topic by hand (at least that is what I do). The help browser (in Maple) should provide an easy way to provide the corresponding URL for use in other applications (not just MaplePrimes).

There should be convenient ways for spawning new topics from existing ones. I've not thougth much about this, but what I have in mind is something that would allow a comment to start a new topic while retaining some connection to its "parent" topic. If this is possible, it should also be possible to merge two (or more) topics into a single thread.

I will also throw my support behind the efforts to improve the search facilities. I don't make much use of this, primarily because of speed issues, but also becaause I have not found the searches to be particularly complete. What would be really neat is if MaplePrimes could extract keywords from a post and provide a list of posts/topics that are potentially related. Presenting some of this information in the margins would be much more informative than the current questions (which don't change often enough and are all-to-often purely recreational) and lists of online and new members.

An annoying feature of the current MaplePrimes is that it's not possible to conduct a search while you are editing a comment. I don't know how many times I have started to write a comment, searched for the URL of a related topic, and lost all that I had typed in my comment. It would be nice to have a way to retrieve my partial post, but this could be mitigated by having the search results appear in a side panel or separate window. (It is tempting to do a search now to find a record of previous requests for improvements/additions to MaplePrimes, but I would lose all I have typed - and I would not retype it.)

In closing, let me also mention that overall speed and reliability of the website cannot be ignored. In recent weeks it has been particularly bad. Slow response, and long periods when the database is unavailable or the website takes too long to respond.

I have taken the time to make this comment because I like the MaplePrimes community and believe that it can(continue to) be a useful resource for a wide range of users. There have been lots of changes since its inception: technology improvements, overall web advances, user expectations, .... MaplePrimes need to continue to mature (and evolve). This won't be easy, but I think this request for suggestions is a good first step.

I look forward to seeing the changes and improvements that you will be implementing.

Doug

---------------------------------------------------------------------
Douglas B. Meade  <><
Math, USC, Columbia, SC 29208  E-mail: mailto:meade@math.sc.edu
Phone:  (803) 777-6183         URL:    http://www.math.sc.edu

 

The worksheet works as advertised for me. I am using Maple 13.01. What version are you using?

If my memory serves me correctly, I recall that the refresh=true option is pretty new. Sure enough, I just checked the Maple 12 help and it makes no reference to the refresh=true option. In fact, when I tried executing the worksheet (with !!!) in Maple 12, I get an error that DocumentTools:-SetProperty expects 2 or 3 arguments, not the 4 that it receives in this worksheet.

Are you seeing this behavior in Maple 13.01?

Doug

---------------------------------------------------------------------
Douglas B. Meade  <><
Math, USC, Columbia, SC 29208  E-mail: mailto:meade@math.sc.edu
Phone:  (803) 777-6183         URL:    http://www.math.sc.edu

The worksheet works as advertised for me. I am using Maple 13.01. What version are you using?

If my memory serves me correctly, I recall that the refresh=true option is pretty new. Sure enough, I just checked the Maple 12 help and it makes no reference to the refresh=true option. In fact, when I tried executing the worksheet (with !!!) in Maple 12, I get an error that DocumentTools:-SetProperty expects 2 or 3 arguments, not the 4 that it receives in this worksheet.

Are you seeing this behavior in Maple 13.01?

Doug

---------------------------------------------------------------------
Douglas B. Meade  <><
Math, USC, Columbia, SC 29208  E-mail: mailto:meade@math.sc.edu
Phone:  (803) 777-6183         URL:    http://www.math.sc.edu

Have you been successful in getting what you want?

I'm close, but am missing an essential part. Namely, I cannot figure out how to retrieve the response from an HTTP proxy sent to the Yahoo! finance server. In MATLAB, this is done with the urlread command. I thought I remembered seeing an example like this, with weather data, as an example when the Sockets package was first released. Maybe it was on the Application Center. In either event, I have not been able to turn up this information this week.

Once I can get this information from a website, the rest should closely parallel what is done in the MATLAB example, and what we developed for the OPs orignal question. Basically, use our knowledge of the HTML string that is returned in response to a URL such as http://finance.yahoo.com/q/cp?s=^GSPC&c=0 . Once this string is available, the MATLAB code tells us how to tear it apart.

I sure hope there is someone out there with a similar memory - and a better archive - who can supply me with this informaiton.

Doug

---------------------------------------------------------------------
Douglas B. Meade  <><
Math, USC, Columbia, SC 29208  E-mail: mailto:meade@math.sc.edu
Phone:  (803) 777-6183         URL:    http://www.math.sc.edu

Have you been successful in getting what you want?

I'm close, but am missing an essential part. Namely, I cannot figure out how to retrieve the response from an HTTP proxy sent to the Yahoo! finance server. In MATLAB, this is done with the urlread command. I thought I remembered seeing an example like this, with weather data, as an example when the Sockets package was first released. Maybe it was on the Application Center. In either event, I have not been able to turn up this information this week.

Once I can get this information from a website, the rest should closely parallel what is done in the MATLAB example, and what we developed for the OPs orignal question. Basically, use our knowledge of the HTML string that is returned in response to a URL such as http://finance.yahoo.com/q/cp?s=^GSPC&c=0 . Once this string is available, the MATLAB code tells us how to tear it apart.

I sure hope there is someone out there with a similar memory - and a better archive - who can supply me with this informaiton.

Doug

---------------------------------------------------------------------
Douglas B. Meade  <><
Math, USC, Columbia, SC 29208  E-mail: mailto:meade@math.sc.edu
Phone:  (803) 777-6183         URL:    http://www.math.sc.edu

My approach is a combination of the two previous posts, with the added benefit of removing equivalent pairs (i,j) and (j,i).

I construct an Array (A) with the pairwise igcd and select the entries that are 1 (B). Then, I extract the index of these entries, as a set.

Doug

RelativePrime := proc( lo, hi )
  local A, B, C;
  A := Array( lo..hi, lo..hi, (i,j)->igcd(i,j) );
  B := select( u->evalb(rhs(u)=1), op(3,A) );
  C := map( u->{lhs(u)}, B );
  return C
end proc:

Here are a couple examples.

RelativePrime( 10, 20 );
  {{10, 11}, {10, 13}, {10, 17}, {10, 19}, {11, 12}, {11, 13}, {11, 14}, 

    {11, 15}, {11, 16}, {11, 17}, {11, 18}, {11, 19}, {11, 20}, {12, 13}, 

    {12, 17}, {12, 19}, {13, 14}, {13, 15}, {13, 16}, {13, 17}, {13, 18}, 

    {13, 19}, {13, 20}, {14, 15}, {14, 17}, {14, 19}, {15, 16}, {15, 17}, 

    {15, 19}, {16, 17}, {16, 19}, {17, 18}, {17, 19}, {17, 20}, {18, 19}, 

    {19, 20}}

RelativePrime( 100, 110 );
 {{100, 101}, {100, 103}, {100, 107}, {100, 109}, {101, 102}, {101, 103}, 

   {101, 104}, {101, 105}, {101, 106}, {101, 107}, {101, 108}, {101, 109}, 

   {101, 110}, {102, 103}, {102, 107}, {102, 109}, {103, 104}, {103, 105}, 

   {103, 106}, {103, 107}, {103, 108}, {103, 109}, {103, 110}, {104, 105}, 

   {104, 107}, {104, 109}, {105, 106}, {105, 107}, {105, 109}, {106, 107}, 

   {106, 109}, {107, 108}, {107, 109}, {107, 110}, {108, 109}, {109, 110}}

I hope this is helpful,

Doug

---------------------------------------------------------------------
Douglas B. Meade  <><
Math, USC, Columbia, SC 29208  E-mail: mailto:meade@math.sc.edu
Phone:  (803) 777-6183         URL:    http://www.math.sc.edu

 

My approach is a combination of the two previous posts, with the added benefit of removing equivalent pairs (i,j) and (j,i).

I construct an Array (A) with the pairwise igcd and select the entries that are 1 (B). Then, I extract the index of these entries, as a set.

Doug

RelativePrime := proc( lo, hi )
  local A, B, C;
  A := Array( lo..hi, lo..hi, (i,j)->igcd(i,j) );
  B := select( u->evalb(rhs(u)=1), op(3,A) );
  C := map( u->{lhs(u)}, B );
  return C
end proc:

Here are a couple examples.

RelativePrime( 10, 20 );
  {{10, 11}, {10, 13}, {10, 17}, {10, 19}, {11, 12}, {11, 13}, {11, 14}, 

    {11, 15}, {11, 16}, {11, 17}, {11, 18}, {11, 19}, {11, 20}, {12, 13}, 

    {12, 17}, {12, 19}, {13, 14}, {13, 15}, {13, 16}, {13, 17}, {13, 18}, 

    {13, 19}, {13, 20}, {14, 15}, {14, 17}, {14, 19}, {15, 16}, {15, 17}, 

    {15, 19}, {16, 17}, {16, 19}, {17, 18}, {17, 19}, {17, 20}, {18, 19}, 

    {19, 20}}

RelativePrime( 100, 110 );
 {{100, 101}, {100, 103}, {100, 107}, {100, 109}, {101, 102}, {101, 103}, 

   {101, 104}, {101, 105}, {101, 106}, {101, 107}, {101, 108}, {101, 109}, 

   {101, 110}, {102, 103}, {102, 107}, {102, 109}, {103, 104}, {103, 105}, 

   {103, 106}, {103, 107}, {103, 108}, {103, 109}, {103, 110}, {104, 105}, 

   {104, 107}, {104, 109}, {105, 106}, {105, 107}, {105, 109}, {106, 107}, 

   {106, 109}, {107, 108}, {107, 109}, {107, 110}, {108, 109}, {109, 110}}

I hope this is helpful,

Doug

---------------------------------------------------------------------
Douglas B. Meade  <><
Math, USC, Columbia, SC 29208  E-mail: mailto:meade@math.sc.edu
Phone:  (803) 777-6183         URL:    http://www.math.sc.edu

 

I think my idea of a vector of matrices makes sense here. Each element of the vector represents a different day.

Can the problems be solved day-by-day? That is, can you solve the problem for day 1 by itself, then use this result to setup the problem for day 2 (and so on)?

You might want to look in the GlobalOptimization package for additional tools for solving a problem such as yours.

This sounds interesting.

Doug

---------------------------------------------------------------------
Douglas B. Meade  <><
Math, USC, Columbia, SC 29208  E-mail: mailto:meade@math.sc.edu
Phone:  (803) 777-6183         URL:    http://www.math.sc.edu

I think my idea of a vector of matrices makes sense here. Each element of the vector represents a different day.

Can the problems be solved day-by-day? That is, can you solve the problem for day 1 by itself, then use this result to setup the problem for day 2 (and so on)?

You might want to look in the GlobalOptimization package for additional tools for solving a problem such as yours.

This sounds interesting.

Doug

---------------------------------------------------------------------
Douglas B. Meade  <><
Math, USC, Columbia, SC 29208  E-mail: mailto:meade@math.sc.edu
Phone:  (803) 777-6183         URL:    http://www.math.sc.edu

I do not believe you are going to find too many built-in Maple commands that will work with a 3d array. You may have more success working with a (1d) vector of (2d) arrays. That is how I would probably start.

Doug

---------------------------------------------------------------------
Douglas B. Meade  <><
Math, USC, Columbia, SC 29208  E-mail: mailto:meade@math.sc.edu
Phone:  (803) 777-6183         URL:    http://www.math.sc.edu

I do not believe you are going to find too many built-in Maple commands that will work with a 3d array. You may have more success working with a (1d) vector of (2d) arrays. That is how I would probably start.

Doug

---------------------------------------------------------------------
Douglas B. Meade  <><
Math, USC, Columbia, SC 29208  E-mail: mailto:meade@math.sc.edu
Phone:  (803) 777-6183         URL:    http://www.math.sc.edu

Does the assignment require you to use Maple for this?

This particular region is pretty simple - if you understand polar coordinates.

I can do this in Maple, but it's definitely harder than sketching the region by hand.

If you are required to use Maple, your instructor should have given you some guidance about how you should make the sketch. What do you know and what have you been given? (What course are you taking?)

Doug

---------------------------------------------------------------------
Douglas B. Meade  <><
Math, USC, Columbia, SC 29208  E-mail: mailto:meade@math.sc.edu
Phone:  (803) 777-6183         URL:    http://www.math.sc.edu

Does the assignment require you to use Maple for this?

This particular region is pretty simple - if you understand polar coordinates.

I can do this in Maple, but it's definitely harder than sketching the region by hand.

If you are required to use Maple, your instructor should have given you some guidance about how you should make the sketch. What do you know and what have you been given? (What course are you taking?)

Doug

---------------------------------------------------------------------
Douglas B. Meade  <><
Math, USC, Columbia, SC 29208  E-mail: mailto:meade@math.sc.edu
Phone:  (803) 777-6183         URL:    http://www.math.sc.edu

To followup on acer's questions:

What do you want to be able to do with the 3d hypermatrix?

Why are you so sure you need a 3d hypermatrix? If you can tell us a little about what you are trying to do, there's a good chance we can give you some ideas about how to get started.

Doug

---------------------------------------------------------------------
Douglas B. Meade  <><
Math, USC, Columbia, SC 29208  E-mail: mailto:meade@math.sc.edu
Phone:  (803) 777-6183         URL:    http://www.math.sc.edu

To followup on acer's questions:

What do you want to be able to do with the 3d hypermatrix?

Why are you so sure you need a 3d hypermatrix? If you can tell us a little about what you are trying to do, there's a good chance we can give you some ideas about how to get started.

Doug

---------------------------------------------------------------------
Douglas B. Meade  <><
Math, USC, Columbia, SC 29208  E-mail: mailto:meade@math.sc.edu
Phone:  (803) 777-6183         URL:    http://www.math.sc.edu
First 21 22 23 24 25 26 27 Last Page 23 of 76