<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
  <channel>
    <title>MaplePrimes - comments on Blog Entry, The Traveling Salesman's U.S. Roadtrip</title>
    <link>http://www.mapleprimes.com/maplesoftblog/89021-The-Traveling-Salesmans-US-Roadtrip</link>
    <language>en-us</language>
    <copyright>2026 Maplesoft, A Division of Waterloo Maple Inc.</copyright>
    <generator>Maplesoft Document System</generator>
    <lastBuildDate>Tue, 09 Jun 2026 09:31:42 GMT</lastBuildDate>
    <pubDate>Tue, 09 Jun 2026 09:31:42 GMT</pubDate>
    <itunes:subtitle />
    <itunes:summary />
    <description>The latest comments added to the Blog Entry, The Traveling Salesman's U.S. Roadtrip</description>
    <image>
      <url>http://www.mapleprimes.com/images/mapleprimeswhite.jpg</url>
      <title>MaplePrimes - comments on Blog Entry, The Traveling Salesman's U.S. Roadtrip</title>
      <link>http://www.mapleprimes.com/maplesoftblog/89021-The-Traveling-Salesmans-US-Roadtrip</link>
    </image>
    <item>
      <title>2 anti-patterns in one post!</title>
      <link>http://www.mapleprimes.com/maplesoftblog/89021-The-Traveling-Salesmans-US-Roadtrip?ref=Feed:MaplePrimes:The Traveling Salesman's U.S. Roadtrip:Comments#comment89463</link>
      <itunes:summary>&lt;p&gt;While a nice story, the code itself manages to squeeze in 2 anti-patterns:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Adding one element at a time to a string (which is quadratic in space)&lt;/li&gt;
&lt;li&gt;Using strings to do code-generation (instead of using an AST which is then rendered)&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;A lot of Maple neophytes learn how to write Maple code from these official corporate posts -- but if they are done in this sub-optimal way, these neophytes grow up to be bad Maple programmers, whose applications (when they end up on the App Center) get bad reviews, etc, etc.&amp;nbsp; IMHO, all corporate blog posts should get thorough code reviews by seasoned Maple programmers, to insure that Maple users are not inadvertently taught bad habits.&lt;/p&gt;</itunes:summary>
      <description>The latest comments added to the Blog Entry, The Traveling Salesman's U.S. Roadtrip</description>
      <guid>89463</guid>
      <pubDate>Thu, 10 Jun 2010 19:20:15 Z</pubDate>
      <itunes:author>JacquesC</itunes:author>
      <author>JacquesC</author>
    </item>
    <item>
      <title>What I found interesting is that as of 2010</title>
      <link>http://www.mapleprimes.com/maplesoftblog/89021-The-Traveling-Salesmans-US-Roadtrip?ref=Feed:MaplePrimes:The Traveling Salesman's U.S. Roadtrip:Comments#comment89749</link>
      <itunes:summary>&lt;p&gt;What I found interesting is that as of 2010 Maple 14 there does not exist a simple way&lt;br&gt;to assign a picture to a variable in Maple. I would also like to see ways that you can assign &lt;br&gt;overlays to pictures ie a picture on top of a picture. Using a tool such &lt;em&gt;ImportMatrix&lt;/em&gt; where&lt;br&gt;the picture is represented by a txt file feels so 1960's. There exist great potential for&lt;br&gt;improvement here :-)&amp;nbsp; &lt;br&gt;&lt;br&gt;&lt;/p&gt;</itunes:summary>
      <description>The latest comments added to the Blog Entry, The Traveling Salesman's U.S. Roadtrip</description>
      <guid>89749</guid>
      <pubDate>Wed, 16 Jun 2010 15:28:49 Z</pubDate>
      <itunes:author>alex_01</itunes:author>
      <author>alex_01</author>
    </item>
    <item>
      <title>Regarding the importing of pictures, there's</title>
      <link>http://www.mapleprimes.com/maplesoftblog/89021-The-Traveling-Salesmans-US-Roadtrip?ref=Feed:MaplePrimes:The Traveling Salesman's U.S. Roadtrip:Comments#comment95256</link>
      <itunes:summary>&lt;p&gt;Regarding the importing of pictures, there's always ImageTools:-Read. If you want to combine a Maple plot with a photograph, for example, you can export the plot into one of the image formats supported by ImageTools, then read that and your other image in, and then programmatically combine them.&lt;/p&gt;
&lt;p&gt;Samir, I haven't looked at the code, but did you take into account that the latitude-longitude grid is not square? At our latitude of about 45 degrees, the width of one degree of longitude is only about 0.7 times the height of one degree of latitude. For any latitude L, the spacing of the longitude lines is cos(L) times the spacing of the latitude lines (so at the equator, latitude and longitude are square, while at the poles, the longitude lines are all coincident).&lt;/p&gt;
&lt;!--break--&gt;
&lt;p&gt;Stefan&lt;/p&gt;</itunes:summary>
      <description>The latest comments added to the Blog Entry, The Traveling Salesman's U.S. Roadtrip</description>
      <guid>95256</guid>
      <pubDate>Tue, 20 Jul 2010 17:25:08 Z</pubDate>
      <itunes:author>stefanv</itunes:author>
      <author>stefanv</author>
    </item>
    <item>
      <title>@stefanv&amp;nbsp;
I used the Haversine formula</title>
      <link>http://www.mapleprimes.com/maplesoftblog/89021-The-Traveling-Salesmans-US-Roadtrip?ref=Feed:MaplePrimes:The Traveling Salesman's U.S. Roadtrip:Comments#comment95260</link>
      <itunes:summary>&lt;p&gt;&lt;a href="http://www.mapleprimes.com/maplesoftblog/89021-The-Traveling-Salesmans-US-Roadtrip#comment95256"&gt;@stefanv&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I used the &lt;a href="http://en.wikipedia.org/wiki/Haversine_formula"&gt;Haversine formula&lt;/a&gt; to calculate the distance between two longitude/latitude points. This accounts for the curvature of the earth by approximating it with a sphere.&lt;/p&gt;</itunes:summary>
      <description>The latest comments added to the Blog Entry, The Traveling Salesman's U.S. Roadtrip</description>
      <guid>95260</guid>
      <pubDate>Tue, 20 Jul 2010 18:47:04 Z</pubDate>
      <itunes:author>Samir Khan</itunes:author>
      <author>Samir Khan</author>
    </item>
  </channel>
</rss>