<?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: I have some questions about 'LOOP' in Mathcad</title>
    <link>https://www.ptcusercommunity.com/t5/Mathcad/I-have-some-questions-about-LOOP/m-p/335220#M131106</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for consideration. &lt;/P&gt;&lt;P&gt;I finally finish my question. &lt;/P&gt;&lt;P&gt;when I solve my question, it is vey helpful to help me althought you don't understand my question.&lt;/P&gt;&lt;P&gt;I am sorry to confuse you becasue my english skill is poor.&lt;/P&gt;&lt;P&gt;Anyway, thank you again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 Sep 2014 10:18:10 GMT</pubDate>
    <dc:creator>jlee-2</dc:creator>
    <dc:date>2014-09-26T10:18:10Z</dc:date>
    <item>
      <title>I have some questions about 'LOOP'</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/I-have-some-questions-about-LOOP/m-p/335209#M131095</link>
      <description>I am a korean so I can't write well about my questions. But I will try to write.I want to express 'Loop'. Let's we suppose two equations. One is X=Y^2+2Y+3. The last is Y=X^2+3X+5.I can find adequate value by finding convergence between X and</description>
      <pubDate>Thu, 03 May 2018 15:58:24 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/I-have-some-questions-about-LOOP/m-p/335209#M131095</guid>
      <dc:creator>jlee-2</dc:creator>
      <dc:date>2018-05-03T15:58:24Z</dc:date>
    </item>
    <item>
      <title>Re: I have some questions about 'LOOP'</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/I-have-some-questions-about-LOOP/m-p/335210#M131096</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;jinsuk Lee wrote:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am a korean so I can't write well about my questions. But I will try to write.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to express 'Loop'. &lt;/P&gt;&lt;P&gt;Let's we suppose two equations. One is X=Y^2+2Y+3. The last is Y=X^2+3X+5.&lt;/P&gt;&lt;P&gt;I can find adequate value by finding convergence between X and Y. &lt;/P&gt;&lt;P&gt;But I can't express in MATHCAD. &lt;/P&gt;&lt;P&gt;I think I need to use 'While' to express..&lt;/P&gt;&lt;P&gt;How can I express it to use 'while'?&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I am not sure what you want to do with loops here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have a system of equations and this system has no real solution. You can see this if you substitute the second equation in the first,get an equation of fourth order and plot it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mathcad offers a way to minimize the error, maybe thats what you ar looking for:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="78725" class="jive-image" alt="1.png" src="https://community.ptc.com/legacyfs/online/78725_1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For future questions always please attach a worksheet with the expressions in question.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Sep 2014 06:08:50 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/I-have-some-questions-about-LOOP/m-p/335210#M131096</guid>
      <dc:creator>Werner_E</dc:creator>
      <dc:date>2014-09-23T06:08:50Z</dc:date>
    </item>
    <item>
      <title>Re: I have some questions about 'LOOP'</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/I-have-some-questions-about-LOOP/m-p/335211#M131097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As Werner, I am also a little unsure what you want to do here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please provide a worksheet and expected results for us to work with.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Sep 2014 06:32:07 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/I-have-some-questions-about-LOOP/m-p/335211#M131097</guid>
      <dc:creator>MikeArmstrong</dc:creator>
      <dc:date>2014-09-23T06:32:07Z</dc:date>
    </item>
    <item>
      <title>Re: I have some questions about 'LOOP'</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/I-have-some-questions-about-LOOP/m-p/335212#M131098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG __jive_id="78801" alt="K-36.png" class="jive-image-thumbnail jive-image" height="146" src="https://community.ptc.com/legacyfs/online/78801_K-36.png" width="430" /&gt;&lt;/P&gt;&lt;P&gt;I am sorry that I made you feel difficult when you saw my post.&lt;/P&gt;&lt;P&gt;I want to know a2 value. To know a2 value, I must know f(a1) value and I also must know a1 value to know f(a1).&lt;/P&gt;&lt;P&gt;it means that I must know a1 value first. so If I assume that a1 value is 0&amp;lt;a1&amp;lt;1, I can know f(a1) by doing iteration. I can know a2 value by comparing a1 value that I input.&lt;/P&gt;&lt;P&gt;But I can't express my thinking in mathcad.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt; N=3, lamda_design=7.5 &amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2014 00:25:45 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/I-have-some-questions-about-LOOP/m-p/335212#M131098</guid>
      <dc:creator>jlee-2</dc:creator>
      <dc:date>2014-09-24T00:25:45Z</dc:date>
    </item>
    <item>
      <title>Re: I have some questions about 'LOOP'</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/I-have-some-questions-about-LOOP/m-p/335213#M131099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As Mike and myself already have writen - attach your worksheet, not just a picture. The willingness to retype what you have already typed is very limited.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whats the goal of your iteration? When will it stop? Are you searching for a1=a2? This would result in a=0.333333333307379......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise a2 simply is a function of a1 and you can calculate a2 very easily if you switch the order of the two expressions and use a normal assignment instead of a local one.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2014 01:03:39 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/I-have-some-questions-about-LOOP/m-p/335213#M131099</guid>
      <dc:creator>Werner_E</dc:creator>
      <dc:date>2014-09-24T01:03:39Z</dc:date>
    </item>
    <item>
      <title>Re: I have some questions about 'LOOP'</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/I-have-some-questions-about-LOOP/m-p/335214#M131100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I attach my file. &lt;/P&gt;&lt;P&gt;I want to know a1=a2 when I input randomly a1 values to do convergence.&lt;/P&gt;&lt;P&gt;Thank you for your help&lt;/P&gt;&lt;P&gt;&amp;lt; you can see my question in tap of practice2&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2014 02:13:29 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/I-have-some-questions-about-LOOP/m-p/335214#M131100</guid>
      <dc:creator>jlee-2</dc:creator>
      <dc:date>2014-09-24T02:13:29Z</dc:date>
    </item>
    <item>
      <title>Re: I have some questions about 'LOOP'</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/I-have-some-questions-about-LOOP/m-p/335215#M131101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for consideration.&lt;/P&gt;&lt;P&gt;I attached my file. I want to find a2 value when I randomly input a1 values.&lt;/P&gt;&lt;P&gt;But I don't know how I can express 'loop' to solve this problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2014 05:58:05 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/I-have-some-questions-about-LOOP/m-p/335215#M131101</guid>
      <dc:creator>jlee-2</dc:creator>
      <dc:date>2014-09-24T05:58:05Z</dc:date>
    </item>
    <item>
      <title>Re: I have some questions about 'LOOP'</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/I-have-some-questions-about-LOOP/m-p/335216#M131102</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;jinsuk Lee wrote:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I attach my file. &lt;/P&gt;&lt;P&gt;I want to know a1=a2 when I input randomly a1 values to do convergence.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;What convergence????&lt;/P&gt;&lt;P&gt;You already have setup a2 which you called b now as a function of a.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What do you expect as a result when you use those loops you are talking about all the time??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Take a look, here is what your function b(a) looks like:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="78892" alt="1.png" class="jive-image-thumbnail jive-image" height="216" src="https://community.ptc.com/legacyfs/online/78892_1.png" width="294" /&gt;&lt;/P&gt;&lt;P&gt;Here is a magnified view of the peak region around a=1:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="78902" alt="2.png" class="jive-image-thumbnail jive-image" height="209" src="https://community.ptc.com/legacyfs/online/78902_2.png" width="252" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So what are you looking for?? The peak value when a approaches 1? You can get it using the symbolics:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="78903" alt="3.png" class="jive-image" src="https://community.ptc.com/legacyfs/online/78903_3.png" /&gt;&lt;/P&gt;&lt;P&gt;But you will only get this exact result, if you change 7.5 to 75/10 and 0.1 to 1/10, otherwise you will see 0.333333333333... Thats a very nasty "feature" of Mathcad/Prime since they changed the symbolic engine from Maple to muPad.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2014 09:48:09 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/I-have-some-questions-about-LOOP/m-p/335216#M131102</guid>
      <dc:creator>Werner_E</dc:creator>
      <dc:date>2014-09-24T09:48:09Z</dc:date>
    </item>
    <item>
      <title>Re: I have some questions about 'LOOP'</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/I-have-some-questions-about-LOOP/m-p/335217#M131103</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;jinsuk Lee wrote:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for consideration.&lt;/P&gt;&lt;P&gt;I attached my file. I want to find a2 value when I randomly input a1 values.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;You have already achieved exactly that in the file you posted!&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;But I don't know how I can express 'loop' to solve this problem.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;For the problem you described above you don't need any loops at all - you have already solved it. So it seems to me you are looking for something completely different. I am not sure if its the peak value as I suspected in my other reply below today.&lt;/P&gt;&lt;P&gt;In the program fragment you provide you don't use a2(a) at all. It looks like you are searching a value of a so that a=f(a) ???&lt;/P&gt;&lt;P&gt;I already asked you in a reply yesterday if you are looking for a=a2(a) and also provided the solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So for us to be able to help you must tell us what you are looking for (and not how you think you can achieve that goal). What should the result look like and what should be its characteristics?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BTW, if you write f(a) &amp;lt;-- a in a program you define a local function and you don't assign any values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2014 10:39:12 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/I-have-some-questions-about-LOOP/m-p/335217#M131103</guid>
      <dc:creator>Werner_E</dc:creator>
      <dc:date>2014-09-24T10:39:12Z</dc:date>
    </item>
    <item>
      <title>Re: I have some questions about 'LOOP'</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/I-have-some-questions-about-LOOP/m-p/335218#M131104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am very thank you for reading my questions.&lt;/P&gt;&lt;P&gt;I attache my file to know that it is rignt.&lt;/P&gt;&lt;P&gt;I think if you see my file, you can understand my question.&lt;/P&gt;&lt;P&gt;thank you &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2014 01:42:35 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/I-have-some-questions-about-LOOP/m-p/335218#M131104</guid>
      <dc:creator>jlee-2</dc:creator>
      <dc:date>2014-09-25T01:42:35Z</dc:date>
    </item>
    <item>
      <title>Re: I have some questions about 'LOOP'</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/I-have-some-questions-about-LOOP/m-p/335219#M131105</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;I attache my file to know that it is rignt.&lt;/P&gt;&lt;P&gt;I think if you see my file, you can understand my question.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Unfortunately not.&lt;/P&gt;&lt;P&gt;All I can think of (but I already asked that question twice) is that you search an a1 so that a1=a2(a1).&lt;/P&gt;&lt;P&gt;If yes you should use a solve block:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="79004" class="jive-image-thumbnail jive-image" height="240" onclick="" alt="1.png" src="https://community.ptc.com/legacyfs/online/79004_1.png" width="347" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2014 05:16:09 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/I-have-some-questions-about-LOOP/m-p/335219#M131105</guid>
      <dc:creator>Werner_E</dc:creator>
      <dc:date>2014-09-25T05:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: I have some questions about 'LOOP'</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/I-have-some-questions-about-LOOP/m-p/335220#M131106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for consideration. &lt;/P&gt;&lt;P&gt;I finally finish my question. &lt;/P&gt;&lt;P&gt;when I solve my question, it is vey helpful to help me althought you don't understand my question.&lt;/P&gt;&lt;P&gt;I am sorry to confuse you becasue my english skill is poor.&lt;/P&gt;&lt;P&gt;Anyway, thank you again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Sep 2014 10:18:10 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/I-have-some-questions-about-LOOP/m-p/335220#M131106</guid>
      <dc:creator>jlee-2</dc:creator>
      <dc:date>2014-09-26T10:18:10Z</dc:date>
    </item>
    <item>
      <title>Re: I have some questions about 'LOOP'</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/I-have-some-questions-about-LOOP/m-p/335221#M131107</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;jinsuk Lee wrote:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for consideration. &lt;/P&gt;&lt;P&gt;I finally finish my question. &lt;/P&gt;&lt;P&gt;when I solve my question, it is vey helpful to help me althought you don't understand my question.&lt;/P&gt;&lt;P&gt;I am sorry to confuse you becasue my english skill is poor.&lt;/P&gt;&lt;P&gt;Anyway, thank you again.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Yes, l&lt;SPAN id="result_box" lang="en"&gt;&lt;SPAN class="hps"&gt;anguage barriers&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;can&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;be very uncomfortable&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;and&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;cumbersome&lt;/SPAN&gt;&lt;SPAN&gt;. Not sure if Google translate would be of help.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN&gt;Anyway, the solve block I showed in my last post does the very same as your iteration routine, but with a much better precision.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN&gt;You can also use Mathcad's root() function to do the job,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN&gt;BTW, there are two lines in your routine which have no effect and can be deleted.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN&gt;&lt;IMG __jive_id="79129" alt="1.png" class="jive-image" src="https://community.ptc.com/legacyfs/online/79129_1.png" /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Sep 2014 11:35:03 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/I-have-some-questions-about-LOOP/m-p/335221#M131107</guid>
      <dc:creator>Werner_E</dc:creator>
      <dc:date>2014-09-26T11:35:03Z</dc:date>
    </item>
  </channel>
</rss>

