<?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: minimum function in Mathcad</title>
    <link>https://community.ptc.com/t5/Mathcad/minimum-function/m-p/975073#M214034</link>
    <description>&lt;P&gt;It wasn't clear to me, either.&amp;nbsp; A simpler version of the program would do the trick, and use else if and else to handle the different cases, rather than evaluate q[i twice.&amp;nbsp; And it handles the two edge cases.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2024 10 01 D.png" style="width: 999px;"&gt;&lt;img src="https://community.ptc.com/t5/image/serverpage/image-id/111638iBEC14FF559FB81A3/image-size/large?v=v2&amp;amp;px=999" role="button" title="2024 10 01 D.png" alt="2024 10 01 D.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If that's what Yusra wants, of course.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Stuart&lt;/P&gt;</description>
    <pubDate>Tue, 01 Oct 2024 17:03:07 GMT</pubDate>
    <dc:creator>StuartBruff</dc:creator>
    <dc:date>2024-10-01T17:03:07Z</dc:date>
    <item>
      <title>minimum function</title>
      <link>https://community.ptc.com/t5/Mathcad/minimum-function/m-p/975035#M214024</link>
      <description>&lt;P&gt;I wrote a program to correct the value of q. I wanted to choose always the minimum value and I put the maximum limit to be 15 MPa , I don't know why it is not working . Do you know how to solve this problem?&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="YA_10963798_0-1727795104689.png" style="width: 400px;"&gt;&lt;img src="https://community.ptc.com/t5/image/serverpage/image-id/111629i330B1DC3BCB2231E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="YA_10963798_0-1727795104689.png" alt="YA_10963798_0-1727795104689.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2024 15:08:14 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Mathcad/minimum-function/m-p/975035#M214024</guid>
      <dc:creator>YA_10963798</dc:creator>
      <dc:date>2024-10-01T15:08:14Z</dc:date>
    </item>
    <item>
      <title>Re: minimum function</title>
      <link>https://community.ptc.com/t5/Mathcad/minimum-function/m-p/975046#M214025</link>
      <description>&lt;P&gt;last gives the index of the last element in a vector, regardless of ORIGIN.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="StuartBruff_1-1727796449727.png" style="width: 400px;"&gt;&lt;img src="https://community.ptc.com/t5/image/serverpage/image-id/111633i7DEEAD898E5A3B8C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="StuartBruff_1-1727796449727.png" alt="StuartBruff_1-1727796449727.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there any particular reason that you've excluded qc;long's last row ?&amp;nbsp; last(qc;long)-1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Stuart&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2024 15:28:07 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Mathcad/minimum-function/m-p/975046#M214025</guid>
      <dc:creator>StuartBruff</dc:creator>
      <dc:date>2024-10-01T15:28:07Z</dc:date>
    </item>
    <item>
      <title>Re: minimum function</title>
      <link>https://community.ptc.com/t5/Mathcad/minimum-function/m-p/975050#M214027</link>
      <description>&lt;P&gt;actually, I tried to let i works without doing that, but it shows error that the last value can't be longer than i so I exclude it, it should be included though.&lt;/P&gt;&lt;P&gt;so the reason is just to get the program working&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2024 15:48:27 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Mathcad/minimum-function/m-p/975050#M214027</guid>
      <dc:creator>YA_10963798</dc:creator>
      <dc:date>2024-10-01T15:48:27Z</dc:date>
    </item>
    <item>
      <title>Re: minimum function</title>
      <link>https://community.ptc.com/t5/Mathcad/minimum-function/m-p/975062#M214029</link>
      <description>&lt;P&gt;&lt;FONT size="2"&gt;Edited to add larger screenshot.&amp;nbsp; The small version is a bit hard to read on 4K laptop screens.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If all you want to do is restrict the vector values to given limits, then I'd recommend that you use a general purpose function that is tailored for that purpose.&amp;nbsp; Try the function limit shown below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2024 10 01 C.png" style="width: 999px;"&gt;&lt;img src="https://community.ptc.com/t5/image/serverpage/image-id/111637iD00E45C75E925555/image-size/large?v=v2&amp;amp;px=999" role="button" title="2024 10 01 C.png" alt="2024 10 01 C.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Stuart&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2024 16:28:06 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Mathcad/minimum-function/m-p/975062#M214029</guid>
      <dc:creator>StuartBruff</dc:creator>
      <dc:date>2024-10-01T16:28:06Z</dc:date>
    </item>
    <item>
      <title>Re: minimum function</title>
      <link>https://community.ptc.com/t5/Mathcad/minimum-function/m-p/975069#M214032</link>
      <description>&lt;P&gt;Its not clear to me what you are trying to achieve, especially the second "min(...)" expression where you ignore the element itself but rather choose the smallest of qmin and the two values surrounding the current element.&lt;/P&gt;
