<?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: y=A/x+B Formula fitting in Mathcad</title>
    <link>https://www.ptcusercommunity.com/t5/Mathcad/y-A-x-B-Formula-fitting/m-p/873726#M206581</link>
    <description>&lt;P&gt;If you have a full (paid) version of Mathcad Prime, there is a built-in function:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Fred_Kohlhepp_0-1683287966813.png" style="width: 236px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/81494i872ACD58B6390779/image-dimensions/236x179?v=v2" width="236" height="179" role="button" title="Fred_Kohlhepp_0-1683287966813.png" alt="Fred_Kohlhepp_0-1683287966813.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;For those of us muddling along with the free Express version, you can easily do least squares fits of any order polynomial.&amp;nbsp; Two Prime 4.0 files attached.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 05 May 2023 12:04:46 GMT</pubDate>
    <dc:creator>Fred_Kohlhepp</dc:creator>
    <dc:date>2023-05-05T12:04:46Z</dc:date>
    <item>
      <title>y=A/x+B Formula fitting</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/y-A-x-B-Formula-fitting/m-p/873693#M206578</link>
      <description>Hello everyone, Here I need a help in formula fitting. x=[0.2;0.3;0.4;0.5;0.6;0.7;0.8;0.9;1.0] y=[0.25;0.51;0.78;1.15;1.5;1.87;2.35;2.85;3.4] I want to fit formula y=A/x+B&amp;nbsp; , how can I calculate the paramaters of A and B using Mathcad. Thank you&amp;nbsp;</description>
      <pubDate>Fri, 05 May 2023 09:46:57 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/y-A-x-B-Formula-fitting/m-p/873693#M206578</guid>
      <dc:creator>Aary</dc:creator>
      <dc:date>2023-05-05T09:46:57Z</dc:date>
    </item>
    <item>
      <title>Re: y=A/x+B Formula fitting</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/y-A-x-B-Formula-fitting/m-p/873708#M206579</link>
      <description>&lt;P&gt;You may either set up a solve block with "minerr" , minimizing the sum of squared errors, or, more convenient, use the "genfit" function. Look the latter up in he help.&lt;/P&gt;
&lt;P&gt;If you need more help, come back here and don't forget to attach your worksheet with the data.&lt;BR /&gt;In case you are using Prime, you should also mention which version you are using.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;P.S.: I don't think that the function type you have in mind would result in a suitable fit&lt;/P&gt;
&lt;P&gt;Rather use y=A/(x+B) or even better y=A/(x+B)+C&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2023 11:39:20 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/y-A-x-B-Formula-fitting/m-p/873708#M206579</guid>
      <dc:creator>Werner_E</dc:creator>
      <dc:date>2023-05-05T11:39:20Z</dc:date>
    </item>
    <item>
      <title>Re: y=A/x+B Formula fitting</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/y-A-x-B-Formula-fitting/m-p/873726#M206581</link>
      <description>&lt;P&gt;If you have a full (paid) version of Mathcad Prime, there is a built-in function:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Fred_Kohlhepp_0-1683287966813.png" style="width: 236px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/81494i872ACD58B6390779/image-dimensions/236x179?v=v2" width="236" height="179" role="button" title="Fred_Kohlhepp_0-1683287966813.png" alt="Fred_Kohlhepp_0-1683287966813.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;For those of us muddling along with the free Express version, you can easily do least squares fits of any order polynomial.&amp;nbsp; Two Prime 4.0 files attached.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2023 12:04:46 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/y-A-x-B-Formula-fitting/m-p/873726#M206581</guid>
      <dc:creator>Fred_Kohlhepp</dc:creator>
      <dc:date>2023-05-05T12:04:46Z</dc:date>
    </item>
    <item>
      <title>Re: y=A/x+B Formula fitting</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/y-A-x-B-Formula-fitting/m-p/873741#M206582</link>
      <description>&lt;P&gt;So you think he wanted to to ask for a linear regression and it should read y=A*x+B and he just accidentally wrote y=A/x+B ?&lt;/P&gt;
&lt;P&gt;Possible. I thought he would like to fit a hyperbola and as I already indicated I think a hyperbola would at least need some sort of horizontal displacement (B) and better also some vertical displacement (C) - and of course scaling (A).&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_0-1683289842028.png" style="width: 604px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/81498iC3A52D08EB897774/image-dimensions/604x476?v=v2" width="604" height="476" role="button" title="Werner_E_0-1683289842028.png" alt="Werner_E_0-1683289842028.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But a polynomial fit of order 2, a parabola, seems to do a good job as well&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_1-1683289985715.png" style="width: 619px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/81501i61F39954EDA14C80/image-dimensions/619x339?v=v2" width="619" height="339" role="button" title="Werner_E_1-1683289985715.png" alt="Werner_E_1-1683289985715.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Comparing the sum of squared errors we see that the hyperbola offers just a very slightly better fit&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_2-1683290462347.png" style="width: 267px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/81504iBBAD6F634A0D11E2/image-dimensions/267x106?v=v2" width="267" height="106" role="button" title="Werner_E_2-1683290462347.png" alt="Werner_E_2-1683290462347.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Attached sheet uses the y-values provided by Fred and is in P9 format&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2023 12:49:35 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/y-A-x-B-Formula-fitting/m-p/873741#M206582</guid>
      <dc:creator>Werner_E</dc:creator>
      <dc:date>2023-05-05T12:49:35Z</dc:date>
    </item>
    <item>
      <title>Re: y=A/x+B Formula fitting</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/y-A-x-B-Formula-fitting/m-p/873813#M206586</link>
      <description>&lt;P&gt;Sorry, I've got to learn to read more carefully.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Attached is my least squares fit to a parabola.&amp;nbsp; The hyperbola fit is included but fails.&amp;nbsp; (Well, you get a fit but if you look a Werner's function you can see why there's no success--I've got the wrong form of expression.&amp;nbsp; Adjusting the formula (and stealing Werner's value for B) has been included.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;File is Prime 4, readable&amp;nbsp; in any Prime&amp;nbsp; greater than or equal to 4.&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2023 16:27:39 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/y-A-x-B-Formula-fitting/m-p/873813#M206586</guid>
      <dc:creator>Fred_Kohlhepp</dc:creator>
      <dc:date>2023-05-05T16:27:39Z</dc:date>
    </item>
    <item>
      <title>Re: y=A/x+B Formula fitting</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/y-A-x-B-Formula-fitting/m-p/873841#M206594</link>
      <description>&lt;P&gt;I am always fascinated by the clever workarounds to find a solution even in Express. Chapeaux!&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2023 18:02:47 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/y-A-x-B-Formula-fitting/m-p/873841#M206594</guid>
      <dc:creator>Werner_E</dc:creator>
      <dc:date>2023-05-05T18:02:47Z</dc:date>
    </item>
  </channel>
</rss>

