<?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: How to use a symbolically evaluated equation for a plot? in Mathcad</title>
    <link>https://www.ptcusercommunity.com/t5/Mathcad/How-to-use-a-symbolically-evaluated-equation-for-a-plot/m-p/994943#M215871</link>
    <description>&lt;P&gt;To start, move the definitions for "a" and "b" before your equations where you use those variables.&amp;nbsp; Mathcad doesn't know what they are when the equations are executed.&amp;nbsp; Once you do that, you might find that things are easier to troubleshoot.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 23 Jan 2025 14:21:23 GMT</pubDate>
    <dc:creator>FieldEng</dc:creator>
    <dc:date>2025-01-23T14:21:23Z</dc:date>
    <item>
      <title>How to use a symbolically evaluated equation for a plot?</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/How-to-use-a-symbolically-evaluated-equation-for-a-plot/m-p/994941#M215870</link>
      <description>&lt;P&gt;I am trying to get a bode plot of a transfer function which I symbolically evaluated first. After that I want to insert some constants and then use it for a bode plot. Is there a way to do that?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using PTC Mathcad Prime 10,0.1.0.&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="RK_12705188_0-1737641829367.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/117255iA55809A7F828F4C1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RK_12705188_0-1737641829367.png" alt="RK_12705188_0-1737641829367.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jan 2025 14:17:20 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/How-to-use-a-symbolically-evaluated-equation-for-a-plot/m-p/994941#M215870</guid>
      <dc:creator>RK_12705188</dc:creator>
      <dc:date>2025-01-23T14:17:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to use a symbolically evaluated equation for a plot?</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/How-to-use-a-symbolically-evaluated-equation-for-a-plot/m-p/994943#M215871</link>
      <description>&lt;P&gt;To start, move the definitions for "a" and "b" before your equations where you use those variables.&amp;nbsp; Mathcad doesn't know what they are when the equations are executed.&amp;nbsp; Once you do that, you might find that things are easier to troubleshoot.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jan 2025 14:21:23 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/How-to-use-a-symbolically-evaluated-equation-for-a-plot/m-p/994943#M215871</guid>
      <dc:creator>FieldEng</dc:creator>
      <dc:date>2025-01-23T14:21:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to use a symbolically evaluated equation for a plot?</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/How-to-use-a-symbolically-evaluated-equation-for-a-plot/m-p/994958#M215873</link>
      <description>&lt;P&gt;The thing is I want to see the symbolic evaluation at first, since this version I've showed in my file is just a simple example. The evaluation I do a is much more unclear than in the example, which is why I need to see it first. Or is it not possible to do it this way in Mathcad?&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jan 2025 14:46:57 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/How-to-use-a-symbolically-evaluated-equation-for-a-plot/m-p/994958#M215873</guid>
      <dc:creator>RK_12705188</dc:creator>
      <dc:date>2025-01-23T14:46:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to use a symbolically evaluated equation for a plot?</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/How-to-use-a-symbolically-evaluated-equation-for-a-plot/m-p/994970#M215874</link>
      <description>&lt;P&gt;You can't do it that way, because Mathcad evaluates your equations line by line from top to bottom and left to right.&amp;nbsp; So, you're trying to evaluate a function that has variables which are undefined.&amp;nbsp; The other issue is that your functions don't evaluate to a result.&amp;nbsp; See the WS3 attached.&amp;nbsp; N(s) and Z(s) don't mean anything because "s" is not defined.&amp;nbsp; It could be a function or a variable.&amp;nbsp; Mathcad doesn't know how to interpret that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created new functions N(t) and Z(t), where "t" is defined as mathematic operations of "a" and "b".&amp;nbsp; Those functions evaluate to a result, and so does "g", So you have to define or evaluate every term in your equation.&amp;nbsp; You also used the solve function to evaluate the result of G.&amp;nbsp; You can do that, but you have to define it differently, i.e. you have to state what variable you're solving for.&amp;nbsp; Since "s" is unknown in both equations, G(s) can't be evaluated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Remember, your inputs, i.e. variables, can also be arrays or vectors.&amp;nbsp; They don't have to be constants like I have used here.&amp;nbsp; But that requires a different way of handling the arithmetic operations in your functions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jan 2025 15:13:45 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/How-to-use-a-symbolically-evaluated-equation-for-a-plot/m-p/994970#M215874</guid>
      <dc:creator>FieldEng</dc:creator>
      <dc:date>2025-01-23T15:13:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to use a symbolically evaluated equation for a plot?</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/How-to-use-a-symbolically-evaluated-equation-for-a-plot/m-p/994988#M215877</link>
      <description>&lt;P&gt;I think I got it now. Thanks you for helping.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jan 2025 16:16:39 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/How-to-use-a-symbolically-evaluated-equation-for-a-plot/m-p/994988#M215877</guid>
      <dc:creator>RK_12705188</dc:creator>
      <dc:date>2025-01-23T16:16:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to use a symbolically evaluated equation for a plot?</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/How-to-use-a-symbolically-evaluated-equation-for-a-plot/m-p/995007#M215880</link>
      <description>&lt;P&gt;You're welcome.&amp;nbsp; Yes, looks like you're on the right track.&amp;nbsp; Good work!&amp;nbsp; Best of luck.&amp;nbsp; Please repost when you have your Bode plot solution.&amp;nbsp; I'm interested to follow your work.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jan 2025 17:09:19 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/How-to-use-a-symbolically-evaluated-equation-for-a-plot/m-p/995007#M215880</guid>
      <dc:creator>FieldEng</dc:creator>
      <dc:date>2025-01-23T17:09:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to use a symbolically evaluated equation for a plot?</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/How-to-use-a-symbolically-evaluated-equation-for-a-plot/m-p/995034#M215881</link>
      <description>&lt;P&gt;There's no problem, in fact it is advisable, to do what you want. You just have to carry the unknowns as parameters in your functions. See here:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LucMeekes_0-1737656833368.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/117288iAA021AAD64DEDF22/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LucMeekes_0-1737656833368.png" alt="LucMeekes_0-1737656833368.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Success!&lt;/P&gt;