&lt;P&gt;The reason you have to stop your loop one before the last element is because you are accessing q... with index i+1&lt;/P&gt;
&lt;P&gt;It sure would help if you describe in more detailed words what you are trying to achieve, provide one or more explicit examples and attach a short(!!) worksheet with demo/dummy data to play with.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To limit a value v between a min (a) and a max (b) value you may use&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;limit(v,a,b) := max(&amp;nbsp; min(v, b), a)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Use vectorization to apply to a vector argument.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2024 17:03:06 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Mathcad/minimum-function/m-p/975069#M214032</guid>
      <dc:creator>Werner_E</dc:creator>
      <dc:date>2024-10-01T17:03:06Z</dc:date>
    </item>
    <item>
      <title>Re: minimum function</title>
      <link>https://community.ptc.com/t5/Mathcad/minimum-function/m-p/975073#M214034</link>
      <description>&lt;P&gt;It wasn't clear to me, either.&amp;nbsp; A simpler version of the program would do the trick, and use else if and else to handle the different cases, rather than evaluate q[i twice.&amp;nbsp; And it handles the two edge cases.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2024 10 01 D.png" style="width: 999px;"&gt;&lt;img src="https://community.ptc.com/t5/image/serverpage/image-id/111638iBEC14FF559FB81A3/image-size/large?v=v2&amp;amp;px=999" role="button" title="2024 10 01 D.png" alt="2024 10 01 D.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If that's what Yusra wants, of course.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Stuart&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2024 17:03:07 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Mathcad/minimum-function/m-p/975073#M214034</guid>
      <dc:creator>StuartBruff</dc:creator>
      <dc:date>2024-10-01T17:03:07Z</dc:date>
    </item>
    <item>
      <title>Re: minimum function</title>
      <link>https://community.ptc.com/t5/Mathcad/minimum-function/m-p/975084#M214037</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;
