<?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: Function to Calculate x-distance between series of consecutive points on a circle in Mathcad</title>
    <link>https://www.ptcusercommunity.com/t5/Mathcad/Function-to-Calculate-x-distance-between-series-of-consecutive/m-p/875745#M206729</link>
    <description>&lt;P&gt;Thanks, in the meantime I already guessed what you had in mind and provided a solution. See below.&lt;/P&gt;</description>
    <pubDate>Tue, 16 May 2023 19:37:15 GMT</pubDate>
    <dc:creator>Werner_E</dc:creator>
    <dc:date>2023-05-16T19:37:15Z</dc:date>
    <item>
      <title>Function to Calculate x-distance between series of consecutive points on a circle</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Function-to-Calculate-x-distance-between-series-of-consecutive/m-p/875705#M206718</link>
      <description>&lt;P&gt;I am developing a template which calculates the y distance between points spaced evenly on a circle. Think bar reinforcement in a circular column. The user will input the diameter of the column, d, and number of bars, N_bars, spaced evenly. I'm able to define the delta_y between points, but I'm struggling to write a program that outputs the data I want in a single array. I've attached my file for reference. I can't get a 'for' loop to work, but maybe there's a more efficient/logical way. Thank you all for the help!&lt;/P&gt;&lt;P&gt;&lt;FONT color="headerbuttontrackingcode"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 May 2023 15:57:08 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Function-to-Calculate-x-distance-between-series-of-consecutive/m-p/875705#M206718</guid>
      <dc:creator>CP_10630888</dc:creator>
      <dc:date>2023-05-16T15:57:08Z</dc:date>
    </item>
    <item>
      <title>Re: Function to Calculate x-distance between series of consecutive points on a circle</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Function-to-Calculate-x-distance-between-series-of-consecutive/m-p/875724#M206721</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;your&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MartinHanak_0-1684258573298.png" style="width: 200px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/82081iC82E97170FF7C936/image-size/small?v=v2&amp;amp;px=200" role="button" title="MartinHanak_0-1684258573298.png" alt="MartinHanak_0-1684258573298.png" /&gt;&lt;/span&gt;&amp;nbsp;in&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MartinHanak_1-1684258600465.png" style="width: 200px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/82082i181479C9F238D34C/image-size/small?v=v2&amp;amp;px=200" role="button" title="MartinHanak_1-1684258600465.png" alt="MartinHanak_1-1684258600465.png" /&gt;&lt;/span&gt;&amp;nbsp;is&amp;nbsp;&lt;STRONG&gt;x&lt;/STRONG&gt; with&amp;nbsp;&lt;U&gt;subscript&lt;/U&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;i.&lt;/P&gt;
&lt;P&gt;Replace the subscript with index.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MartinHanak_2-1684258844092.png" style="width: 999px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/82083i85DAE982BF6699D0/image-size/large?v=v2&amp;amp;px=999" role="button" title="MartinHanak_2-1684258844092.png" alt="MartinHanak_2-1684258844092.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Result follows&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MartinHanak_3-1684258887797.png" style="width: 999px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/82084iF10D39D7A034A80B/image-size/large?v=v2&amp;amp;px=999" role="button" title="MartinHanak_3-1684258887797.png" alt="MartinHanak_3-1684258887797.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 May 2023 17:42:17 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Function-to-Calculate-x-distance-between-series-of-consecutive/m-p/875724#M206721</guid>
      <dc:creator>MartinHanak</dc:creator>
      <dc:date>2023-05-16T17:42:17Z</dc:date>
    </item>
    <item>
      <title>Re: Function to Calculate x-distance between series of consecutive points on a circle</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Function-to-Calculate-x-distance-between-series-of-consecutive/m-p/875726#M206722</link>
      <description>&lt;P&gt;As Martin already said you were using the wrong type of index (literal index instead of vector/matrix index) which caused your program to fail.&lt;/P&gt;
