<?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 Re: Trial and error in Mathcad</title>
    <link>https://www.ptcusercommunity.com/t5/Mathcad/Trial-and-error/m-p/62971#M24937</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;Khalid Shaikh wrote:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: 'times new roman', times;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;/P&gt;
&lt;P&gt;I am trying to get a solution in mathcad in which we provide a specific value (say 0) initially followed by set of equations and finally giving result.&lt;/P&gt;
&lt;P&gt;But if the result obtained is &amp;lt;&amp;gt; zero, program will automatically change the initial value until we get the final result (by trial and error) as or nearly zero.&lt;/P&gt;
&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;/P&gt;
&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;/P&gt;
&lt;P&gt;this is one example.&lt;/P&gt;
&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;/P&gt;
....&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are several methods of doing this in Mathcad.&amp;nbsp; For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.&amp;nbsp; Rewrite your expressions as a program and then write a standard divide-and-conquer algorithm to change x such that Eq gets nearer to 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.&amp;nbsp; Rewrite your expressions as a function and use the function Root to find the zeros.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Write a Solve Block around your expressions and use Find to look for an exact solution.&amp;nbsp; Use Minerr if Find fails to get an exact solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg:&amp;nbsp; Solve Block to find square root of 9, given an initial guess of 9.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.ptc.com/legacyfs/online/92358_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As Richard says, please post your worksheet ... nobody will want to retype all your work! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&amp;nbsp; Plus there are a few values you havent' specified (eg, E) and it's also often a lot easier to diagnose problems from the worksheet than by looking at a picture.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stuart&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 27 Sep 2015 14:42:13 GMT</pubDate>
    <dc:creator>StuartBruff</dc:creator>
    <dc:date>2015-09-27T14:42:13Z</dc:date>
    <item>
      <title>Trial and error</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Trial-and-error/m-p/62969#M24935</link>
      <description>Hi,I am trying to get a solution in mathcad in which we provide a specific value (say 0) initially followed by set of equations and finally giving result.But if the result obtained is &amp;lt;&amp;gt; zero, program will automatically change the initial value until we get the final result</description>
      <pubDate>Thu, 03 May 2018 15:06:00 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Trial-and-error/m-p/62969#M24935</guid>
      <dc:creator>kshaikh</dc:creator>
      <dc:date>2018-05-03T15:06:00Z</dc:date>
    </item>
    <item>
      <title>Re: Trial and error</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Trial-and-error/m-p/62970#M24936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please post the worksheet (click on "use advanced editor" at the top right of the edit dialog)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Sep 2015 14:35:03 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Trial-and-error/m-p/62970#M24936</guid>
      <dc:creator>RichardJ</dc:creator>
      <dc:date>2015-09-27T14:35:03Z</dc:date>
    </item>
    <item>
      <title>Re: Trial and error</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Trial-and-error/m-p/62971#M24937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;Khalid Shaikh wrote:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: 'times new roman', times;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;/P&gt;
&lt;P&gt;I am trying to get a solution in mathcad in which we provide a specific value (say 0) initially followed by set of equations and finally giving result.&lt;/P&gt;
&lt;P&gt;But if the result obtained is &amp;lt;&amp;gt; zero, program will automatically change the initial value until we get the final result (by trial and error) as or nearly zero.&lt;/P&gt;
&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;/P&gt;
&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;/P&gt;
&lt;P&gt;this is one example.&lt;/P&gt;
&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;/P&gt;
....&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are several methods of doing this in Mathcad.&amp;nbsp; For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.&amp;nbsp; Rewrite your expressions as a program and then write a standard divide-and-conquer algorithm to change x such that Eq gets nearer to 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.&amp;nbsp; Rewrite your expressions as a function and use the function Root to find the zeros.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Write a Solve Block around your expressions and use Find to look for an exact solution.&amp;nbsp; Use Minerr if Find fails to get an exact solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg:&amp;nbsp; Solve Block to find square root of 9, given an initial guess of 9.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.ptc.com/legacyfs/online/92358_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As Richard says, please post your worksheet ... nobody will want to retype all your work! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&amp;nbsp; Plus there are a few values you havent' specified (eg, E) and it's also often a lot easier to diagnose problems from the worksheet than by looking at a picture.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stuart&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Sep 2015 14:42:13 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Trial-and-error/m-p/62971#M24937</guid>
      <dc:creator>StuartBruff</dc:creator>
      <dc:date>2015-09-27T14:42:13Z</dc:date>
    </item>
    <item>
      <title>Re: Trial and error</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Trial-and-error/m-p/62972#M24938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please find attached MATHCAD file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Sep 2015 13:31:24 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Trial-and-error/m-p/62972#M24938</guid>
      <dc:creator>kshaikh</dc:creator>
      <dc:date>2015-09-28T13:31:24Z</dc:date>
    </item>
    <item>
      <title>Re: Trial and error</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Trial-and-error/m-p/62973#M24939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Change your variables to functions of x, and then use a solve block to find the values of x for which Eq=0&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Sep 2015 14:13:26 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Trial-and-error/m-p/62973#M24939</guid>
      <dc:creator>RichardJ</dc:creator>
      <dc:date>2015-09-28T14:13:26Z</dc:date>
    </item>
    <item>
      <title>Re: Trial and error</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Trial-and-error/m-p/62974#M24940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you sir,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wouldn't have been possible without your help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Khalid Shaikh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Sep 2015 14:49:10 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Trial-and-error/m-p/62974#M24940</guid>
      <dc:creator>kshaikh</dc:creator>
      <dc:date>2015-09-28T14:49:10Z</dc:date>
    </item>
  </channel>
</rss>

