<?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: Implementation of Lagrange Interpolation in Mathcad</title>
    <link>https://community.ptc.com/t5/Mathcad/Implementation-of-Lagrange-Interpolation/m-p/715428#M194617</link>
    <description>&lt;P&gt;Thank you guys! I just needed this because I am new to Mathcad programming and I was just unsure how some of the syntax works for the product function and got completely stuck! thanks for helping me get started!&lt;/P&gt;</description>
    <pubDate>Thu, 25 Feb 2021 16:58:11 GMT</pubDate>
    <dc:creator>JA_9803374</dc:creator>
    <dc:date>2021-02-25T16:58:11Z</dc:date>
    <item>
      <title>Implementation of Lagrange Interpolation</title>
      <link>https://community.ptc.com/t5/Mathcad/Implementation-of-Lagrange-Interpolation/m-p/715250#M194593</link>
      <description>&lt;P&gt;Hello, I am trying to implement a program where I can find out the "y" value for a given "x" value using Lagrange Interpolation with data points (x,y) like the ones shown below:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JA_9803374_1-1614219290768.png" style="width: 400px;"&gt;&lt;img src="https://community.ptc.com/t5/image/serverpage/image-id/38063i7BDA92CB2BF9D948/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JA_9803374_1-1614219290768.png" alt="JA_9803374_1-1614219290768.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="JA_9803374_2-1614219299785.png" style="width: 400px;"&gt;&lt;img src="https://community.ptc.com/t5/image/serverpage/image-id/38064i47DFFF60C5EA848A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JA_9803374_2-1614219299785.png" alt="JA_9803374_2-1614219299785.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JA_9803374_3-1614219316454.png" style="width: 400px;"&gt;&lt;img src="https://community.ptc.com/t5/image/serverpage/image-id/38065iE4E79176BA20381D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JA_9803374_3-1614219316454.png" alt="JA_9803374_3-1614219316454.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The program should use these expressions:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JA_9803374_5-1614219459897.png" style="width: 400px;"&gt;&lt;img src="https://community.ptc.com/t5/image/serverpage/image-id/38067iA48441562830F0E6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JA_9803374_5-1614219459897.png" alt="JA_9803374_5-1614219459897.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;</description>
      <pubDate>Thu, 25 Feb 2021 02:18:18 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Mathcad/Implementation-of-Lagrange-Interpolation/m-p/715250#M194593</guid>
      <dc:creator>JA_9803374</dc:creator>
      <dc:date>2021-02-25T02:18:18Z</dc:date>
    </item>
    <item>
      <title>Re: Implementation of Lagrange Interpolation</title>
      <link>https://community.ptc.com/t5/Mathcad/Implementation-of-Lagrange-Interpolation/m-p/715288#M194596</link>
      <description>&lt;P&gt;While interesting what have you got so far? Couldn't see any attached mcad sheet!&lt;/P&gt;
&lt;P&gt;Where are the stumbling blocks?&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2021 07:31:16 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Mathcad/Implementation-of-Lagrange-Interpolation/m-p/715288#M194596</guid>
      <dc:creator>JXBWk</dc:creator>
      <dc:date>2021-02-25T07:31:16Z</dc:date>
    </item>
    <item>
      <title>Re: Implementation of Lagrange Interpolation</title>
      <link>https://community.ptc.com/t5/Mathcad/Implementation-of-Lagrange-Interpolation/m-p/715337#M194600</link>
      <description>&lt;P&gt;As this is obviously homework you should show your attempts for a solution. This also would help us to see where you have problems with the handling of Prime so we can help.&lt;/P&gt;
