<?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: Graph_Plot_Error in Mathcad</title>
    <link>https://www.ptcusercommunity.com/t5/Mathcad/Graph-Plot-Error/m-p/985958#M215237</link>
    <description>&lt;P&gt;Hi&amp;nbsp; Werner_E!&lt;/P&gt;&lt;P&gt;Thanks for your support.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) In our earlier discussions, if you remember, this graph was polted by you for without unit for the block_solve. Why function ordinate is defined with double "xx" as f(xx) and abscissa with double "xx".&lt;/P&gt;&lt;P&gt;and when a function is defined for a root, it has a single x as f(x).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) Why is unit defined as (m2.MPa) for plot f(xx)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please refer to the attached image.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks and regards&lt;/P&gt;&lt;P&gt;MSRAZA&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Plot_Fun..png" style="width: 862px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/114856i2957C9DACCAD36DE/image-size/large?v=v2&amp;amp;px=999" role="button" title="Plot_Fun..png" alt="Plot_Fun..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>Wed, 27 Nov 2024 16:52:31 GMT</pubDate>
    <dc:creator>MSRAZA</dc:creator>
    <dc:date>2024-11-27T16:52:31Z</dc:date>
    <item>
      <title>Graph_Plot_Error</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Graph-Plot-Error/m-p/985894#M215229</link>
      <description>&lt;P&gt;I hope everyone is doing well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;While plotting a graph, I receive an error.&lt;/P&gt;&lt;P&gt;Please assist me in fixing the issue.&lt;/P&gt;&lt;P&gt;Please find the attached document below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks and regards.&lt;/P&gt;&lt;P&gt;MSRAZA.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="plot_error.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/114834iACAAD5E9DC47EB9A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="plot_error.png" alt="plot_error.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>Wed, 27 Nov 2024 13:34:47 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Graph-Plot-Error/m-p/985894#M215229</guid>
      <dc:creator>MSRAZA</dc:creator>
      <dc:date>2024-11-27T13:34:47Z</dc:date>
    </item>
    <item>
      <title>Re: Graph_Plot_Error</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Graph-Plot-Error/m-p/985902#M215230</link>
      <description>&lt;P&gt;Variable xx is undefined.&lt;/P&gt;
&lt;P&gt;Primes quickplot feature can't be used with units.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;xx must be defined as a range with units:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_0-1732715425102.png" style="width: 706px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/114838i70078E82224C6A14/image-dimensions/706x399?v=v2" width="706" height="399" role="button" title="Werner_E_0-1732715425102.png" alt="Werner_E_0-1732715425102.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2024 13:50:56 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Graph-Plot-Error/m-p/985902#M215230</guid>
      <dc:creator>Werner_E</dc:creator>
      <dc:date>2024-11-27T13:50:56Z</dc:date>
    </item>
    <item>
      <title>Re: Graph_Plot_Error</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Graph-Plot-Error/m-p/985932#M215231</link>
      <description>&lt;P&gt;By plotting your stress-strain curves, I could see that they closely followed an exponential type, so I roughly fitted them (by eye).&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You only need to define your "f" functions once - see attached.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="StressStrain.png" style="width: 639px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/114848iE7345F29293D5FFB/image-size/large?v=v2&amp;amp;px=999" role="button" title="StressStrain.png" alt="StressStrain.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Alan&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2024 15:02:01 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Graph-Plot-Error/m-p/985932#M215231</guid>
      <dc:creator>AlanStevens</dc:creator>
      <dc:date>2024-11-27T15:02:01Z</dc:date>
    </item>
    <item>
      <title>Re: Graph_Plot_Error</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Graph-Plot-Error/m-p/985958#M215237</link>
      <description>&lt;P&gt;Hi&amp;nbsp; Werner_E!&lt;/P&gt;&lt;P&gt;Thanks for your support.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) In our earlier discussions, if you remember, this graph was polted by you for without unit for the block_solve. Why function ordinate is defined with double "xx" as f(xx) and abscissa with double "xx".&lt;/P&gt;&lt;P&gt;and when a function is defined for a root, it has a single x as f(x).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) Why is unit defined as (m2.MPa) for plot f(xx)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please refer to the attached image.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks and regards&lt;/P&gt;&lt;P&gt;MSRAZA&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Plot_Fun..png" style="width: 862px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/114856i2957C9DACCAD36DE/image-size/large?v=v2&amp;amp;px=999" role="button" title="Plot_Fun..png" alt="Plot_Fun..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>Wed, 27 Nov 2024 16:52:31 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Graph-Plot-Error/m-p/985958#M215237</guid>
      <dc:creator>MSRAZA</dc:creator>
      <dc:date>2024-11-27T16:52:31Z</dc:date>
    </item>
    <item>
      <title>Re: Graph_Plot_Error</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Graph-Plot-Error/m-p/986008#M215242</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 352px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/114869i286F2ADCD3CFBFE7/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Unit can change to N.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 826px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/114871i2F9A0640456CBA65/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2024 23:29:57 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Graph-Plot-Error/m-p/986008#M215242</guid>
      <dc:creator>ttokoro</dc:creator>
      <dc:date>2024-11-27T23:29:57Z</dc:date>
    </item>
    <item>
      <title>Re: Graph_Plot_Error</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Graph-Plot-Error/m-p/986012#M215243</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/897207"&gt;@MSRAZA&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi&amp;nbsp; Werner_E!&lt;/P&gt;
