<?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 Too many operators in Mathcad</title>
    <link>https://www.ptcusercommunity.com/t5/Mathcad/Too-many-operators/m-p/946977#M211545</link>
    <description>&lt;P&gt;I need to generate a function which has three values (Beta , alfa and distance )&lt;/P&gt;&lt;P&gt;when Beta values will be the mean operator for example when beta=0 the function will run in all alfa and distance values to find the solution&lt;/P&gt;&lt;P&gt;Then it goes to the second beta value=15 and do the same .....until it does for all 24 values of beta&amp;nbsp;&lt;/P&gt;&lt;P&gt;in my excel sheet I have 24 tables , I attached the excel and mathcad sheets&lt;/P&gt;&lt;P&gt;I tried to do it as follows but it didn't work ?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="YA_10963798_0-1714457705976.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/103398iA4F7176BF9348EBB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="YA_10963798_0-1714457705976.png" alt="YA_10963798_0-1714457705976.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-1714457876804.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/103399iBFA8F3A373DB0890/image-size/medium?v=v2&amp;amp;px=400" role="button" title="YA_10963798_1-1714457876804.png" alt="YA_10963798_1-1714457876804.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="YA_10963798_2-1714457931771.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/103400iCDBE9E4BA39459B2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="YA_10963798_2-1714457931771.png" alt="YA_10963798_2-1714457931771.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>Tue, 30 Apr 2024 06:23:15 GMT</pubDate>
    <dc:creator>YA_10963798</dc:creator>
    <dc:date>2024-04-30T06:23:15Z</dc:date>
    <item>
      <title>Too many operators</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Too-many-operators/m-p/946977#M211545</link>
      <description>&lt;P&gt;I need to generate a function which has three values (Beta , alfa and distance )&lt;/P&gt;&lt;P&gt;when Beta values will be the mean operator for example when beta=0 the function will run in all alfa and distance values to find the solution&lt;/P&gt;&lt;P&gt;Then it goes to the second beta value=15 and do the same .....until it does for all 24 values of beta&amp;nbsp;&lt;/P&gt;&lt;P&gt;in my excel sheet I have 24 tables , I attached the excel and mathcad sheets&lt;/P&gt;&lt;P&gt;I tried to do it as follows but it didn't work ?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="YA_10963798_0-1714457705976.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/103398iA4F7176BF9348EBB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="YA_10963798_0-1714457705976.png" alt="YA_10963798_0-1714457705976.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-1714457876804.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/103399iBFA8F3A373DB0890/image-size/medium?v=v2&amp;amp;px=400" role="button" title="YA_10963798_1-1714457876804.png" alt="YA_10963798_1-1714457876804.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="YA_10963798_2-1714457931771.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/103400iCDBE9E4BA39459B2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="YA_10963798_2-1714457931771.png" alt="YA_10963798_2-1714457931771.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>Tue, 30 Apr 2024 06:23:15 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Too-many-operators/m-p/946977#M211545</guid>
      <dc:creator>YA_10963798</dc:creator>
      <dc:date>2024-04-30T06:23:15Z</dc:date>
    </item>
    <item>
      <title>Re: Too many operators</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Too-many-operators/m-p/947035#M211547</link>
      <description>&lt;P&gt;1) "alpha" and "Distance" are both (2-dimensional) 9 x 9 matrices.&lt;/P&gt;
