<?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 Need help with pwrfit function in Mathcad</title>
    <link>https://community.ptc.com/t5/Mathcad/Need-help-with-pwrfit-function/m-p/907682#M209056</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;I am trying to solve the following problem. I am new to pwrfit function. This is the first time trying to solve such a problem.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="engr_mkhalid_0-1698054667440.png" style="width: 400px;"&gt;&lt;img src="https://community.ptc.com/t5/image/serverpage/image-id/91803iEA9E3FD3349A745C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="engr_mkhalid_0-1698054667440.png" alt="engr_mkhalid_0-1698054667440.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="engr_mkhalid_1-1698054696274.png" style="width: 400px;"&gt;&lt;img src="https://community.ptc.com/t5/image/serverpage/image-id/91804iF9770DA976676093/image-size/medium?v=v2&amp;amp;px=400" role="button" title="engr_mkhalid_1-1698054696274.png" alt="engr_mkhalid_1-1698054696274.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1. Select a power fit in Mathcad to fit this data and model the metabolism rate as a function of the mass of the animal. Notice that pwrfit(vx, vy, vg) returns a vector containing the coefficients for a power curve of the form y(x)= axb+c that best approximates the data in vx and vy using guess values in vg.&lt;BR /&gt;2. Determine the R2 value for this fit.&lt;BR /&gt;3. Considering the fit is good, use the equation to predict the metabolism rate of a 500-kg manatee.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="headerbuttontrackingcode"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="headerbuttontrackingcode"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 23 Oct 2023 09:53:34 GMT</pubDate>
    <dc:creator>engr_mkhalid</dc:creator>
    <dc:date>2023-10-23T09:53:34Z</dc:date>
    <item>
      <title>Need help with pwrfit function</title>
      <link>https://community.ptc.com/t5/Mathcad/Need-help-with-pwrfit-function/m-p/907682#M209056</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;I am trying to solve the following problem. I am new to pwrfit function. This is the first time trying to solve such a problem.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="engr_mkhalid_0-1698054667440.png" style="width: 400px;"&gt;&lt;img src="https://community.ptc.com/t5/image/serverpage/image-id/91803iEA9E3FD3349A745C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="engr_mkhalid_0-1698054667440.png" alt="engr_mkhalid_0-1698054667440.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="engr_mkhalid_1-1698054696274.png" style="width: 400px;"&gt;&lt;img src="https://community.ptc.com/t5/image/serverpage/image-id/91804iF9770DA976676093/image-size/medium?v=v2&amp;amp;px=400" role="button" title="engr_mkhalid_1-1698054696274.png" alt="engr_mkhalid_1-1698054696274.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1. Select a power fit in Mathcad to fit this data and model the metabolism rate as a function of the mass of the animal. Notice that pwrfit(vx, vy, vg) returns a vector containing the coefficients for a power curve of the form y(x)= axb+c that best approximates the data in vx and vy using guess values in vg.&lt;BR /&gt;2. Determine the R2 value for this fit.&lt;BR /&gt;3. Considering the fit is good, use the equation to predict the metabolism rate of a 500-kg manatee.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="headerbuttontrackingcode"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="headerbuttontrackingcode"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Oct 2023 09:53:34 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Mathcad/Need-help-with-pwrfit-function/m-p/907682#M209056</guid>
      <dc:creator>engr_mkhalid</dc:creator>
      <dc:date>2023-10-23T09:53:34Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with pwrfit function</title>
      <link>https://community.ptc.com/t5/Mathcad/Need-help-with-pwrfit-function/m-p/907690#M209057</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;It is not necessary to reverse the vectors but it is more natural with left hand point being left hand point on the graph.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 674px;"&gt;&lt;img src="https://community.ptc.com/t5/image/serverpage/image-id/91806i5ACDB6401C78AD48/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Oct 2023 10:33:29 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Mathcad/Need-help-with-pwrfit-function/m-p/907690#M209057</guid>
      <dc:creator>terryhendicott</dc:creator>
      <dc:date>2023-10-23T10:33:29Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with pwrfit function</title>
      <link>https://community.ptc.com/t5/Mathcad/Need-help-with-pwrfit-function/m-p/907699#M209058</link>
      <description>&lt;P&gt;Thank you soo much for explanation!&lt;/P&gt;</description>
      <pubDate>Mon, 23 Oct 2023 11:05:45 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Mathcad/Need-help-with-pwrfit-function/m-p/907699#M209058</guid>
      <dc:creator>engr_mkhalid</dc:creator>
      <dc:date>2023-10-23T11:05:45Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with pwrfit function</title>
      <link>https://community.ptc.com/t5/Mathcad/Need-help-with-pwrfit-function/m-p/907784#M209064</link>
      <description>&lt;P&gt;The first error in your screenshot (you should always attach the Prime sheet as well if ever possible) is because you defined vx and vy as row vectors, but pwrfit only accepts column vectors. You can see in Terry sheet that the transpose operator does the trick.&lt;BR /&gt;In your approach the variable a would be a 3x1 vector, containing the best fitting values for the function arguments a, b and c. Its better to assign the result of pwrfit to an appropriate vector right ahead as you can see in Terrys sheet.&lt;/P&gt;
&lt;P&gt;You then did not try to use the results of pwrfit in any way??&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may also use "genfit" to try a fit with any user defined function. See here two examples compared to the result of pwrfit&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_2-1698074282757.png" style="width: 999px;"&gt;&lt;img src="https://community.ptc.com/t5/image/serverpage/image-id/91844i205745F4B24A406B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Werner_E_2-1698074282757.png" alt="Werner_E_2-1698074282757.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;At the end of your screenshot - did you try to calculate something like this?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_1-1698073244829.png" style="width: 291px;"&gt;&lt;img src="https://community.ptc.com/t5/image/serverpage/image-id/91842iA4B65C1DF275F62F/image-dimensions/291x315?v=v2" width="291" height="315" role="button" title="Werner_E_1-1698073244829.png" alt="Werner_E_1-1698073244829.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here some plots comparing the three regressions&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_3-1698074394390.png" style="width: 684px;"&gt;&lt;img src="https://community.ptc.com/t5/image/serverpage/image-id/91845iE554DE710456F371/image-dimensions/684x388?v=v2" width="684" height="388" role="button" title="Werner_E_3-1698074394390.png" alt="Werner_E_3-1698074394390.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Oct 2023 15:21:49 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Mathcad/Need-help-with-pwrfit-function/m-p/907784#M209064</guid>
      <dc:creator>Werner_E</dc:creator>
      <dc:date>2023-10-23T15:21:49Z</dc:date>
    </item>
  </channel>
</rss>

