<?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: Mean-Max- Min functions for vectors in Mathcad</title>
    <link>https://www.ptcusercommunity.com/t5/Mathcad/Mean-Max-Min-functions-for-vectors/m-p/1050099#M220207</link>
    <description>&lt;P&gt;You may need to recalculate the sheet.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Success!&lt;BR /&gt;Luc&lt;/P&gt;</description>
    <pubDate>Wed, 07 Jan 2026 11:12:58 GMT</pubDate>
    <dc:creator>LucMeekes</dc:creator>
    <dc:date>2026-01-07T11:12:58Z</dc:date>
    <item>
      <title>Mean-Max- Min functions for vectors</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Mean-Max-Min-functions-for-vectors/m-p/1050075#M220198</link>
      <description>&lt;P&gt;Hi everyone,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have this function that I used to find R from it&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="YA_10963798_3-1767774598458.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/133233iC35D257387C51738/image-size/medium?v=v2&amp;amp;px=400" role="button" title="YA_10963798_3-1767774598458.png" alt="YA_10963798_3-1767774598458.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I want to find the min, max and max&amp;nbsp; from it ..but didn't work . It tells me that the values should be scalar&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="YA_10963798_4-1767774690540.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/133234iB3D23B534974EAFB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="YA_10963798_4-1767774690540.png" alt="YA_10963798_4-1767774690540.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and when I do this , it gives me the same results of the original one not the average&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="YA_10963798_2-1767774017156.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/133232i7213229891AC0B53/image-size/medium?v=v2&amp;amp;px=400" role="button" title="YA_10963798_2-1767774017156.png" alt="YA_10963798_2-1767774017156.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I need to find the min, average , and max values&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yusra&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jan 2026 08:36:37 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Mean-Max-Min-functions-for-vectors/m-p/1050075#M220198</guid>
      <dc:creator>YA_10963798</dc:creator>
      <dc:date>2026-01-07T08:36:37Z</dc:date>
    </item>
    <item>
      <title>Re: Mean-Max- Min functions for vectors</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Mean-Max-Min-functions-for-vectors/m-p/1050084#M220201</link>
      <description>&lt;P&gt;Hi Yusra,&lt;/P&gt;
&lt;P&gt;Your z.tips is a range, not a vector. Applied to a function that makes the function result a range at best, but not a vector.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Try making z.tips a vector, e.g. with:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LucMeekes_0-1767779509130.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/133237i012B8C0EF342FAD8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LucMeekes_0-1767779509130.png" alt="LucMeekes_0-1767779509130.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;and vectorise your expression:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LucMeekes_1-1767779616997.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/133238iBB4F69123520F3EA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LucMeekes_1-1767779616997.png" alt="LucMeekes_1-1767779616997.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Success!&lt;BR /&gt;Luc&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jan 2026 09:54:03 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Mean-Max-Min-functions-for-vectors/m-p/1050084#M220201</guid>
      <dc:creator>LucMeekes</dc:creator>
      <dc:date>2026-01-07T09:54:03Z</dc:date>
    </item>
    <item>
      <title>Re: Mean-Max- Min functions for vectors</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Mean-Max-Min-functions-for-vectors/m-p/1050089#M220204</link>
      <description>&lt;P&gt;It didn't work, do you think I'm missing something?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="YA_10963798_0-1767780867140.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/133239i3E0DF14A49990B77/image-size/medium?v=v2&amp;amp;px=400" role="button" title="YA_10963798_0-1767780867140.png" alt="YA_10963798_0-1767780867140.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_1-1767780887806.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/133240i2FD7BA779A1FFD4B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="YA_10963798_1-1767780887806.png" alt="YA_10963798_1-1767780887806.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jan 2026 10:15:13 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Mean-Max-Min-functions-for-vectors/m-p/1050089#M220204</guid>
      <dc:creator>YA_10963798</dc:creator>
      <dc:date>2026-01-07T10:15:13Z</dc:date>
    </item>
    <item>
      <title>Re: Mean-Max- Min functions for vectors</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Mean-Max-Min-functions-for-vectors/m-p/1050092#M220205</link>
      <description>&lt;P&gt;Don't vectorise the other expression:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LucMeekes_0-1767781520463.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/133241i6680F82390E4B6A5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LucMeekes_0-1767781520463.png" alt="LucMeekes_0-1767781520463.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Success!&lt;/P&gt;