&lt;P&gt;1a) Accessing elements of such a matrix require the use of TWO indices (row and column). You are using just one index, so Prime can't possibly know which element you mean or if you mean a whole column or row.&lt;/P&gt;
&lt;P&gt;1b) "length( )" can only be used to get the number of elements in a (1-dimensional) n x 1 matrix = column vector. For 2-dimensional matrices you can use the functions "rows( )"&amp;nbsp; and "cols( )" to get the number of rows and columns.&lt;/P&gt;
&lt;P&gt;2) Prime does not support 3-dimensional structures so you can't use three indices like in&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_0-1714471802325.png" style="width: 62px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/103413i0F39A205A0E2165B/image-dimensions/62x51?v=v2" width="62" height="51" role="button" title="Werner_E_0-1714471802325.png" alt="Werner_E_0-1714471802325.png" /&gt;&lt;/span&gt;&lt;BR /&gt;If you really need a structure like a 9 x 24 x 9 "matrix", you could create nested matrices. Perhaps a 9 x 1 matrix (= column vector) which consists of 9 matrices with dimension 24 x 9. Or a 9 x 24 matrix where each element is a 9 x 1 vector. Depends on your needs.&lt;/P&gt;
&lt;P&gt;3) Loops in programs are created using ranges! If you write&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_1-1714472445587.png" style="width: 169px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/103414iFDFCC83C19B868D4/image-dimensions/169x58?v=v2" width="169" height="58" role="button" title="Werner_E_1-1714472445587.png" alt="Werner_E_1-1714472445587.png" /&gt;&lt;/span&gt;&amp;nbsp;then j takes only ONE value (in this case 24). If you want to run j from the first index (1 in your sheet) to the last (24 in case of Beta) you would have to write&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_3-1714472626452.png" style="width: 204px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/103416i79DE3F9E556B70DB/image-dimensions/204x51?v=v2" width="204" height="51" role="button" title="Werner_E_3-1714472626452.png" alt="Werner_E_3-1714472626452.png" /&gt;&lt;/span&gt;. Using "last" instead of "length" assures that the program also works OK if the system variable ORIGIN is set to something different than 1.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Not sure what exactly you are trying to create, but maybe this function can be of help:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_4-1714472750943.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/103417i2DB65D19ACCAD8D7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Werner_E_4-1714472750943.png" alt="Werner_E_4-1714472750943.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;It creates a 9x9 matrix for every of the 24 values in Beta and collect them in a 24 x 1 vector:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_5-1714472803032.png" style="width: 198px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/103418i9FB268F384F19DA0/image-dimensions/198x166?v=v2" width="198" height="166" role="button" title="Werner_E_5-1714472803032.png" alt="Werner_E_5-1714472803032.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Showing just the first two ...&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_6-1714472909667.png" style="width: 999px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/103419i208F6C070D56DC34/image-size/large?v=v2&amp;amp;px=999" role="button" title="Werner_E_6-1714472909667.png" alt="Werner_E_6-1714472909667.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Of course you can access individual elements the usual way, here the matrix you get for Beta with index 10:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_7-1714472974550.png" style="width: 676px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/103420i7C38348D2F758E76/image-dimensions/676x185?v=v2" width="676" height="185" role="button" title="Werner_E_7-1714472974550.png" alt="Werner_E_7-1714472974550.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Apr 2024 10:31:58 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Too-many-operators/m-p/947035#M211547</guid>
      <dc:creator>Werner_E</dc:creator>
      <dc:date>2024-04-30T10:31:58Z</dc:date>
    </item>
    <item>
      <title>Re: Too many operators</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Too-many-operators/m-p/947812#M211622</link>
      <description>&lt;P&gt;Hi Werner,&lt;/P&gt;&lt;P&gt;I hope you are doing well.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to take this sheet a step further.&amp;nbsp; Now after we get 24 matrics . I need to find the minimum value in each column in each matrix.&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example: matrix Linters 23 will have a matrix of the minimum values of each colunm . I tried to do it as follows but couldn't get what i want since it gives me the minimum in the whole matrix . I need&amp;nbsp; the minimum in each column in each matrix.&lt;/P&gt;&lt;P&gt;Like in excel you select the colunum and find the minimum in that column. Sorry for bothering you a lot. But I genuinely appreciate your help&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="YA_10963798_0-1714921984182.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/103646iEC847C74FA3CC651/image-size/medium?v=v2&amp;amp;px=400" role="button" title="YA_10963798_0-1714921984182.png" alt="YA_10963798_0-1714921984182.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>Sun, 05 May 2024 15:19:37 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Too-many-operators/m-p/947812#M211622</guid>
      <dc:creator>YA_10963798</dc:creator>
      <dc:date>2024-05-05T15:19:37Z</dc:date>
    </item>
    <item>
      <title>Re: Too many operators</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Too-many-operators/m-p/948123#M211640</link>
      <description>&lt;P&gt;See here: &lt;A href="https://community.ptc.com/t5/Mathcad/minimum-value-in-each-column-in-several-matrices/m-p/948121/highlight/true#M211639" target="_blank"&gt;https://community.ptc.com/t5/Mathcad/minimum-value-in-each-column-in-several-matrices/m-p/948121/highlight/true#M211639&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2024 11:35:06 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Too-many-operators/m-p/948123#M211640</guid>
      <dc:creator>Werner_E</dc:creator>
      <dc:date>2024-05-07T11:35:06Z</dc:date>
    </item>
    <item>
      <title>Re: Too many operators</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Too-many-operators/m-p/953029#M212170</link>
      <description>&lt;P&gt;Dear Werner&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you still remember this issue , I was reviewing again and I discovered that the operator (i) is not working it works only for l-interest 1. Then&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;it repeats itself . Why do you think so?&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_0-1716996140713.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/105361iB2A9C55A7194D890/image-size/medium?v=v2&amp;amp;px=400" role="button" title="YA_10963798_0-1716996140713.png" alt="YA_10963798_0-1716996140713.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2024 15:23:47 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Too-many-operators/m-p/953029#M212170</guid>
      <dc:creator>YA_10963798</dc:creator>
      <dc:date>2024-05-29T15:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: Too many operators</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Too-many-operators/m-p/953075#M212175</link>
      <description>&lt;P&gt;No, I don't remember.&lt;/P&gt;