&lt;P&gt;But I guess that the results is not what you expected. After all the Delta difference between the y-values of your bars is not equal as your program seems to assume.&lt;/P&gt;
&lt;P&gt;Can you state exactly which vector you expect as a result for N=8 and which one for N=10 or N=6 ?&lt;/P&gt;
&lt;P&gt;As N should be even, we have symmetry on x- and y-direction, so one quarter circle should be all that's needed?&lt;/P&gt;
&lt;P&gt;That means that for N=8 you would only have two values, 3.7123 in and 1.5377 in. Is this correct?&lt;/P&gt;
&lt;P&gt;For N=6 we would have just one value and for N=10 there again would be just two. ??&lt;/P&gt;
&lt;P&gt;Or for all the above one additional value if you want to see the zero in he vector as well.&lt;/P&gt;
&lt;P&gt;Would something like the function shown below be what you are looking for?&lt;/P&gt;
&lt;P&gt;EDIT: File removed as it did not provide the desired solution&lt;BR /&gt;See my answer below&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 May 2023 20:52:11 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Function-to-Calculate-x-distance-between-series-of-consecutive/m-p/875726#M206722</guid>
      <dc:creator>Werner_E</dc:creator>
      <dc:date>2023-05-16T20:52:11Z</dc:date>
    </item>
    <item>
      <title>Re: Function to Calculate x-distance between series of consecutive points on a circle</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Function-to-Calculate-x-distance-between-series-of-consecutive/m-p/875729#M206723</link>
      <description>&lt;P&gt;The result is also dependent on the user input diameter, d. For this example, let's assume 18 inches.&amp;nbsp;N can never be less than 8. I agree that the values are mirrored across the axis, but if it's possible to define the limits of the program to evaluate a half circle then that would be ideal.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for N=8, I expect the vector to return [ 1.538 , 3.712 , 3.712 , 1.538 ]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for N=10 → [&amp;nbsp; 1.003 , 2.625 , 3.248 , 2.625 , 1.003 ]&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for N=12 → [ .703 , 1.922 , 2.625 , 2.625 , 1.922 , .703 ]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 May 2023 18:03:54 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Function-to-Calculate-x-distance-between-series-of-consecutive/m-p/875729#M206723</guid>
      <dc:creator>CP_10630888</dc:creator>
      <dc:date>2023-05-16T18:03:54Z</dc:date>
    </item>
    <item>
      <title>Re: Function to Calculate x-distance between series of consecutive points on a circle</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Function-to-Calculate-x-distance-between-series-of-consecutive/m-p/875730#M206724</link>
      <description>&lt;P&gt;Thank you for spotting that definition error. I'm still learning Mathcad and didn't see that in the example material I'm using online. This resolves the definition error, but I need to revise the x_i definition to return the values I need. Per my response to Werner_E,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;for N=8, I expect the vector to return [ 1.538 , 3.712 , 3.712 , 1.538 ]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for N=10 → [&amp;nbsp; 1.003 , 2.625 , 3.248 , 2.625 , 1.003 ]&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for N=12 → [ .703 , 1.922 , 2.625 , 2.625 , 1.922 , .703 ]&lt;/P&gt;</description>
      <pubDate>Tue, 16 May 2023 18:16:49 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Function-to-Calculate-x-distance-between-series-of-consecutive/m-p/875730#M206724</guid>
      <dc:creator>CP_10630888</dc:creator>
      <dc:date>2023-05-16T18:16:49Z</dc:date>
    </item>
    <item>
      <title>Re: Function to Calculate x-distance between series of consecutive points on a circle</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Function-to-Calculate-x-distance-between-series-of-consecutive/m-p/875737#M206726</link>
      <description>&lt;P&gt;The diameter d is already used for the calculation of R, the radius if the circle the center of the bars are lying on, isn't it?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My function was faulty, now I get the desired values for 8 and 12, but where do the values for N=10 stem from?&lt;/P&gt;
&lt;P&gt;Can you provide a sketch.&lt;/P&gt;
&lt;P&gt;My function calculates the lengths shown in the pic below, according to what you showed in your Autocad drawing. Of course I assumed that the first bar would always be on the x-axis at (R / 0).&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_0-1684264123498.png" style="width: 564px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/82087i106012514B4194A4/image-dimensions/564x616?v=v2" width="564" height="616" role="button" title="Werner_E_0-1684264123498.png" alt="Werner_E_0-1684264123498.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 May 2023 19:15:49 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Function-to-Calculate-x-distance-between-series-of-consecutive/m-p/875737#M206726</guid>
      <dc:creator>Werner_E</dc:creator>
      <dc:date>2023-05-16T19:15:49Z</dc:date>
    </item>
    <item>
      <title>Re: Function to Calculate x-distance between series of consecutive points on a circle</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Function-to-Calculate-x-distance-between-series-of-consecutive/m-p/875740#M206727</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CP_10630888_0-1684264552943.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/82088i69B224A81B130DCE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CP_10630888_0-1684264552943.png" alt="CP_10630888_0-1684264552943.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Your function is calculating correctly. Rotate it 90 degrees so the single bar section is located at the top and you get what I calculated.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 May 2023 19:19:30 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Function-to-Calculate-x-distance-between-series-of-consecutive/m-p/875740#M206727</guid>
      <dc:creator>CP_10630888</dc:creator>
      <dc:date>2023-05-16T19:19:30Z</dc:date>
    </item>
    <item>
      <title>Re: Function to Calculate x-distance between series of consecutive points on a circle</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Function-to-Calculate-x-distance-between-series-of-consecutive/m-p/875743#M206728</link>
      <description>&lt;P&gt;In case you had in mind that the first bar should always be at (0/R), here is the appropriate function.&lt;BR /&gt;Guess the 3.248 were a typo and should read 3.245?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_2-1684265367685.png" style="width: 798px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/82090i0E876C2CCDB2B2C1/image-dimensions/798x863?v=v2" width="798" height="863" role="button" title="Werner_E_2-1684265367685.png" alt="Werner_E_2-1684265367685.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, 16 May 2023 19:30:00 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Function-to-Calculate-x-distance-between-series-of-consecutive/m-p/875743#M206728</guid>
      <dc:creator>Werner_E</dc:creator>
      <dc:date>2023-05-16T19:30:00Z</dc:date>
    </item>
    <item>
      <title>Re: Function to Calculate x-distance between series of consecutive points on a circle</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Function-to-Calculate-x-distance-between-series-of-consecutive/m-p/875745#M206729</link>
      <description>&lt;P&gt;Thanks, in the meantime I already guessed what you had in mind and provided a solution. See below.&lt;/P&gt;</description>
      <pubDate>Tue, 16 May 2023 19:37:15 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Function-to-Calculate-x-distance-between-series-of-consecutive/m-p/875745#M206729</guid>
      <dc:creator>Werner_E</dc:creator>
      <dc:date>2023-05-16T19:37:15Z</dc:date>
    </item>
  </channel>
</rss>

