<?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: Curve fitting problem - Core Loss Density Curves in Mathcad</title>
    <link>https://www.ptcusercommunity.com/t5/Mathcad/Curve-fitting-problem-Core-Loss-Density-Curves/m-p/967370#M213273</link>
    <description>&lt;P&gt;For example below are the data points for the 3 lines: 300kHz, 200kHz, and 100kHz lines from above graph.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cornel_0-1724165015486.png" style="width: 981px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/109406iDA0EB1EE09CCA660/image-dimensions/981x510?v=v2" width="981" height="510" role="button" title="Cornel_0-1724165015486.png" alt="Cornel_0-1724165015486.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cornel_2-1724165136944.png" style="width: 974px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/109409i33103415C90AD3D9/image-dimensions/974x719?v=v2" width="974" height="719" role="button" title="Cornel_2-1724165136944.png" alt="Cornel_2-1724165136944.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;MCP10 file attached.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Both x and y axis are log scale.&lt;BR /&gt;&lt;BR /&gt;Now we need to find the values of a, b and c coefficients in such a way to be able to generate these lines also with the above formula by fitting these curve with that given formula, by using genfit/mineer or something similar mathcad functions.&lt;/P&gt;</description>
    <pubDate>Tue, 20 Aug 2024 15:13:35 GMT</pubDate>
    <dc:creator>Cornel</dc:creator>
    <dc:date>2024-08-20T15:13:35Z</dc:date>
    <item>
      <title>Curve fitting problem - Core Loss Density Curves</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Curve-fitting-problem-Core-Loss-Density-Curves/m-p/967314#M213271</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;Using this fit formula from below, how to determine a, b and c coefficients in such a way to fit the below plot Core Loss vs Flux density:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cornel_1-1724151383659.png" style="width: 755px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/109392iADF11372AA251C2E/image-dimensions/755x91?v=v2" width="755" height="91" role="button" title="Cornel_1-1724151383659.png" alt="Cornel_1-1724151383659.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="Cornel_0-1724151851586.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/109393iA01B31B136697963/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Cornel_0-1724151851586.png" alt="Cornel_0-1724151851586.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cornel_0-1724152014529.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/109394i8615EC2DD42D9699/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Cornel_0-1724152014529.png" alt="Cornel_0-1724152014529.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cornel_0-1724151366039.png" style="width: 784px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/109391i3223DE28D8C96428/image-dimensions/784x379?v=v2" width="784" height="379" role="button" title="Cornel_0-1724151366039.png" alt="Cornel_0-1724151366039.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;So, I think (but I do not know how to do) to read all the data points of each line (300kHz, 200kHz, etc) and then to make the curve fitting by using genfit Mathcad function, minerr or something like that.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cornel_1-1724152093919.png" style="width: 534px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/109395i9DDE336DAA790B59/image-dimensions/534x364?v=v2" width="534" height="364" role="button" title="Cornel_1-1724152093919.png" alt="Cornel_1-1724152093919.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2024 11:08:29 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Curve-fitting-problem-Core-Loss-Density-Curves/m-p/967314#M213271</guid>
      <dc:creator>Cornel</dc:creator>
      <dc:date>2024-08-20T11:08:29Z</dc:date>
    </item>
    <item>
      <title>Re: Curve fitting problem - Core Loss Density Curves</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Curve-fitting-problem-Core-Loss-Density-Curves/m-p/967370#M213273</link>
      <description>&lt;P&gt;For example below are the data points for the 3 lines: 300kHz, 200kHz, and 100kHz lines from above graph.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cornel_0-1724165015486.png" style="width: 981px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/109406iDA0EB1EE09CCA660/image-dimensions/981x510?v=v2" width="981" height="510" role="button" title="Cornel_0-1724165015486.png" alt="Cornel_0-1724165015486.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cornel_2-1724165136944.png" style="width: 974px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/109409i33103415C90AD3D9/image-dimensions/974x719?v=v2" width="974" height="719" role="button" title="Cornel_2-1724165136944.png" alt="Cornel_2-1724165136944.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;MCP10 file attached.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Both x and y axis are log scale.&lt;BR /&gt;&lt;BR /&gt;Now we need to find the values of a, b and c coefficients in such a way to be able to generate these lines also with the above formula by fitting these curve with that given formula, by using genfit/mineer or something similar mathcad functions.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2024 15:13:35 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Curve-fitting-problem-Core-Loss-Density-Curves/m-p/967370#M213273</guid>
      <dc:creator>Cornel</dc:creator>
      <dc:date>2024-08-20T15:13:35Z</dc:date>
    </item>
    <item>
      <title>Re: Curve fitting problem - Core Loss Density Curves</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Curve-fitting-problem-Core-Loss-Density-Curves/m-p/967418#M213279</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Have done the first line for you.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 635px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/109425i87D8099F9A3B674E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Cheers&lt;/P&gt;
