<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Search algorithm wanted in Mathcad</title>
    <link>https://www.ptcusercommunity.com/t5/Mathcad/Search-algorithm-wanted/m-p/872098#M206438</link>
    <description>&lt;P&gt;Hello,&lt;BR /&gt;In the solution to my recently asked question "programming a recursion" it was noted that MC has problems with the accuracy of long-number arithmetic. As a test in derive I have successfully solved the following task: To determine a power of two, i.e. 2^n for natural n, which begins with the decadic digit sequence 2023. I am interested in an MC-compatible search algorithm.&lt;BR /&gt;If you are interested, I would be happy to provide my derive solution as an attached text file. Which text format is desired here in this forum?&lt;/P&gt;
&lt;P&gt;Kind regards, Alfred Flasshaar&lt;/P&gt;</description>
    <pubDate>Thu, 27 Apr 2023 13:15:13 GMT</pubDate>
    <dc:creator>AlfredFlaßhaar</dc:creator>
    <dc:date>2023-04-27T13:15:13Z</dc:date>
    <item>
      <title>Search algorithm wanted</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Search-algorithm-wanted/m-p/872098#M206438</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;In the solution to my recently asked question "programming a recursion" it was noted that MC has problems with the accuracy of long-number arithmetic. As a test in derive I have successfully solved the following task: To determine a power of two, i.e. 2^n for natural n, which begins with the decadic digit sequence 2023. I am interested in an MC-compatible search algorithm.&lt;BR /&gt;If you are interested, I would be happy to provide my derive solution as an attached text file. Which text format is desired here in this forum?&lt;/P&gt;
&lt;P&gt;Kind regards, Alfred Flasshaar&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2023 13:15:13 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Search-algorithm-wanted/m-p/872098#M206438</guid>
      <dc:creator>AlfredFlaßhaar</dc:creator>
      <dc:date>2023-04-27T13:15:13Z</dc:date>
    </item>
    <item>
      <title>Re: Search algorithm wanted</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Search-algorithm-wanted/m-p/872107#M206439</link>
      <description>&lt;P&gt;I would suggest to attach a pdf and the Derive file itself for dinosaurs like me which still have Derive installed on a machine.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;According long-integer arithmetic - there is none in Mathcad. Mathcads numeric uses the usual IEEE format with its typical 15-16 significant digits precision and the symbolics also has its limits, I guess.&lt;/P&gt;
&lt;P&gt;In contrast, Derive has always internally operated exclusively on integers of arbitrary length and could therefore provide "arbitrary" (limited by addressable memory) precision and was immune to rounding and conversion errors. &lt;BR /&gt;It was already in the DOS version an ingenious program with an unbelievable power on just one floppy disk.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2023 14:15:17 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Search-algorithm-wanted/m-p/872107#M206439</guid>
      <dc:creator>Werner_E</dc:creator>
      <dc:date>2023-04-27T14:15:17Z</dc:date>
    </item>
    <item>
      <title>Re: Search algorithm wanted</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Search-algorithm-wanted/m-p/872117#M206440</link>
      <description>&lt;P&gt;BTW, using brute force and Mathcads symbolic I found &lt;FONT face="courier new,courier"&gt;n=10103&lt;/FONT&gt; to be the smallest solution for &lt;FONT face="courier new,courier"&gt;2^n = 2023...&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_3-1682606352175.png" style="width: 999px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/81068i0C8C7BA9F917330F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Werner_E_3-1682606352175.png" alt="Werner_E_3-1682606352175.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For at least the next ten years it gets easier &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_4-1682606385321.png" style="width: 999px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/81069i938870BA894704BD/image-size/large?v=v2&amp;amp;px=999" role="button" title="Werner_E_4-1682606385321.png" alt="Werner_E_4-1682606385321.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;A slight modification can bring up all solutions within a given range&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_1-1682612249367.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/81076iE2F749BF3EB17706/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Werner_E_1-1682612249367.png" alt="Werner_E_1-1682612249367.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;MC15 file attached&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2023 16:17:42 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Search-algorithm-wanted/m-p/872117#M206440</guid>
      <dc:creator>Werner_E</dc:creator>
      <dc:date>2023-04-27T16:17:42Z</dc:date>
    </item>
    <item>
      <title>Re: Search algorithm wanted</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Search-algorithm-wanted/m-p/872139#M206443</link>
      <description>&lt;P&gt;Yes, 10103 is the first/smallest solution ending in ...008. The closest solutions are 23404 with ...016 and 25540 with ...776. And there are more of them. It's amazing what derive can do. I found the first solution "manually" because of the high computing speed.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2023 15:20:27 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Search-algorithm-wanted/m-p/872139#M206443</guid>
      <dc:creator>AlfredFlaßhaar</dc:creator>
      <dc:date>2023-04-27T15:20:27Z</dc:date>
    </item>
    <item>
      <title>Re: Search algorithm wanted</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Search-algorithm-wanted/m-p/872149#M206446</link>
      <description>&lt;P&gt;Not sure what you mean by "closest" solution and why the ending digits would be of interest.&lt;/P&gt;
&lt;P&gt;The next two solutions are 12239 and 14375 and the powers end with ...9888 and ...3568 resp..&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And what do you mean by "manually" finding the solution in Derive ?&lt;/P&gt;
&lt;P&gt;Is there a clever, non-brute force mathematical way to get the solution(s)?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And yes, computing speed in Derive usually beats Mathcads symbolics.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2023 16:27:44 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Search-algorithm-wanted/m-p/872149#M206446</guid>
      <dc:creator>Werner_E</dc:creator>
      <dc:date>2023-04-27T16:27:44Z</dc:date>
    </item>
    <item>
      <title>Re: Search algorithm wanted</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Search-algorithm-wanted/m-p/872164#M206450</link>
      <description>&lt;P&gt;p. s.&lt;/P&gt;&lt;P&gt;... only with help of derive´s "table".&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2023 16:57:11 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Search-algorithm-wanted/m-p/872164#M206450</guid>
      <dc:creator>AlfredFlaßhaar</dc:creator>
      <dc:date>2023-04-27T16:57:11Z</dc:date>
    </item>
  </channel>
</rss>