&lt;P&gt;Luc&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jan 2025 18:27:38 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/How-to-use-a-symbolically-evaluated-equation-for-a-plot/m-p/995034#M215881</guid>
      <dc:creator>LucMeekes</dc:creator>
      <dc:date>2025-01-23T18:27:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to use a symbolically evaluated equation for a plot?</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/How-to-use-a-symbolically-evaluated-equation-for-a-plot/m-p/995037#M215882</link>
      <description>&lt;P&gt;Good to know.&amp;nbsp; Thanks Luc.&amp;nbsp; This helps me as well.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jan 2025 18:34:43 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/How-to-use-a-symbolically-evaluated-equation-for-a-plot/m-p/995037#M215882</guid>
      <dc:creator>FieldEng</dc:creator>
      <dc:date>2025-01-23T18:34:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to use a symbolically evaluated equation for a plot?</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/How-to-use-a-symbolically-evaluated-equation-for-a-plot/m-p/995039#M215883</link>
      <description>&lt;P&gt;And if you think you have to carry too many parameters into a function, you can put them in an array:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LucMeekes_0-1737657967443.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/117289i7CF6BFA304D35EDC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LucMeekes_0-1737657967443.png" alt="LucMeekes_0-1737657967443.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Success!&lt;BR /&gt;Luc&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jan 2025 18:46:37 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/How-to-use-a-symbolically-evaluated-equation-for-a-plot/m-p/995039#M215883</guid>
      <dc:creator>LucMeekes</dc:creator>
      <dc:date>2025-01-23T18:46:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to use a symbolically evaluated equation for a plot?</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/How-to-use-a-symbolically-evaluated-equation-for-a-plot/m-p/995041#M215885</link>
      <description>&lt;P&gt;Thank you, good to know that it also works this way. These plots look very good. How do you get the continuous function? My functions always just go from frequencies of 200 to 2*10^4 Hz. Also how do you enable the green lines for any plot?&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jan 2025 18:57:41 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/How-to-use-a-symbolically-evaluated-equation-for-a-plot/m-p/995041#M215885</guid>
      <dc:creator>RK_12705188</dc:creator>
      <dc:date>2025-01-23T18:57:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to use a symbolically evaluated equation for a plot?</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/How-to-use-a-symbolically-evaluated-equation-for-a-plot/m-p/995057#M215890</link>
      <description>&lt;P&gt;I use a version of (the real) Mathcad from the beginning of this century. Somewhere around 2008 PTC took over and decide they'd make a 'better' product and created Prime. Now, more than 15 years and 10 versions later their product still cannot match up with some aspects of Mathcad (graphing, speed), although in some respects Prime is better (allows multiple units in an array and allows symbolic solving of differntial equations.)&lt;/P&gt;