&lt;P&gt;If you already derived a solution you may check your function by creating a plot and also check against the built-in "polyfit" function:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_1-1614251899670.png" style="width: 675px;"&gt;&lt;img src="https://community.ptc.com/t5/image/serverpage/image-id/38081iEA7913467E210BC6/image-dimensions/675x579?v=v2" width="675" height="579" role="button" title="Werner_E_1-1614251899670.png" alt="Werner_E_1-1614251899670.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2021 11:20:10 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Mathcad/Implementation-of-Lagrange-Interpolation/m-p/715337#M194600</guid>
      <dc:creator>Werner_E</dc:creator>
      <dc:date>2021-02-25T11:20:10Z</dc:date>
    </item>
    <item>
      <title>Re: Implementation of Lagrange Interpolation</title>
      <link>https://community.ptc.com/t5/Mathcad/Implementation-of-Lagrange-Interpolation/m-p/715365#M194606</link>
      <description>&lt;P&gt;Assuming Werner's right, and this IS homework, you need to show an honest effort (AKA, post your worksheet!)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That said, these were developed (as LaGrange polynomial interpolation functions) using Prime 4.0 Express.&amp;nbsp; Worksheet will be posted upon demonstration of honest effort.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Fred_Kohlhepp_0-1614260239477.png" style="width: 657px;"&gt;&lt;img src="https://community.ptc.com/t5/image/serverpage/image-id/38087i298D53CA8F81F318/image-dimensions/657x220?v=v2" width="657" height="220" role="button" title="Fred_Kohlhepp_0-1614260239477.png" alt="Fred_Kohlhepp_0-1614260239477.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2021 13:37:42 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Mathcad/Implementation-of-Lagrange-Interpolation/m-p/715365#M194606</guid>
      <dc:creator>Fred_Kohlhepp</dc:creator>
      <dc:date>2021-02-25T13:37:42Z</dc:date>
    </item>
    <item>
      <title>Re: Implementation of Lagrange Interpolation</title>
      <link>https://community.ptc.com/t5/Mathcad/Implementation-of-Lagrange-Interpolation/m-p/715367#M194607</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.ptc.com/t5/user/viewprofilepage/user-id/9278"&gt;@Fred_Kohlhepp&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Assuming Werner's right, and this IS homework,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The poster himself labelled his question with "Math Homework" &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2021 13:43:18 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Mathcad/Implementation-of-Lagrange-Interpolation/m-p/715367#M194607</guid>
      <dc:creator>Werner_E</dc:creator>
      <dc:date>2021-02-25T13:43:18Z</dc:date>
    </item>
    <item>
      <title>Re: Implementation of Lagrange Interpolation</title>
      <link>https://community.ptc.com/t5/Mathcad/Implementation-of-Lagrange-Interpolation/m-p/715368#M194608</link>
      <description>&lt;P&gt;Thereby demonstrating (once again) that you are much more observant than I!&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But I still enjoyed the challenge.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2021 13:45:26 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Mathcad/Implementation-of-Lagrange-Interpolation/m-p/715368#M194608</guid>
      <dc:creator>Fred_Kohlhepp</dc:creator>
      <dc:date>2021-02-25T13:45:26Z</dc:date>
    </item>
    <item>
      <title>Re: Implementation of Lagrange Interpolation</title>
      <link>https://community.ptc.com/t5/Mathcad/Implementation-of-Lagrange-Interpolation/m-p/715380#M194614</link>
      <description>&lt;P&gt;This was my original attempt at it. However I realized two things, Mathcad won't simplify the polynomial basis expressions. Secondly, this method is really inefficient as the Lagrange polynomial degree increases. So I stopped trying this method. I figured I could use two loops and the actual expression. However I'm having trouble implementing that.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2021 14:37:25 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Mathcad/Implementation-of-Lagrange-Interpolation/m-p/715380#M194614</guid>
      <dc:creator>JA_9803374</dc:creator>
      <dc:date>2021-02-25T14:37:25Z</dc:date>
    </item>
    <item>
      <title>Re: Implementation of Lagrange Interpolation</title>
      <link>https://community.ptc.com/t5/Mathcad/Implementation-of-Lagrange-Interpolation/m-p/715415#M194615</link>
      <description>&lt;P&gt;It doesn't look like you've put too much thought and effort into this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, as promised!&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2021 16:28:18 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Mathcad/Implementation-of-Lagrange-Interpolation/m-p/715415#M194615</guid>
      <dc:creator>Fred_Kohlhepp</dc:creator>
      <dc:date>2021-02-25T16:28:18Z</dc:date>
    </item>
    <item>
      <title>Re: Implementation of Lagrange Interpolation</title>
      <link>https://community.ptc.com/t5/Mathcad/Implementation-of-Lagrange-Interpolation/m-p/715422#M194616</link>
      <description>&lt;P&gt;I agree with you and your version looks so familiar compared to what I had prepared &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_0-1614271302046.png" style="width: 400px;"&gt;&lt;img src="https://community.ptc.com/t5/image/serverpage/image-id/38093i8DF9E250DC031B17/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Werner_E_0-1614271302046.png" alt="Werner_E_0-1614271302046.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Splitting may make it better readable&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_0-1614271646642.png" style="width: 400px;"&gt;&lt;img src="https://community.ptc.com/t5/image/serverpage/image-id/38094iCA1F5F5A0D028355/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Werner_E_0-1614271646642.png" alt="Werner_E_0-1614271646642.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.ptc.com/t5/user/viewprofilepage/user-id/391914"&gt;@JA_9803374&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Keep in mind that Freds sheet assumes the default setting for ORIGIN (which is 0). In your sheet you changed ORIGIN to be 1 so you have to slightly modify Freds approach to take that into account.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2021 16:48:38 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Mathcad/Implementation-of-Lagrange-Interpolation/m-p/715422#M194616</guid>
      <dc:creator>Werner_E</dc:creator>
      <dc:date>2021-02-25T16:48:38Z</dc:date>
    </item>
    <item>
      <title>Re: Implementation of Lagrange Interpolation</title>
      <link>https://community.ptc.com/t5/Mathcad/Implementation-of-Lagrange-Interpolation/m-p/715428#M194617</link>
      <description>&lt;P&gt;Thank you guys! I just needed this because I am new to Mathcad programming and I was just unsure how some of the syntax works for the product function and got completely stuck! thanks for helping me get started!&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2021 16:58:11 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Mathcad/Implementation-of-Lagrange-Interpolation/m-p/715428#M194617</guid>
      <dc:creator>JA_9803374</dc:creator>
      <dc:date>2021-02-25T16:58:11Z</dc:date>
    </item>
  </channel>
</rss>