&lt;P&gt;If that's what Yusra wants, of course.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I am not sure.&lt;/P&gt;
&lt;P&gt;There must be a reason why he used that strange use of "min"&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_0-1727804169465.png" style="width: 312px;"&gt;&lt;img src="https://community.ptc.com/t5/image/serverpage/image-id/111644i6688E20041F8DCA1/image-dimensions/312x46?v=v2" width="312" height="46" role="button" title="Werner_E_0-1727804169465.png" alt="Werner_E_0-1727804169465.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;making a comparison with the previous and next value !?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2024 17:37:00 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Mathcad/minimum-function/m-p/975084#M214037</guid>
      <dc:creator>Werner_E</dc:creator>
      <dc:date>2024-10-01T17:37:00Z</dc:date>
    </item>
    <item>
      <title>Re: minimum function</title>
      <link>https://community.ptc.com/t5/Mathcad/minimum-function/m-p/975086#M214038</link>
      <description>&lt;P&gt;What I want the program to do is to always choose the minimum value . I have to three values q , qmin, qmax..&lt;/P&gt;&lt;P&gt;q is the vector I want to test,&lt;/P&gt;&lt;P&gt;q min = 12 MPa,&amp;nbsp; &amp;nbsp; &amp;nbsp;qmax2= 15 MPa&amp;nbsp;&lt;/P&gt;&lt;P&gt;q is the vector&amp;nbsp; which&amp;nbsp; I want to always be less than the two max values .&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example the program will compare the q to qmin and will choose the minimum between them. if q= 10 and qmin=12 it will choose 10.&lt;/P&gt;&lt;P&gt;less than 12 will always remain the same&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and if q is between 12 -15 it will remain its value.&amp;nbsp;&lt;/P&gt;&lt;P&gt;But if q is bigger than 15 it will choose 15.&amp;nbsp;&lt;/P&gt;&lt;P&gt;so the result will be between the smallest value which can be zero and the maximum value which is 15&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2024 17:44:01 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Mathcad/minimum-function/m-p/975086#M214038</guid>
      <dc:creator>YA_10963798</dc:creator>
      <dc:date>2024-10-01T17:44:01Z</dc:date>
    </item>
    <item>
      <title>Re: minimum function</title>
      <link>https://community.ptc.com/t5/Mathcad/minimum-function/m-p/975089#M214039</link>
      <description>&lt;DIV&gt;&lt;DIV&gt;Yes . I want it to be choose always the minimum value between the three values&lt;/DIV&gt;&lt;DIV&gt;So first it compares it to the previous value and choose the minimum and than to 12 MPa and choose the minimum. And then to the after value and choose the minimum. … this when the value is between (0 and 12)&lt;/DIV&gt;&lt;DIV&gt;If the value between (12 and 15) it will remain the same&lt;/DIV&gt;&lt;DIV&gt;If the value bigger than 15 it will choose 15.&lt;/DIV&gt;&lt;BR /&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 01 Oct 2024 17:53:39 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Mathcad/minimum-function/m-p/975089#M214039</guid>
      <dc:creator>YA_10963798</dc:creator>
      <dc:date>2024-10-01T17:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: minimum function</title>
      <link>https://community.ptc.com/t5/Mathcad/minimum-function/m-p/975091#M214040</link>
      <description>&lt;P&gt;What you write does NOT mean that you always want the minimum value to be chosen.&lt;/P&gt;
