<?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: Mathcad 2.0 won't let me define this as a variable in Mathcad</title>
    <link>https://www.ptcusercommunity.com/t5/Mathcad/Mathcad-2-0-won-t-let-me-define-this-as-a-variable/m-p/225400#M88211</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't know if it is intentional or not but you can make prime accept this by adding the range variable as a subscript to the b in the assignment:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="63683" class="jive-image" alt="Capture.PNG" src="https://community.ptc.com/legacyfs/online/63683_Capture.PNG" /&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NB: it only works for integer ranges.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have also changed the 'ORIGIN' to 1 to match your range; If you don't do this the b will contain 0,4,5,6,7.&lt;/P&gt;&lt;P&gt;But it is a global assignment so it will affect every array defined.&lt;/P&gt;&lt;P&gt;If this is a problem &amp;amp; ORIGIN=0 is required, then you need to change b[a to b[a-1 (in this case)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt; Andy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Dec 2013 15:12:26 GMT</pubDate>
    <dc:creator>AndyWesterman</dc:creator>
    <dc:date>2013-12-13T15:12:26Z</dc:date>
    <item>
      <title>Mathcad 2.0 won't let me define this as a variable</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Mathcad-2-0-won-t-let-me-define-this-as-a-variable/m-p/225398#M88209</link>
      <description>See the attached image;Why can it process a+3 and give me a perfectly good answer, but go to define said answer as its own variable B and it won't let me??? How do I do this?</description>
      <pubDate>Thu, 03 May 2018 16:38:05 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Mathcad-2-0-won-t-let-me-define-this-as-a-variable/m-p/225398#M88209</guid>
      <dc:creator>ptc-5232076</dc:creator>
      <dc:date>2018-05-03T16:38:05Z</dc:date>
    </item>
    <item>
      <title>Re: Mathcad 2.0 won't let me define this as a variable</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Mathcad-2-0-won-t-let-me-define-this-as-a-variable/m-p/225399#M88210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to look up the difference between a range variable and a vector.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="63685" class="jive-image-thumbnail jive-image" onclick="" alt="vectors.PNG" src="https://community.ptc.com/legacyfs/online/63685_vectors.PNG" width="450" /&gt;&lt;/P&gt;&lt;P&gt;Alan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Dec 2013 15:11:04 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Mathcad-2-0-won-t-let-me-define-this-as-a-variable/m-p/225399#M88210</guid>
      <dc:creator>AlanStevens</dc:creator>
      <dc:date>2013-12-13T15:11:04Z</dc:date>
    </item>
    <item>
      <title>Re: Mathcad 2.0 won't let me define this as a variable</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Mathcad-2-0-won-t-let-me-define-this-as-a-variable/m-p/225400#M88211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't know if it is intentional or not but you can make prime accept this by adding the range variable as a subscript to the b in the assignment:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="63683" class="jive-image" alt="Capture.PNG" src="https://community.ptc.com/legacyfs/online/63683_Capture.PNG" /&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NB: it only works for integer ranges.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have also changed the 'ORIGIN' to 1 to match your range; If you don't do this the b will contain 0,4,5,6,7.&lt;/P&gt;&lt;P&gt;But it is a global assignment so it will affect every array defined.&lt;/P&gt;&lt;P&gt;If this is a problem &amp;amp; ORIGIN=0 is required, then you need to change b[a to b[a-1 (in this case)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt; Andy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Dec 2013 15:12:26 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Mathcad-2-0-won-t-let-me-define-this-as-a-variable/m-p/225400#M88211</guid>
      <dc:creator>AndyWesterman</dc:creator>
      <dc:date>2013-12-13T15:12:26Z</dc:date>
    </item>
    <item>
      <title>Re: Mathcad 2.0 won't let me define this as a variable</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Mathcad-2-0-won-t-let-me-define-this-as-a-variable/m-p/225401#M88212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Its important to learn the difference between ranges and vectors!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a is a range variable, not a vector even if the evaluation of a or a+3 might look like a vector (which was not a good choice by Mathcad anyway).&lt;/P&gt;&lt;P&gt;A range variable may be seen as kind of an implicit for-loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Range variables should be used in a limited way only&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;indexing and accessing vectors and matrices&lt;/LI&gt;&lt;LI&gt;as the independent variable in plotting a function&lt;/LI&gt;&lt;LI&gt;in programs at for-loops&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create a as a vector and your assignment will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem exist since the beginnings of Mathcad and always was a pitfall for new users. I attach a pdf of two files by Stuart Bruff about Vectors vs. Ranges.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Dec 2013 15:13:25 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Mathcad-2-0-won-t-let-me-define-this-as-a-variable/m-p/225401#M88212</guid>
      <dc:creator>Werner_E</dc:creator>
      <dc:date>2013-12-13T15:13:25Z</dc:date>
    </item>
    <item>
      <title>Re: Mathcad 2.0 won't let me define this as a variable</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Mathcad-2-0-won-t-let-me-define-this-as-a-variable/m-p/225402#M88213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is a way to quickly turn a range variable into a vector by adding an inline evaluation. I am not sure if thats intentional and as far as I am aware of this trick is undocumented. So I guess we should not rely our worksheets on it too heavily.&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="63676" alt="13.12.png" class="jive-image-thumbnail jive-image" src="https://community.ptc.com/legacyfs/online/63676_13.12.png" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Dec 2013 15:34:16 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Mathcad-2-0-won-t-let-me-define-this-as-a-variable/m-p/225402#M88213</guid>
      <dc:creator>Werner_E</dc:creator>
      <dc:date>2013-12-13T15:34:16Z</dc:date>
    </item>
    <item>
      <title>Re: Mathcad 2.0 won't let me define this as a variable</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Mathcad-2-0-won-t-let-me-define-this-as-a-variable/m-p/225403#M88214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was able to get this to work both with the subscript based matrix method, as well as by putting in the =sign. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem I am now finding is for what I am really trying to do, I want to use the values y1, and y2 in subscripts. Doing this kind of makes it hard to do the subscript based matrix A Westerman showed, On the other hand, having to put the 2nd equals sign in after the definition works but leads to a very inefficient use of space. Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="63678" class="jive-image-thumbnail jive-image" onclick="" alt="reply.PNG" src="https://community.ptc.com/legacyfs/online/63678_reply.PNG" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Dec 2013 16:32:04 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Mathcad-2-0-won-t-let-me-define-this-as-a-variable/m-p/225403#M88214</guid>
      <dc:creator>ptc-5232076</dc:creator>
      <dc:date>2013-12-13T16:32:04Z</dc:date>
    </item>
    <item>
      <title>Re: Mathcad 2.0 won't let me define this as a variable</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Mathcad-2-0-won-t-let-me-define-this-as-a-variable/m-p/225404#M88215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Subscripts must have integer values, so you will need to create, say, i:=0..100 and then create y1[i:= i/100 and y2:=y1-alpha. I guess you then want another variable to depend on these, but you will have to create that as a function, say fn(y1,y2), or as a double subscripted variable fn[i,j where j also runs from 0 to 100. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alan &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Dec 2013 09:15:11 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Mathcad-2-0-won-t-let-me-define-this-as-a-variable/m-p/225404#M88215</guid>
      <dc:creator>AlanStevens</dc:creator>
      <dc:date>2013-12-14T09:15:11Z</dc:date>
    </item>
    <item>
      <title>Re: Mathcad 2.0 won't let me define this as a variable</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Mathcad-2-0-won-t-let-me-define-this-as-a-variable/m-p/225405#M88216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;The problem I am now finding is for what I am really trying to do, I want to use the values y1, and y2 in subscripts.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;As Alan already wrote - you can't, as subscripts must be integers. Probably I shouldn't have suggested the method using inline evaluation, but didn't recommend it anyway.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The usual way for creating a vector "by hand" is using an auxiliary range variable. You may also use a programming approach, but this may be considered too cumbersome:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="63697" alt="v1.png" class="jive-image-thumbnail jive-image" height="262" src="https://community.ptc.com/legacyfs/online/63697_v1.png" width="334" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may use the inline evaluation trick, its quick and dirty but not documented and so not recommended. The displayed vector can be made smaller to save space&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="63701" alt="v2.png" class="jive-image-thumbnail jive-image" height="106" src="https://community.ptc.com/legacyfs/online/63701_v2.png" width="314" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may also consider using a user written auxiliary function, especially if you have more vectors to create in your sheet or you are too lazy to calculate how "long" your range variable has to be &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="63712" alt="v3.png" class="jive-image-thumbnail jive-image" height="194" src="https://community.ptc.com/legacyfs/online/63712_v3.png" width="332" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I attach the sheet in Prime2 format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDIT: There was an error in the last routine which is now fixed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Dec 2013 12:20:27 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Mathcad-2-0-won-t-let-me-define-this-as-a-variable/m-p/225405#M88216</guid>
      <dc:creator>Werner_E</dc:creator>
      <dc:date>2013-12-14T12:20:27Z</dc:date>
    </item>
    <item>
      <title>Re: Mathcad 2.0 won't let me define this as a variable</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Mathcad-2-0-won-t-let-me-define-this-as-a-variable/m-p/225406#M88217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;adam miller wrote:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the attached image;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.ptc.com/legacyfs/online/63673_mathcadproblem.PNG"&gt;&lt;IMG __jive_id="63709" class="jive-image" height="429" alt="mathcadproblem.PNG" src="https://community.ptc.com/legacyfs/online/63709_mathcadproblem.PNG" width="288" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Why can it process a+3 and give me a perfectly good answer, but go to define said answer as its own variable B and it won't let me??? How do I do this?&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;In Prime 3 with a Table:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="63708" class="jive-image" alt="ab.png" src="https://community.ptc.com/legacyfs/online/63708_ab.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Dec 2013 14:07:38 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Mathcad-2-0-won-t-let-me-define-this-as-a-variable/m-p/225406#M88217</guid>
      <dc:creator>ValeryOchkov</dc:creator>
      <dc:date>2013-12-14T14:07:38Z</dc:date>
    </item>
    <item>
      <title>Re: Mathcad 2.0 won't let me define this as a variable</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Mathcad-2-0-won-t-let-me-define-this-as-a-variable/m-p/225407#M88218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Valery Ochkov wrote:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Prime 3 with a Table:&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;A bit too cumbersome for the 101-element vector Adam needs, don't you think so, too?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Dec 2013 14:26:09 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Mathcad-2-0-won-t-let-me-define-this-as-a-variable/m-p/225407#M88218</guid>
      <dc:creator>Werner_E</dc:creator>
      <dc:date>2013-12-14T14:26:09Z</dc:date>
    </item>
    <item>
      <title>Re: Mathcad 2.0 won't let me define this as a variable</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Mathcad-2-0-won-t-let-me-define-this-as-a-variable/m-p/225408#M88219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Werner Exinger wrote:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;P&gt;Valery Ochkov wrote:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Prime 3 with a Table:&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;A bit too cumbersome for the 101-element vector Adam needs, don't you think so, too?&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Pardon, I do not quit understand the topic.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Dec 2013 17:26:44 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Mathcad-2-0-won-t-let-me-define-this-as-a-variable/m-p/225408#M88219</guid>
      <dc:creator>ValeryOchkov</dc:creator>
      <dc:date>2013-12-14T17:26:44Z</dc:date>
    </item>
    <item>
      <title>Re: Mathcad 2.0 won't let me define this as a variable</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Mathcad-2-0-won-t-let-me-define-this-as-a-variable/m-p/225409#M88220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Forgot to mention a more "legal" (hope so) way to convert a range into a vector.&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="63932" class="jive-image-thumbnail jive-image" height="101" onclick="" alt="v4.png" src="https://community.ptc.com/legacyfs/online/63932_v4.png" style="height: 101.13333333333333px; width: 410px;" width="410" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 15 Dec 2013 22:09:59 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Mathcad-2-0-won-t-let-me-define-this-as-a-variable/m-p/225409#M88220</guid>
      <dc:creator>Werner_E</dc:creator>
      <dc:date>2013-12-15T22:09:59Z</dc:date>
    </item>
  </channel>
</rss>