&lt;P&gt;What are the results which are wrong in your opinion and which results do you expect?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I notice that the values in your vector Beta are 0, 15, 30, etc. These ARE NOT angles in degree. If you use them later as angles, they are assumed to be radian!! &lt;BR /&gt;And because Beta contains these large values, the condition&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_2-1717004589418.png" style="width: 175px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/105378i42552130F160B50C/image-dimensions/175x51?v=v2" width="175" height="51" role="button" title="Werner_E_2-1717004589418.png" alt="Werner_E_2-1717004589418.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;would be true for all i&amp;gt;0.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Prime can deal with units and so you should use "deg" if you mean degree.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Maybe this little change solves your problem:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_0-1717004375790.png" style="width: 773px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/105375i4A089CEC66DD1566/image-dimensions/773x360?v=v2" width="773" height="360" role="button" title="Werner_E_0-1717004375790.png" alt="Werner_E_0-1717004375790.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The same result can be achieved with&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_3-1717004806293.png" style="width: 229px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/105380i70AFEBA0287DE7E4/image-dimensions/229x140?v=v2" width="229" height="140" role="button" title="Werner_E_3-1717004806293.png" alt="Werner_E_3-1717004806293.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;which may be a little bit more efficient because we omitted the unnecxessary assigment O &amp;lt;... 0 and B1 is assigned just once and not for every loop value j.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then we get&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_1-1717004445561.png" style="width: 669px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/105376i49EAF5CAA553EDCB/image-dimensions/669x353?v=v2" width="669" height="353" role="button" title="Werner_E_1-1717004445561.png" alt="Werner_E_1-1717004445561.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, 29 May 2024 17:48:19 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Too-many-operators/m-p/953075#M212175</guid>
      <dc:creator>Werner_E</dc:creator>
      <dc:date>2024-05-29T17:48:19Z</dc:date>
    </item>
    <item>
      <title>Re: Too many operators</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Too-many-operators/m-p/953158#M212179</link>
      <description>&lt;P&gt;Werner , I hope one day I meet and give you a gift . Your answers always so detailed and understandable . That's really impressive. Thank you so much.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2024 07:30:55 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Too-many-operators/m-p/953158#M212179</guid>
      <dc:creator>YA_10963798</dc:creator>
      <dc:date>2024-05-30T07:30:55Z</dc:date>
    </item>
  </channel>
</rss>