&lt;P&gt;Luc&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jan 2026 10:25:39 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Mean-Max-Min-functions-for-vectors/m-p/1050092#M220205</guid>
      <dc:creator>LucMeekes</dc:creator>
      <dc:date>2026-01-07T10:25:39Z</dc:date>
    </item>
    <item>
      <title>Re: Mean-Max- Min functions for vectors</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Mean-Max-Min-functions-for-vectors/m-p/1050095#M220206</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="YA_10963798_0-1767781625229.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/133242iE265832404985F0B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="YA_10963798_0-1767781625229.png" alt="YA_10963798_0-1767781625229.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;When I do this another error appears because I change ztips... but when ztips is range it works again&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="YA_10963798_1-1767781768802.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/133243i44498215658E1591/image-size/medium?v=v2&amp;amp;px=400" role="button" title="YA_10963798_1-1767781768802.png" alt="YA_10963798_1-1767781768802.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jan 2026 10:29:35 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Mean-Max-Min-functions-for-vectors/m-p/1050095#M220206</guid>
      <dc:creator>YA_10963798</dc:creator>
      <dc:date>2026-01-07T10:29:35Z</dc:date>
    </item>
    <item>
      <title>Re: Mean-Max- Min functions for vectors</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Mean-Max-Min-functions-for-vectors/m-p/1050099#M220207</link>
      <description>&lt;P&gt;You may need to recalculate the sheet.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Success!&lt;BR /&gt;Luc&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jan 2026 11:12:58 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Mean-Max-Min-functions-for-vectors/m-p/1050099#M220207</guid>
      <dc:creator>LucMeekes</dc:creator>
      <dc:date>2026-01-07T11:12:58Z</dc:date>
    </item>
    <item>
      <title>Re: Mean-Max- Min functions for vectors</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Mean-Max-Min-functions-for-vectors/m-p/1050113#M220208</link>
      <description>&lt;P&gt;thanks it works&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jan 2026 12:28:09 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Mean-Max-Min-functions-for-vectors/m-p/1050113#M220208</guid>
      <dc:creator>YA_10963798</dc:creator>
      <dc:date>2026-01-07T12:28:09Z</dc:date>
    </item>
    <item>
      <title>Re: Mean-Max- Min functions for vectors</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Mean-Max-Min-functions-for-vectors/m-p/1050115#M220209</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/800166"&gt;@YA_10963798&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I do this another error appears because I change ztips... but when ztips is range it works again&amp;nbsp;&lt;/P&gt;
&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;When you do - what?&lt;/P&gt;
&lt;P&gt;Luc told you that you should NOT use vectorization when you DEFINE the function R...&lt;/P&gt;
&lt;P&gt;NOT&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_0-1767787747733.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/133245i6D16FAC2A7B938E0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Werner_E_0-1767787747733.png" alt="Werner_E_0-1767787747733.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;but rather&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_1-1767787766404.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/133246i2EA58A0C50D4B4B5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Werner_E_1-1767787766404.png" alt="Werner_E_1-1767787766404.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;as you initially did.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or are you irritated because of the green boxes and think that they indicate an error? They don't, its just a warning because you already had defined z&lt;SUB&gt;tips&lt;/SUB&gt; before and you are now overwriting/replacing that definition by a new one. Warnings can be turned off in the menu&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_2-1767788097028.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/133247i49AD4E4EA496298F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Werner_E_2-1767788097028.png" alt="Werner_E_2-1767788097028.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Click the upper part of that button to turn on or off the warnings. Clicking the arrow let's you select in detail if the warning should concern functions, units, constants, variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As you are using Prime 11 you can also use the new function "vec" to define&amp;nbsp;z&lt;SUB&gt;tips&lt;/SUB&gt;&amp;nbsp;as a vector, if you like:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_3-1767788318749.png" style="width: 657px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/133248iD302DF49A11C9F14/image-dimensions/657x307?v=v2" width="657" height="307" role="button" title="Werner_E_3-1767788318749.png" alt="Werner_E_3-1767788318749.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can't vectorize the definition of the function R.s;cal;max because this would also vectorize the vectors z and q, but these must remain vectors.&lt;/P&gt;
&lt;P&gt;If you find it annoying having to vectorize the function CALL every time when you use it in your sheet with e vector&amp;nbsp;z&lt;SUB&gt;tips&lt;/SUB&gt; as its argument&amp;nbsp;instead of the expected scalar argument, you can define it using a local function which you call vectorized in the definition:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_4-1767788890026.png" style="width: 508px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/133249i3BC817576FFCE273/image-dimensions/508x242?v=v2" width="508" height="242" role="button" title="Werner_E_4-1767788890026.png" alt="Werner_E_4-1767788890026.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;That way you can use that function either with a scalar argument&amp;nbsp;z&lt;SUB&gt;tips&lt;/SUB&gt; or with a vector as its argument.&lt;/P&gt;
&lt;P&gt;But you should not use a range as this would be a misuse of a range for something its not intended for. Exception is when you make a plot. Here using a range is perfectly OK:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_0-1767790313826.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/133253i1781920F56E5A317/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Werner_E_0-1767790313826.png" alt="Werner_E_0-1767790313826.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;You may get the same plot if you use a vector instead, though.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ranges should be used in three occasions only:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;in plots&lt;/LI&gt;
&lt;LI&gt;for indexing the elements of a vector or matrix&lt;/LI&gt;
&lt;LI&gt;inside a program as part of a for-loop&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jan 2026 12:52:07 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Mean-Max-Min-functions-for-vectors/m-p/1050115#M220209</guid>
      <dc:creator>Werner_E</dc:creator>
      <dc:date>2026-01-07T12:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: Mean-Max- Min functions for vectors</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Mean-Max-Min-functions-for-vectors/m-p/1050117#M220210</link>
      <description>&lt;P&gt;Brilliant as always thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jan 2026 12:41:03 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Mean-Max-Min-functions-for-vectors/m-p/1050117#M220210</guid>
      <dc:creator>YA_10963798</dc:creator>
      <dc:date>2026-01-07T12:41:03Z</dc:date>
    </item>
  </channel>
</rss>