&lt;P&gt;Terry&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2024 20:43:33 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Curve-fitting-problem-Core-Loss-Density-Curves/m-p/967418#M213279</guid>
      <dc:creator>terryhendicott</dc:creator>
      <dc:date>2024-08-20T20:43:33Z</dc:date>
    </item>
    <item>
      <title>Re: Curve fitting problem - Core Loss Density Curves</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Curve-fitting-problem-Core-Loss-Density-Curves/m-p/967428#M213281</link>
      <description>&lt;P&gt;If the goal is to find a separate fit for every frequency given, you could also use "line" to do so.&lt;/P&gt;
&lt;P&gt;Here for 300kHz:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_0-1724194131801.png" style="width: 653px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/109426i14B95531D1219372/image-dimensions/653x470?v=v2" width="653" height="470" role="button" title="Werner_E_0-1724194131801.png" alt="Werner_E_0-1724194131801.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;"B300" is the very same which you called "b". But you would get a slightly different value when you do the same for the other frequencies.&lt;/P&gt;
&lt;P&gt;10^A300 is your a*f^c with f=300.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But I guess that you are looking for constant values a, b and c which are valid for any frequency.&lt;/P&gt;
&lt;P&gt;To find these values I would suggest using a solve block with "minerr":&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_1-1724194365578.png" style="width: 580px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/109427iEA05FC3013BAE8A6/image-dimensions/580x415?v=v2" width="580" height="415" role="button" title="Werner_E_1-1724194365578.png" alt="Werner_E_1-1724194365578.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Thereafter you may define a function P which is only dependent on B and f and because with Prime we are using something similar to Mathcad, it may be a good idea to add correct units&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_2-1724194415985.png" style="width: 333px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/109428iD9CBE5FAF4AE1C4E/image-dimensions/333x66?v=v2" width="333" height="66" role="button" title="Werner_E_2-1724194415985.png" alt="Werner_E_2-1724194415985.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Now you can use this function with any input value you like&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_3-1724194568158.png" style="width: 293px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/109429i6A01366AA9E42AB7/image-dimensions/293x60?v=v2" width="293" height="60" role="button" title="Werner_E_3-1724194568158.png" alt="Werner_E_3-1724194568158.png" /&gt;&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_4-1724194578478.png" style="width: 296px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/109430i6DEA75A3595470BA/image-dimensions/296x63?v=v2" width="296" height="63" role="button" title="Werner_E_4-1724194578478.png" alt="Werner_E_4-1724194578478.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;and of course also for plotting with different frequencies&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_5-1724194648954.png" style="width: 837px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/109431i3E1F7C26666D90FA/image-dimensions/837x453?v=v2" width="837" height="453" role="button" title="Werner_E_5-1724194648954.png" alt="Werner_E_5-1724194648954.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;And as its a function with two arguments, you may also create a 3D-Plot if you like&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_6-1724194906164.png" style="width: 373px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/109432i33775F5B6261D394/image-dimensions/373x492?v=v2" width="373" height="492" role="button" title="Werner_E_6-1724194906164.png" alt="Werner_E_6-1724194906164.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Prime 10 sheet atached&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, 20 Aug 2024 23:03:16 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Curve-fitting-problem-Core-Loss-Density-Curves/m-p/967428#M213281</guid>
      <dc:creator>Werner_E</dc:creator>
      <dc:date>2024-08-20T23:03:16Z</dc:date>
    </item>
  </channel>
</rss>