&lt;P&gt;And yes, Prime supports grids in plots, NOT in the native plots, but only in the chart component (a badly integrated third-party add-on that doesn't support units). So with regards to plotting with Prime you have to choose between two evils (or are they a nuisance and an outrage?).&lt;/P&gt;
&lt;P&gt;With regard to not plotting a full range of frequencies: you did not define f (me neither), but if you do that, Mathcad (and Prime as well) chooses its own range for it. Apparently Mathcad does a better job.&lt;/P&gt;
&lt;P&gt;Now you could define a range for f, but all you can do is define a linear range (you cannot define a log range) and a linear range from 0.02 up to 20000, in steps of 0.02, would create a range of 1 million points. Then Prime will tell you it cannot plot that many points in a graph.&lt;/P&gt;
&lt;P&gt;The way out is to define a vector of frequencies. Look at the built-in functions logpts() and logspace(). I prefer my own defined logrange that creates a vector of log spaced values from a begin value to an end value with a set number of points per decade:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LucMeekes_0-1737670150589.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/117290i6638782E2AB737AD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LucMeekes_0-1737670150589.png" alt="LucMeekes_0-1737670150589.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;So with:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LucMeekes_1-1737670175427.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/117291i87898EB45C405EA3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LucMeekes_1-1737670175427.png" alt="LucMeekes_1-1737670175427.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I get F to be a vector (Note that that is different from a range!) of values from 0.01 to 100 000 with 50 points per decade.&lt;/P&gt;
&lt;P&gt;Now I need an index to point to all frequencies in that vector, from first to last:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LucMeekes_2-1737670320427.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/117292iC2F5BDD4796A8AA7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LucMeekes_2-1737670320427.png" alt="LucMeekes_2-1737670320427.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;(ORIGIN is a built-in constant, usually 0 or 1, you can set it, that is the index of the first array element. last obviously gives the last index of its argument, which must be a vector, which F is.)&lt;/P&gt;
&lt;P&gt;And I can plot:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LucMeekes_3-1737670432652.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/117293i80C1A7D3F229AE32/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LucMeekes_3-1737670432652.png" alt="LucMeekes_3-1737670432652.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Still no grid. For that purpose there is e.g. this: &lt;A href="https://community.ptc.com/t5/Mathcad/Bode-Plot-NaN-Complex-values-Error-and-Plot-Grid-Does-Not-Exist/m-p/830506/highlight/true#M203237" target="_blank"&gt;https://community.ptc.com/t5/Mathcad/Bode-Plot-NaN-Complex-values-Error-and-Plot-Grid-Does-Not-Exist/m-p/830506/highlight/true#M203237&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Success!&lt;BR /&gt;Luc&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jan 2025 22:30:30 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/How-to-use-a-symbolically-evaluated-equation-for-a-plot/m-p/995057#M215890</guid>
      <dc:creator>LucMeekes</dc:creator>
      <dc:date>2025-01-23T22:30:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to use a symbolically evaluated equation for a plot?</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/How-to-use-a-symbolically-evaluated-equation-for-a-plot/m-p/995067#M215895</link>
      <description>&lt;P&gt;Additionally to what Luc already explained.&lt;/P&gt;
&lt;P&gt;You can also get the plot from 0.01 to 10 if you set the axis limits directly in the plot.&lt;/P&gt;
&lt;P&gt;You can edit the first, second and the last value on each axis and most of the time changing the second value is necessary because the values automatically chosen by Prime are ... suboptimal (to say it in a polite way).&lt;/P&gt;
&lt;P&gt;If the axis is logarithmically scaled, you can only edit the first and last value and Prime will only chose full decades to plot.&lt;/P&gt;
&lt;P&gt;In the picture I highlighted the values you are allowed to edit in your plots.&lt;/P&gt;
&lt;P&gt;If you don't edit a value or if you delete a value you entered, Prime will chose a value on its own.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_1-1737678236185.png" style="width: 685px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/117297i5FEDBC42D2EAC9F6/image-dimensions/685x772?v=v2" width="685" height="772" role="button" title="Werner_E_1-1737678236185.png" alt="Werner_E_1-1737678236185.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BTW, you sure have already noticed from Luc's picture that you forgot about the factor 2 pi in your file, didn't you?&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jan 2025 00:26:53 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/How-to-use-a-symbolically-evaluated-equation-for-a-plot/m-p/995067#M215895</guid>
      <dc:creator>Werner_E</dc:creator>
      <dc:date>2025-01-24T00:26:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to use a symbolically evaluated equation for a plot?</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/How-to-use-a-symbolically-evaluated-equation-for-a-plot/m-p/995317#M215911</link>
      <description>&lt;P&gt;Prime 10.0.1&amp;nbsp; If useing logspace function, plot needs vectorization, however, linear range doesn't need.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 226px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/117374iC3981CAED18B697C/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;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 673px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/117371iDBB05DF6C95A4395/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 673px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/117372i232C84503C1584D5/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;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 113px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/117375iD281A7F7F9263775/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;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 673px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/117373i65F826CFB3118D09/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>Sun, 26 Jan 2025 01:27:07 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/How-to-use-a-symbolically-evaluated-equation-for-a-plot/m-p/995317#M215911</guid>
      <dc:creator>ttokoro</dc:creator>
      <dc:date>2025-01-26T01:27:07Z</dc:date>
    </item>
  </channel>
</rss>