&lt;P&gt;On contrary!! The minimum value 12 MPa has NO EFFECT at all! Its not used!&lt;/P&gt;
&lt;P&gt;A value remains the same if its smaller than qmax=15 MPa and only values above 15 MPa are corrected down to 15 MPa.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You still can use one of the "imit" functions which were posted by Stuart (using if's) and me (using min &amp;amp; max) if you set the minimum value there to minus infinity or, of your values are all positive, you may also set&amp;nbsp; it to zero.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2024 18:08:05 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Mathcad/minimum-function/m-p/975091#M214040</guid>
      <dc:creator>Werner_E</dc:creator>
      <dc:date>2024-10-01T18:08:05Z</dc:date>
    </item>
    <item>
      <title>Re: minimum function</title>
      <link>https://community.ptc.com/t5/Mathcad/minimum-function/m-p/975094#M214041</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.ptc.com/t5/user/viewprofilepage/user-id/800166"&gt;@YA_10963798&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;DIV&gt;
&lt;DIV&gt;Yes . I want it to be choose always the minimum value between the three values&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;"the" three values? which values? If you mean q, qmin and qmax, this would be equivalent to set all values above qmin to qmin and let values below qmin unchanged!?&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;BR /&gt;
&lt;DIV&gt;
&lt;DIV&gt;So first it compares it to the previous value and choose the minimum and than to 12 MPa and choose the minimum. And then to the after value and choose the minimum. … this when the value is between (0 and 12)&lt;/DIV&gt;
&lt;DIV&gt;&lt;EM&gt;&lt;STRONG&gt;If the value between (12 and 15) it will remain the same&lt;/STRONG&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;WHY??? You just wrote that is should be smaller than the previous value!? Why should it remain the same when its between 12 and 15?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry, but your explanations do not make it any clearer for me.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2024 18:13:41 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Mathcad/minimum-function/m-p/975094#M214041</guid>
      <dc:creator>Werner_E</dc:creator>
      <dc:date>2024-10-01T18:13:41Z</dc:date>
    </item>
    <item>
      <title>Re: minimum function</title>
      <link>https://community.ptc.com/t5/Mathcad/minimum-function/m-p/975100#M214042</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.ptc.com/t5/user/viewprofilepage/user-id/800166"&gt;@YA_10963798&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;DIV&gt;
&lt;DIV&gt;Yes . I want it to be choose always the minimum value between the three values&lt;/DIV&gt;
&lt;DIV&gt;So first it compares it to the previous value and choose the minimum and than to 12 MPa and choose the minimum. And then to the after value and choose the minimum. … this when the value is between (0 and 12)&lt;/DIV&gt;
&lt;DIV&gt;If the value between (12 and 15) it will remain the same&lt;/DIV&gt;
&lt;DIV&gt;If the value bigger than 15 it will choose 15.&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;First, let's look at your limiting program and see where it's going wrong.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2024 10 01 E.png" style="width: 999px;"&gt;&lt;img src="https://community.ptc.com/t5/image/serverpage/image-id/111647iBE1AE045D36754D7/image-size/large?v=v2&amp;amp;px=999" role="button" title="2024 10 01 E.png" alt="2024 10 01 E.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you look at the second value (index O+1), you want the minimum of qmin and the values at O and O+2, which are 12 MPa, 11.4 MPa and 15.8 MPa, respectively.&amp;nbsp; The minimum of these is 11.4 MPa, which is what we see in result.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Rather than max(qmin,qclong&lt;SUB&gt;i-1&lt;/SUB&gt;,qclong&lt;SUB&gt;i+1&lt;/SUB&gt;) what you want is max(qmin,min(qmax,qclong&lt;SUB&gt;i-1&lt;/SUB&gt;,qclong&lt;SUB&gt;i+1&lt;/SUB&gt;)).&amp;nbsp; IOW, you get the minimum of qmax and a values two neighbours and then the maximum of that and qmin.&amp;nbsp; The min returns a value with a maximum value of qmax.&amp;nbsp; The outer max returns the min value or qmin.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And then there are the end values.&amp;nbsp; I've used q to limit them because q has the same values as qclong, and it's less typing and horizontal space (&lt;EM&gt;thus making it slightly more legible&lt;/EM&gt;).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2024 10 01 F.png" style="width: 999px;"&gt;&lt;img src="https://community.ptc.com/t5/image/serverpage/image-id/111649i4D2DDBFB83EC04C9/image-size/large?v=v2&amp;amp;px=999" role="button" title="2024 10 01 F.png" alt="2024 10 01 F.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Stuart&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2024 19:02:54 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Mathcad/minimum-function/m-p/975100#M214042</guid>
      <dc:creator>StuartBruff</dc:creator>
      <dc:date>2024-10-01T19:02:54Z</dc:date>
    </item>
    <item>
      <title>Re: minimum function</title>
      <link>https://community.ptc.com/t5/Mathcad/minimum-function/m-p/975122#M214043</link>
      <description>&lt;P&gt;If I read her intent correctly, Yusra doesn't want q&lt;SUB&gt;i&lt;/SUB&gt; to be the minimum of q&lt;SUB&gt;i&lt;/SUB&gt; and qmin, but (if q&lt;SUB&gt;i&lt;/SUB&gt; &amp;lt; qmin) for q&lt;SUB&gt;i&lt;/SUB&gt; to be qmin if both of q&lt;SUB&gt;i&lt;/SUB&gt;'s neighbours are greater than qmin, but the lower value of the two neighbours if both are greater than qmin, provided they are less than or equal to qmax.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Consequently, if q&lt;SUB&gt;i&lt;/SUB&gt; &amp;lt; qmin and q&lt;SUB&gt;i-1&lt;/SUB&gt; and q&lt;SUB&gt;i+1&lt;/SUB&gt; are &amp;gt; qmin, the lower value is wanted (capped at qmax).&amp;nbsp; Let q&lt;SUB&gt;i&lt;/SUB&gt; = 11, q&lt;SUB&gt;i-1&lt;/SUB&gt; = 13 and q&lt;SUB&gt;i+1&lt;/SUB&gt; = 14, then the program should select q&lt;SUB&gt;i-1&lt;/SUB&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;If&lt;/EM&gt; I read the intent correctly ...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Stuart&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2024 22:38:06 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Mathcad/minimum-function/m-p/975122#M214043</guid>
      <dc:creator>StuartBruff</dc:creator>
      <dc:date>2024-10-01T22:38:06Z</dc:date>
    </item>
    <item>
      <title>Re: minimum function</title>
      <link>https://community.ptc.com/t5/Mathcad/minimum-function/m-p/975160#M214049</link>
      <description>&lt;P&gt;thanks a lot for you help&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2024 08:42:24 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Mathcad/minimum-function/m-p/975160#M214049</guid>
      <dc:creator>YA_10963798</dc:creator>
      <dc:date>2024-10-02T08:42:24Z</dc:date>
    </item>
    <item>
      <title>Re: minimum function</title>
      <link>https://community.ptc.com/t5/Mathcad/minimum-function/m-p/977411#M214302</link>
      <description>&lt;P&gt;Hi Stuart,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you have time to help me with this one more time?&lt;/P&gt;&lt;P&gt;I need to edit the condition there to be like if the layer thickness is 2 m or less compare q to qmin=12MPa and choose the minimum value.&amp;nbsp;&lt;/P&gt;&lt;P&gt;if the layer thicknesss is bigger than 2m compare qc to qmax =15MPa and choose the minimum. I tried to do it but it shows error&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="YA_10963798_0-1728814645394.png" style="width: 400px;"&gt;&lt;img src="https://community.ptc.com/t5/image/serverpage/image-id/112299i075CA5377883B039/image-size/medium?v=v2&amp;amp;px=400" role="button" title="YA_10963798_0-1728814645394.png" alt="YA_10963798_0-1728814645394.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 13 Oct 2024 10:18:10 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Mathcad/minimum-function/m-p/977411#M214302</guid>
      <dc:creator>YA_10963798</dc:creator>
      <dc:date>2024-10-13T10:18:10Z</dc:date>
    </item>
    <item>
      <title>Re: minimum function</title>
      <link>https://community.ptc.com/t5/Mathcad/minimum-function/m-p/977423#M214308</link>
      <description>&lt;P&gt;I can look at it later, Yusra.&amp;nbsp; In the meantime, what is t?&amp;nbsp; q is a pressure, but to know the thickness of any q's layer, you need to know the depth corresponding to each q.&amp;nbsp; Probably you're best bet is to create a vector of layer thicknesses and a function to look up the thickness of the layer at depth z (or a vector containing the layer thickness for each z) and then substitute t with the calculated thickness at each q's depth (z).&amp;nbsp; Hope that makes sense.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Stuart&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 13 Oct 2024 14:03:23 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Mathcad/minimum-function/m-p/977423#M214308</guid>
      <dc:creator>StuartBruff</dc:creator>
      <dc:date>2024-10-13T14:03:23Z</dc:date>
    </item>
    <item>
      <title>Re: minimum function</title>
      <link>https://community.ptc.com/t5/Mathcad/minimum-function/m-p/977435#M214309</link>
      <description>&lt;P&gt;I've had a quick look and used my simpler test data worksheet to try out a solution.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Unfortunately, I'm a Prime 10 user so can't save as Prime 9.&amp;nbsp; It might be worth you installing Mathcad Prime 10 on one machine just so that you load Mathcad Prime 10 worksheets and view them - what appears on the screen isn't necessarily representative of what's on the worksheet.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I intuitively feel there's a simpler solution that I'm overlooking, but I appear to be having a broken brain day and the obvious isn't dancing about in front of my eyes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is this what you intended?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2024 10 13 A.png" style="width: 999px;"&gt;&lt;img src="https://community.ptc.com/t5/image/serverpage/image-id/112309iCCA266A0B6986034/image-size/large?v=v2&amp;amp;px=999" role="button" title="2024 10 13 A.png" alt="2024 10 13 A.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2024 10 13 B.png" style="width: 683px;"&gt;&lt;img src="https://community.ptc.com/t5/image/serverpage/image-id/112310i4C12DBDD58789F0A/image-size/large?v=v2&amp;amp;px=999" role="button" title="2024 10 13 B.png" alt="2024 10 13 B.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2024 10 13 C.png" style="width: 701px;"&gt;&lt;img src="https://community.ptc.com/t5/image/serverpage/image-id/112311i3EC2878D531A7ABC/image-size/large?v=v2&amp;amp;px=999" role="button" title="2024 10 13 C.png" alt="2024 10 13 C.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I put in the layerinfo table because my tiny brain was getting confused by what was meant by the "top" of a layer.&amp;nbsp; I assumed, as depth is negative that the first layer starts at the "surface", ie highest depth within z, and continues down beyond the deepest layer top (-11.1 m, in this case).&amp;nbsp; So, the highest layer runs from the surface to the first ztop depth, and the lowest level runs from -11.1 m down to -40 m (in this case).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Stuart&lt;/P&gt;</description>
      <pubDate>Sun, 13 Oct 2024 16:45:41 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Mathcad/minimum-function/m-p/977435#M214309</guid>
      <dc:creator>StuartBruff</dc:creator>
      <dc:date>2024-10-13T16:45:41Z</dc:date>
    </item>
    <item>
      <title>Re: minimum function</title>
      <link>https://community.ptc.com/t5/Mathcad/minimum-function/m-p/977569#M214321</link>
      <description>&lt;P&gt;Hi Stuart this is so helpful and thoroughly explained. I genuinely appreciate your help. Thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2024 10:04:26 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Mathcad/minimum-function/m-p/977569#M214321</guid>
      <dc:creator>YA_10963798</dc:creator>
      <dc:date>2024-10-14T10:04:26Z</dc:date>
    </item>
    <item>
      <title>Re: minimum function</title>
      <link>https://community.ptc.com/t5/Mathcad/minimum-function/m-p/977595#M214329</link>
      <description>&lt;P&gt;No problem, Yusra.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Stuart&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2024 11:27:34 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Mathcad/minimum-function/m-p/977595#M214329</guid>
      <dc:creator>StuartBruff</dc:creator>
      <dc:date>2024-10-14T11:27:34Z</dc:date>
    </item>
    <item>
      <title>Re: minimum function</title>
      <link>https://community.ptc.com/t5/Mathcad/minimum-function/m-p/977842#M214355</link>
      <description>&lt;P&gt;Hi Stuart,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found the thickness of the layer using this sample function ....&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="YA_10963798_4-1728970309067.png" style="width: 400px;"&gt;&lt;img src="https://community.ptc.com/t5/image/serverpage/image-id/112434i9089CD04F13FA110/image-size/medium?v=v2&amp;amp;px=400" role="button" title="YA_10963798_4-1728970309067.png" alt="YA_10963798_4-1728970309067.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="YA_10963798_0-1728969922530.png" style="width: 400px;"&gt;&lt;img src="https://community.ptc.com/t5/image/serverpage/image-id/112430i8FC5D962E77FB1AF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="YA_10963798_0-1728969922530.png" alt="YA_10963798_0-1728969922530.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;and then I found the average value of&amp;nbsp; q in each layer&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="YA_10963798_1-1728970011223.png" style="width: 400px;"&gt;&lt;img src="https://community.ptc.com/t5/image/serverpage/image-id/112431iA83FFB8E265B20F8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="YA_10963798_1-1728970011223.png" alt="YA_10963798_1-1728970011223.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="YA_10963798_3-1728970200826.png" style="width: 400px;"&gt;&lt;img src="https://community.ptc.com/t5/image/serverpage/image-id/112433i92F6D2473E96A62A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="YA_10963798_3-1728970200826.png" alt="YA_10963798_3-1728970200826.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then I tried to implement the condition if q which is if the thickness of the layer is 2m or less&amp;gt;&amp;gt; q must be equl or less than 12MPa...&amp;nbsp;&lt;/P&gt;&lt;P&gt;and if the thickness is bigger than 2m q should be less than 15 MPa&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="YA_10963798_2-1728970161079.png" style="width: 400px;"&gt;&lt;img src="https://community.ptc.com/t5/image/serverpage/image-id/112432iC5D249603CA9D8BF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="YA_10963798_2-1728970161079.png" alt="YA_10963798_2-1728970161079.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;However, it didn't work . can you tell me where is the mistakes I made?&lt;/P&gt;&lt;P&gt;Thank you in advance,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yusra&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2024 05:32:14 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Mathcad/minimum-function/m-p/977842#M214355</guid>
      <dc:creator>YA_10963798</dc:creator>
      <dc:date>2024-10-15T05:32:14Z</dc:date>
    </item>
  </channel>
</rss>

