<?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: expanding linterp() and Origin in Mathcad</title>
    <link>https://community.ptc.com/t5/Mathcad/expanding-linterp-and-Origin/m-p/271901#M106213</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;I use the same origin in all my work, ORIGIN=1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But for a function that perhaps could be used by others who do not use the same origin, I am just trying to make idot (or wayne) proof.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only reason I put origin in the example function is to imitate what whould happen if the function were defined in a separate file and referenced into the working file, and where the origin in each file may not be the same. The inherated value of ORIGIN in the program would be that of the referenced file. I did not acutally try yet, but pretty sure that is the case. I am certain that if ORIGIN was used inside the program, it would be that of the referenced file.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your correct. The ORIGIN defined within the reference file takes presidents over the locally defined ORIGIN. As long as ORIGIN is not globally defined.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Sep 2011 14:54:21 GMT</pubDate>
    <dc:creator>MikeArmstrong</dc:creator>
    <dc:date>2011-09-06T14:54:21Z</dc:date>
    <item>
      <title>expanding linterp() and Origin</title>
      <link>https://community.ptc.com/t5/Mathcad/expanding-linterp-and-Origin/m-p/271891#M106203</link>
      <description>The linterp() function fails where there are vertical lines, so I have added Linterp() to assign values at vertical lines.I use this often as I describe shapes for wind, soil, variable depth sections etc., Then I can numerically integrate or whatever.However, I always use ORIGIN=1.</description>
      <pubDate>Thu, 03 May 2018 18:42:20 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Mathcad/expanding-linterp-and-Origin/m-p/271891#M106203</guid>
      <dc:creator>wayne</dc:creator>
      <dc:date>2018-05-03T18:42:20Z</dc:date>
    </item>
    <item>
      <title>Re: expanding linterp() and Origin</title>
      <link>https://community.ptc.com/t5/Mathcad/expanding-linterp-and-Origin/m-p/271892#M106204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Something like the attached?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Clipboard01.jpg" class="jive-image" src="https://community.ptc.com/legacyfs/online/25420_Clipboard01.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Sep 2011 22:18:32 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Mathcad/expanding-linterp-and-Origin/m-p/271892#M106204</guid>
      <dc:creator>MikeArmstrong</dc:creator>
      <dc:date>2011-09-05T22:18:32Z</dc:date>
    </item>
    <item>
      <title>Re: expanding linterp() and Origin</title>
      <link>https://community.ptc.com/t5/Mathcad/expanding-linterp-and-Origin/m-p/271893#M106205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mike,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something like that, Thought about that, but when I have a matrix, I cant use last(). So I could select the &amp;lt;1&amp;gt; column because I would always have that column if I had a matrix and not a vector.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or, If I wanted to be more general and allow a vector or a matrix (because I am lazy) then I could augment the matrix with itslef, then I could do the test also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But then, what if the matrix is big&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I thought, what abut using "on error" which I think works pretty well, what say you?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS. normally when I see "error" I start looking for someone to blame, which is hard since I work moslty alone.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Sep 2011 22:54:27 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Mathcad/expanding-linterp-and-Origin/m-p/271893#M106205</guid>
      <dc:creator>wayne</dc:creator>
      <dc:date>2011-09-05T22:54:27Z</dc:date>
    </item>
    <item>
      <title>Re: expanding linterp() and Origin</title>
      <link>https://community.ptc.com/t5/Mathcad/expanding-linterp-and-Origin/m-p/271894#M106206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Added to allow for vector or matrix &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Sep 2011 23:35:37 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Mathcad/expanding-linterp-and-Origin/m-p/271894#M106206</guid>
      <dc:creator>wayne</dc:creator>
      <dc:date>2011-09-05T23:35:37Z</dc:date>
    </item>
    <item>
      <title>Re: expanding linterp() and Origin</title>
      <link>https://community.ptc.com/t5/Mathcad/expanding-linterp-and-Origin/m-p/271895#M106207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about this little mod?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Sep 2011 06:54:35 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Mathcad/expanding-linterp-and-Origin/m-p/271895#M106207</guid>
      <dc:creator>MikeArmstrong</dc:creator>
      <dc:date>2011-09-06T06:54:35Z</dc:date>
    </item>
    <item>
      <title>Re: expanding linterp() and Origin</title>
      <link>https://community.ptc.com/t5/Mathcad/expanding-linterp-and-Origin/m-p/271896#M106208</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;So I thought, what abut using "on error" which I think works pretty well, what say you? &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, I like your function, nice.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;PS. normally when I see "error" I start looking for someone to blame, which is hard since I work moslty alone.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Made me laugh &lt;IMG src="https://community.ptc.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Sep 2011 07:00:01 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Mathcad/expanding-linterp-and-Origin/m-p/271896#M106208</guid>
      <dc:creator>MikeArmstrong</dc:creator>
      <dc:date>2011-09-06T07:00:01Z</dc:date>
    </item>
    <item>
      <title>Re: expanding linterp() and Origin</title>
      <link>https://community.ptc.com/t5/Mathcad/expanding-linterp-and-Origin/m-p/271897#M106209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Simple as you like and it works with Matrices.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Clipboard01.jpg" class="jive-image" src="https://community.ptc.com/legacyfs/online/25461_Clipboard01.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Sep 2011 12:13:31 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Mathcad/expanding-linterp-and-Origin/m-p/271897#M106209</guid>
      <dc:creator>MikeArmstrong</dc:creator>
      <dc:date>2011-09-06T12:13:31Z</dc:date>
    </item>
    <item>
      <title>Re: expanding linterp() and Origin</title>
      <link>https://community.ptc.com/t5/Mathcad/expanding-linterp-and-Origin/m-p/271898#M106210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mike, how would you handle the following?&lt;/P&gt;&lt;P&gt;&lt;IMG alt="tmp.gif" class="jive-image" height="305" src="https://community.ptc.com/legacyfs/online/25466_tmp.gif" width="447" /&gt;&lt;/P&gt;&lt;P&gt;But the problem is that the function may be in a referenced file with a different ORIGIN?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The origin for the program is 1&lt;/P&gt;&lt;P&gt;The origin for the matrix is 0&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Sep 2011 13:49:58 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Mathcad/expanding-linterp-and-Origin/m-p/271898#M106210</guid>
      <dc:creator>wayne</dc:creator>
      <dc:date>2011-09-06T13:49:58Z</dc:date>
    </item>
    <item>
      <title>Re: expanding linterp() and Origin</title>
      <link>https://community.ptc.com/t5/Mathcad/expanding-linterp-and-Origin/m-p/271899#M106211</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;Wayne Reid wrote:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike, how would you handle the following?&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.ptc.com/servlet/JiveServlet/showImage/25466/tmp.gif"&gt;&lt;IMG alt="tmp.gif" class="jive-image" height="305" src="https://community.ptc.com/legacyfs/online/25466_tmp.gif" width="447" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think it would be bad practice to have ORIGIN'S locally defined within programs. Is that the case with your work?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you'll end up running into issues if it is the case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Sep 2011 14:10:28 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Mathcad/expanding-linterp-and-Origin/m-p/271899#M106211</guid>
      <dc:creator>MikeArmstrong</dc:creator>
      <dc:date>2011-09-06T14:10:28Z</dc:date>
    </item>
    <item>
      <title>Re: expanding linterp() and Origin</title>
      <link>https://community.ptc.com/t5/Mathcad/expanding-linterp-and-Origin/m-p/271900#M106212</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;Mike Armstrong wrote:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV class="jive-quote"&gt;&lt;P&gt;Wayne Reid wrote:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike, how would you handle the following?&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.ptc.com/servlet/JiveServlet/downloadImage/25466/tmp.gif"&gt;&lt;IMG alt="tmp.gif" class="jive-image" height="305" src="https://community.ptc.com/legacyfs/online/25466_tmp.gif" width="447" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think it would be bad practice to have ORIGIN'S locally defined within programs. Is that the case with your work?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you'll end up running into issues if it is the case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I use the same origin in all my work, ORIGIN=1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But for a function that perhaps could be used by others who do not use the same origin, I am just trying to make idot (or wayne) proof.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only reason I put origin in the example function is to imitate what whould happen if the function were defined in a separate file and referenced into the working file, and where the origin in each file may not be the same. The inherated value of ORIGIN in the program would be that of the referenced file. I did not acutally try yet, but pretty sure that is the case. I am certain that if ORIGIN was used inside the program, it would be that of the referenced file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Sep 2011 14:35:08 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Mathcad/expanding-linterp-and-Origin/m-p/271900#M106212</guid>
      <dc:creator>wayne</dc:creator>
      <dc:date>2011-09-06T14:35:08Z</dc:date>
    </item>
    <item>
      <title>Re: expanding linterp() and Origin</title>
      <link>https://community.ptc.com/t5/Mathcad/expanding-linterp-and-Origin/m-p/271901#M106213</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;I use the same origin in all my work, ORIGIN=1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But for a function that perhaps could be used by others who do not use the same origin, I am just trying to make idot (or wayne) proof.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only reason I put origin in the example function is to imitate what whould happen if the function were defined in a separate file and referenced into the working file, and where the origin in each file may not be the same. The inherated value of ORIGIN in the program would be that of the referenced file. I did not acutally try yet, but pretty sure that is the case. I am certain that if ORIGIN was used inside the program, it would be that of the referenced file.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your correct. The ORIGIN defined within the reference file takes presidents over the locally defined ORIGIN. As long as ORIGIN is not globally defined.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Sep 2011 14:54:21 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Mathcad/expanding-linterp-and-Origin/m-p/271901#M106213</guid>
      <dc:creator>MikeArmstrong</dc:creator>
      <dc:date>2011-09-06T14:54:21Z</dc:date>
    </item>
    <item>
      <title>Re: expanding linterp() and Origin</title>
      <link>https://community.ptc.com/t5/Mathcad/expanding-linterp-and-Origin/m-p/271902#M106214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Mike,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the error function method is truly independent of any inherited ORIGIN and will selected the current ORIGIN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the method you propose, which I like also, something still needs to be done achieve this independence. If the function is defined in the same file, it will work just fine. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: you could also change ORIGIN multiple times in a file, the Matrices would all adjust to the current ORIGIN, but the program would not. (I know this would be a bad idea, but it might be that someone may actually have a good reason in certain situations) (I can't think of one though)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Sep 2011 15:32:03 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Mathcad/expanding-linterp-and-Origin/m-p/271902#M106214</guid>
      <dc:creator>wayne</dc:creator>
      <dc:date>2011-09-06T15:32:03Z</dc:date>
    </item>
    <item>
      <title>Re: expanding linterp() and Origin</title>
      <link>https://community.ptc.com/t5/Mathcad/expanding-linterp-and-Origin/m-p/271903#M106215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have a look at the attached Wayne,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The function 'seq' is based on an origin of 0, thus so is Mat, but if ORIGIN is defined as 1 above the origin(Mat) function the answers yields a 1, but the function Mat is based on an origin of zero.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Sep 2011 20:00:42 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Mathcad/expanding-linterp-and-Origin/m-p/271903#M106215</guid>
      <dc:creator>MikeArmstrong</dc:creator>
      <dc:date>2011-09-06T20:00:42Z</dc:date>
    </item>
    <item>
      <title>Re: expanding linterp() and Origin</title>
      <link>https://community.ptc.com/t5/Mathcad/expanding-linterp-and-Origin/m-p/271904#M106216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've been playing around with it and can't seem to find the answer. All all depends on where the ORIGIN is defined. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tricky one this Wayne, keep us posted with the route you take.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Sep 2011 20:09:12 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Mathcad/expanding-linterp-and-Origin/m-p/271904#M106216</guid>
      <dc:creator>MikeArmstrong</dc:creator>
      <dc:date>2011-09-06T20:09:12Z</dc:date>
    </item>
    <item>
      <title>Re: expanding linterp() and Origin</title>
      <link>https://community.ptc.com/t5/Mathcad/expanding-linterp-and-Origin/m-p/271905#M106217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mike,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems that matircies take on the current ORIGIN, regardless of what the ORIGIN was when it was defined. If you change the ORIGIN, the indices change accordingly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Programs however, seem to retain the inherent ORIGIN under which they were deffined. You can define the ORIGIN inside the program, but the matrices will adjust to the ORIGIN that the program was defined under and do not adjust to re-definition of ORIGIN inside a program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I am thinking that if you define a matrix, say M[1 = 0, you can test to see if it has one or two elements, this will tell what the origin of the program is, and therefore the origin for the input matrices. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think this is the case, see attached.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Sep 2011 21:54:29 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Mathcad/expanding-linterp-and-Origin/m-p/271905#M106217</guid>
      <dc:creator>wayne</dc:creator>
      <dc:date>2011-09-06T21:54:29Z</dc:date>
    </item>
    <item>
      <title>Re: expanding linterp() and Origin</title>
      <link>https://community.ptc.com/t5/Mathcad/expanding-linterp-and-Origin/m-p/271906#M106218</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;It seems that matircies take on the current ORIGIN, regardless of what the ORIGIN was when it was defined. If you change the ORIGIN, the indices change accordingly.&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I think it depends on how the matrix defined. In the worksheet you posted the ORIGIN of Mat does not change if ORIGIN is defined locally, because the 'seq' function is defined above the first locally defined ORIGIN and takes the worksheet ORIGIN settings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Sep 2011 09:47:03 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Mathcad/expanding-linterp-and-Origin/m-p/271906#M106218</guid>
      <dc:creator>MikeArmstrong</dc:creator>
      <dc:date>2011-09-07T09:47:03Z</dc:date>
    </item>
    <item>
      <title>Re: expanding linterp() and Origin</title>
      <link>https://community.ptc.com/t5/Mathcad/expanding-linterp-and-Origin/m-p/271907#M106219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mike,&lt;BR /&gt;I think I understand now, sort of a lot of fuss about nothing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The indices for Matrices reflect the currently assigned value of ORIGIN, regardless what the ORIGIN was when it was constructed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Programs inherit the value of ORIGIN that was current when the program was defined.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It actually doesn't matter since the output matrices from the program will take on the value of ORIGIN currently outside the program or where ever the function is called.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only problem is when you write a program and that uses the value of ORIGIN in the program (i=1..10 for ORIGIN=1 or i=0..10 for ORIGIN =0) and then copy that program into a work sheet with a different origin, then the inherited ORIGIN and the ORIGIN assumed in the program will not agree.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The function I provided that establishes the inherited ORIGIN and then use ranges like ( i=origin..rows(M)-1+origin) I haven't really worried about this, and don't know that I will. Also, in other programs that I have seen, I don't see this addresses either. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there bettter way to make the fuction independent of the value of ORIGIN, because what I did is kind of a pain.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Sep 2011 16:16:37 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Mathcad/expanding-linterp-and-Origin/m-p/271907#M106219</guid>
      <dc:creator>wayne</dc:creator>
      <dc:date>2011-09-07T16:16:37Z</dc:date>
    </item>
    <item>
      <title>Re: expanding linterp() and Origin</title>
      <link>https://community.ptc.com/t5/Mathcad/expanding-linterp-and-Origin/m-p/271908#M106220</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;Mike,&lt;/P&gt;&lt;P&gt;I think I understand now, sort of a lot of fuss about nothing.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Me too &lt;IMG src="https://community.ptc.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;The indices for Matrices reflect the currently assigned value of ORIGIN, regardless what the ORIGIN was when it was constructed.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Correct&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Programs inherit the value of ORIGIN that was current when the program was defined.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Correct&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;The only problem is when you write a program and that uses the value of ORIGIN in the program (i=1..10 for ORIGIN=1 or i=0..10 for ORIGIN =0) and then copy that program into a work sheet with a different origin, then the inherited ORIGIN and the ORIGIN assumed in the program will not agree.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Yes this could be an issue. &lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Is there bettter way to make the fuction independent of the value of ORIGIN, because what I did is kind of a pain.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I think I am out of ideas to be honest Wayne. It's a tricky one - Best thing is to do everything to ORIGIN = 0 &lt;IMG src="https://community.ptc.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Sep 2011 20:21:58 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Mathcad/expanding-linterp-and-Origin/m-p/271908#M106220</guid>
      <dc:creator>MikeArmstrong</dc:creator>
      <dc:date>2011-09-07T20:21:58Z</dc:date>
    </item>
    <item>
      <title>Re: expanding linterp() and Origin</title>
      <link>https://community.ptc.com/t5/Mathcad/expanding-linterp-and-Origin/m-p/271909#M106221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mike,&lt;/P&gt;&lt;P&gt;You had a type, but we all know you ment we should use ORIGIN = 1. &lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.ptc.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Wayne&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Sep 2011 22:00:23 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Mathcad/expanding-linterp-and-Origin/m-p/271909#M106221</guid>
      <dc:creator>wayne</dc:creator>
      <dc:date>2011-09-07T22:00:23Z</dc:date>
    </item>
    <item>
      <title>Re: expanding linterp() and Origin</title>
      <link>https://community.ptc.com/t5/Mathcad/expanding-linterp-and-Origin/m-p/271910#M106222</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;&lt;/P&gt;&lt;P&gt;You had a type, but we all know you ment we should use ORIGIN = 1. &lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.ptc.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;IMG src="https://community.ptc.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2011 06:34:35 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Mathcad/expanding-linterp-and-Origin/m-p/271910#M106222</guid>
      <dc:creator>MikeArmstrong</dc:creator>
      <dc:date>2011-09-08T06:34:35Z</dc:date>
    </item>
  </channel>
</rss>