&lt;P&gt;Thanks for your support.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1) In our earlier discussions, if you remember, this graph was polted by you for without unit for the block_solve. Why function ordinate is defined with double "xx" as f(xx) and abscissa with double "xx".&lt;/P&gt;
&lt;P&gt;and when a function is defined for a root, it has a single x as f(x).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You don't have to use xx as name for the variable - you also can use x or anything else. I just often try to use a different name for the variable used for plotting to let x still be undefined.&lt;/P&gt;
&lt;P&gt;Furthermore the name of the formal function argument you use when you define a function is arbitrary and can be anything and it has nothing to do with the variable name you later use when you call the function or use it for plotting.&lt;/P&gt;
&lt;P&gt;But of course you can use x throughout if you feel more comfortable with.&lt;/P&gt;
&lt;P&gt;BTW, you may have noticed that Alan had shown a way to use Primes quickplot feature (using a variable at the abscissa which is not defined) even when units are in play.&amp;nbsp; He used a unit-less variable xx (can also be named x) at the abscissa, which is NOT defined as a range or anything else and used xx*mm when the function f is called.&lt;/P&gt;
&lt;P&gt;You may have to change the axis limits at the ordinate axis to get a meaningful plot when you still use m^2*MPa as ordinate unit&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_1-1732750704587.png" style="width: 696px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/114872i433ECC37520C5358/image-dimensions/696x409?v=v2" width="696" height="409" role="button" title="Werner_E_1-1732750704587.png" alt="Werner_E_1-1732750704587.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Clearing variable x was necessary because you had assigned x:=10 mm somewhere above to be used as a guess value for the root function.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/897207"&gt;@MSRAZA&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;2) Why is unit defined as (m2.MPa) for plot f(xx)?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Because your function f returns force values.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_2-1732750849562.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/114873i4BA358D5E5F92C36/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Werner_E_2-1732750849562.png" alt="Werner_E_2-1732750849562.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;A more natural unit would have been kN (as seen in Alans file and screenshot), but you already had put "MPa" in the unit placeholder and Prime adds m^2 so that we again get a correct force unit.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The result of a function is either determined by an explicit return statement or by the last expression of the program. In your case thats the last&amp;nbsp; line of the program. Here you are multiplying pressure values (f.ck, f.st) by areas (b*x, A.sc, A.st) an so you get a force which can be given in Newton but also could be written by m^2*MPa. If you demand MPa, Prime would add the default area unit which is m^2.&lt;/P&gt;
&lt;P&gt;Did you expect a different unit here? If you expected a pressure value here then you would have to correct the expression in function f.&lt;/P&gt;
&lt;P&gt;If you expected kN then you simply have to write kN in the unit placeholder of the ordinate axis as seen in the plot above and also in Alans response..&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2024 23:41:41 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Graph-Plot-Error/m-p/986012#M215243</guid>
      <dc:creator>Werner_E</dc:creator>
      <dc:date>2024-11-27T23:41:41Z</dc:date>
    </item>
    <item>
      <title>Re: Graph_Plot_Error</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Graph-Plot-Error/m-p/986031#M215244</link>
      <description>&lt;P&gt;I greatly appreciate the clarification and the explanation you provided.&lt;/P&gt;&lt;P&gt;Although I appreciate everyone who answers and provides a solution, I personally think your explanations are more thorough.&lt;/P&gt;&lt;P&gt;Thanks and regards.&lt;/P&gt;&lt;P&gt;MSRZAZ.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Nov 2024 05:58:04 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Graph-Plot-Error/m-p/986031#M215244</guid>
      <dc:creator>MSRAZA</dc:creator>
      <dc:date>2024-11-28T05:58:04Z</dc:date>
    </item>
  </channel>
</rss>

