<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
  <channel>
    <title>MaplePrimes - answers and comments on Question, How do I apply a range of values to a variable in an equation or function?</title>
    <link>http://www.mapleprimes.com/questions/142673-How-Do-I-Apply-A-Range-Of-Values-To</link>
    <language>en-us</language>
    <copyright>2026 Maplesoft, A Division of Waterloo Maple Inc.</copyright>
    <generator>Maplesoft Document System</generator>
    <lastBuildDate>Tue, 09 Jun 2026 14:16:45 GMT</lastBuildDate>
    <pubDate>Tue, 09 Jun 2026 14:16:45 GMT</pubDate>
    <itunes:subtitle />
    <itunes:summary />
    <description>The latest answers and comments added to the Question, How do I apply a range of values to a variable in an equation or function?</description>
    <image>
      <url>http://www.mapleprimes.com/images/mapleprimeswhite.jpg</url>
      <title>MaplePrimes - answers and comments on Question, How do I apply a range of values to a variable in an equation or function?</title>
      <link>http://www.mapleprimes.com/questions/142673-How-Do-I-Apply-A-Range-Of-Values-To</link>
    </image>
    <item>
      <title>How to plot</title>
      <link>http://www.mapleprimes.com/questions/142673-How-Do-I-Apply-A-Range-Of-Values-To?ref=Feed:MaplePrimes:How do I apply a range of values to a variable in an equation or function?:Comments#answer142675</link>
      <itunes:summary>&lt;p&gt;First, get rid of the line &lt;strong&gt;k:= 0, 1..npts/2&lt;/strong&gt;. Do a &lt;strong&gt;restart&lt;/strong&gt; to eliminate the effect of that command. Then, at the end, do&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;plot(Zuncomp(k), k= 0..npts/2, labels= ["k", "Zuncomp"])&lt;/strong&gt;&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;First, get rid of the line &lt;strong&gt;k:= 0, 1..npts/2&lt;/strong&gt;. Do a &lt;strong&gt;restart&lt;/strong&gt; to eliminate the effect of that command. Then, at the end, do&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;plot(Zuncomp(k), k= 0..npts/2, labels= ["k", "Zuncomp"])&lt;/strong&gt;&lt;/p&gt;</description>
      <guid>142675</guid>
      <pubDate>Sun, 27 Jan 2013 05:07:48 Z</pubDate>
      <itunes:author>Carl Love</itunes:author>
      <author>Carl Love</author>
    </item>
    <item>
      <title>Spotted a typo DC should be 113700m (113.7km</title>
      <link>http://www.mapleprimes.com/questions/142673-How-Do-I-Apply-A-Range-Of-Values-To?ref=Feed:MaplePrimes:How do I apply a range of values to a variable in an equation or function?:Comments#answer142719</link>
      <itunes:summary>&lt;p&gt;Spotted a typo DC should be 113700m (113.7km) - still does not solve the problem&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;Spotted a typo DC should be 113700m (113.7km) - still does not solve the problem&lt;/p&gt;</description>
      <guid>142719</guid>
      <pubDate>Mon, 28 Jan 2013 04:04:07 Z</pubDate>
      <itunes:author>arctica1963</itunes:author>
      <author>arctica1963</author>
    </item>
    <item>
      <title>flexp needs to be a function</title>
      <link>http://www.mapleprimes.com/questions/142673-How-Do-I-Apply-A-Range-Of-Values-To?ref=Feed:MaplePrimes:How do I apply a range of values to a variable in an equation or function?:Comments#answer142727</link>
      <itunes:summary>&lt;p&gt;I found two problems. The first one I don't really understand, but anyway, I needed to retype &lt;em&gt;Zpratt&lt;/em&gt; in the plot command. I could tell there was something wrong with it because the "pratt" was not in italics.&lt;/p&gt;
&lt;p&gt;The second problem is more mathematical. You need to make &lt;em&gt;flexp&lt;/em&gt; a function of &lt;em&gt;k&lt;/em&gt;, &lt;em&gt;i.e. &lt;/em&gt;you need a "&lt;em&gt;k -&amp;gt;&lt;/em&gt;" in front of the expression. Then when you refer to &lt;em&gt;flexp&lt;/em&gt; in the two final &lt;em&gt;Z &lt;/em&gt;function definitions, make it &lt;em&gt;flexp(k)&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;As for putting the plots together, the command is &lt;strong&gt;plots:-display&lt;/strong&gt;, not simply &lt;strong&gt;display&lt;/strong&gt;. So,&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;plots:-display([A,B, &lt;/strong&gt;&lt;em&gt;etc.&lt;/em&gt;&lt;strong&gt;]);&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Finally, there are &lt;strong&gt;linestyles &lt;/strong&gt;other than &lt;strong&gt;dash&lt;/strong&gt;. They are &lt;strong&gt;solid&lt;/strong&gt;, &lt;strong&gt;dot&lt;/strong&gt;, &lt;strong&gt;dash&lt;/strong&gt;, &lt;strong&gt;dashdot&lt;/strong&gt;, &lt;strong&gt;longdash&lt;/strong&gt;, &lt;strong&gt;spacedash&lt;/strong&gt;, or &lt;strong&gt;spacedot&lt;/strong&gt;.&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;I found two problems. The first one I don't really understand, but anyway, I needed to retype &lt;em&gt;Zpratt&lt;/em&gt; in the plot command. I could tell there was something wrong with it because the "pratt" was not in italics.&lt;/p&gt;
&lt;p&gt;The second problem is more mathematical. You need to make &lt;em&gt;flexp&lt;/em&gt; a function of &lt;em&gt;k&lt;/em&gt;, &lt;em&gt;i.e. &lt;/em&gt;you need a "&lt;em&gt;k -&amp;gt;&lt;/em&gt;" in front of the expression. Then when you refer to &lt;em&gt;flexp&lt;/em&gt; in the two final &lt;em&gt;Z &lt;/em&gt;function definitions, make it &lt;em&gt;flexp(k)&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;As for putting the plots together, the command is &lt;strong&gt;plots:-display&lt;/strong&gt;, not simply &lt;strong&gt;display&lt;/strong&gt;. So,&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;plots:-display([A,B, &lt;/strong&gt;&lt;em&gt;etc.&lt;/em&gt;&lt;strong&gt;]);&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Finally, there are &lt;strong&gt;linestyles &lt;/strong&gt;other than &lt;strong&gt;dash&lt;/strong&gt;. They are &lt;strong&gt;solid&lt;/strong&gt;, &lt;strong&gt;dot&lt;/strong&gt;, &lt;strong&gt;dash&lt;/strong&gt;, &lt;strong&gt;dashdot&lt;/strong&gt;, &lt;strong&gt;longdash&lt;/strong&gt;, &lt;strong&gt;spacedash&lt;/strong&gt;, or &lt;strong&gt;spacedot&lt;/strong&gt;.&lt;/p&gt;</description>
      <guid>142727</guid>
      <pubDate>Mon, 28 Jan 2013 08:08:52 Z</pubDate>
      <itunes:author>Carl Love</itunes:author>
      <author>Carl Love</author>
    </item>
    <item>
      <title>I added the changes you spotted, but the</title>
      <link>http://www.mapleprimes.com/questions/142673-How-Do-I-Apply-A-Range-Of-Values-To?ref=Feed:MaplePrimes:How do I apply a range of values to a variable in an equation or function?:Comments#answer142733</link>
      <itunes:summary>&lt;p&gt;I added the changes you spotted, but the last plot is incorrect compared to the SCILAB output, so need to investigate that. Otherwise so far so good it is all getting there. One thing I needed to remember was that restart clears the variables and so they need to be reinitialised.&lt;br&gt;&lt;br&gt;&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;I added the changes you spotted, but the last plot is incorrect compared to the SCILAB output, so need to investigate that. Otherwise so far so good it is all getting there. One thing I needed to remember was that restart clears the variables and so they need to be reinitialised.&lt;br&gt;&lt;br&gt;&lt;/p&gt;</description>
      <guid>142733</guid>
      <pubDate>Mon, 28 Jan 2013 12:20:41 Z</pubDate>
      <itunes:author>arctica1963</itunes:author>
      <author>arctica1963</author>
    </item>
    <item>
      <title>The plots now all work! Also spotted that</title>
      <link>http://www.mapleprimes.com/questions/142673-How-Do-I-Apply-A-Range-Of-Values-To?ref=Feed:MaplePrimes:How do I apply a range of values to a variable in an equation or function?:Comments#answer142755</link>
      <itunes:summary>&lt;p&gt;The plots now all work! Also spotted that I needed a different flexp parameter for the Zsubload, so put that in and the plot scale was all sorted. Bit fiddly but got there in the end :) Thanks for the help on this, still pretty new with using Maple so it takes a little getting used to.&lt;/p&gt;
&lt;p&gt;The equations relate to different isostatic models of the Earth's lithosphere (the Crust and uppermost mantle) to see how they vary with wavelength and the admittance function (Z(k) )=fft(gravity)/fft(topography). The actual equations simplify to more usable structures.&lt;/p&gt;
&lt;p&gt;I am a geologist by training and currently completing a PhD in geodynamics.&lt;/p&gt;
&lt;p&gt;The equations are found in the book by Tony Watts - Isostasy and flexure of the lithosphere (2001)&lt;/p&gt;
&lt;p&gt;Have some more complex functions to work on in Maple so will give those a try later on. Early days with Maple and I am sure I will have more queries as I learn it more.&lt;/p&gt;
&lt;p&gt;Thanks again for the help&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;The plots now all work! Also spotted that I needed a different flexp parameter for the Zsubload, so put that in and the plot scale was all sorted. Bit fiddly but got there in the end :) Thanks for the help on this, still pretty new with using Maple so it takes a little getting used to.&lt;/p&gt;
&lt;p&gt;The equations relate to different isostatic models of the Earth's lithosphere (the Crust and uppermost mantle) to see how they vary with wavelength and the admittance function (Z(k) )=fft(gravity)/fft(topography). The actual equations simplify to more usable structures.&lt;/p&gt;
&lt;p&gt;I am a geologist by training and currently completing a PhD in geodynamics.&lt;/p&gt;
&lt;p&gt;The equations are found in the book by Tony Watts - Isostasy and flexure of the lithosphere (2001)&lt;/p&gt;
&lt;p&gt;Have some more complex functions to work on in Maple so will give those a try later on. Early days with Maple and I am sure I will have more queries as I learn it more.&lt;/p&gt;
&lt;p&gt;Thanks again for the help&lt;/p&gt;</description>
      <guid>142755</guid>
      <pubDate>Tue, 29 Jan 2013 00:05:50 Z</pubDate>
      <itunes:author>arctica1963</itunes:author>
      <author>arctica1963</author>
    </item>
    <item>
      <title>Just a quick query. Now that I have the plot</title>
      <link>http://www.mapleprimes.com/questions/142673-How-Do-I-Apply-A-Range-Of-Values-To?ref=Feed:MaplePrimes:How do I apply a range of values to a variable in an equation or function?:Comments#answer142763</link>
      <itunes:summary>&lt;p&gt;Just a quick query. Now that I have the plot generated with the wavenumber (k) on the x-axis (bottom), is it possible to have a different scale on the top x-axis which is the wavelength? So we would have a linear wavenumber scale on the bottom and the corresponding wavelength on the top:&lt;/p&gt;
&lt;p&gt;wavelength = 2*Pi / wavenumber(k)&lt;/p&gt;
&lt;p&gt;I can alter the properties of the graph from the menu options, but the secondary axis only applies to Y and not X&lt;/p&gt;
&lt;p&gt;Will be interested to know how this would work and if it is easy or tricky to do.&lt;/p&gt;
&lt;p&gt;Cheers&lt;/p&gt;
&lt;p&gt;&lt;a href="/view.aspx?sf=142763/452537/FAA_isostatic1e.mw"&gt;FAA_isostatic1e.mw&lt;/a&gt;&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;Just a quick query. Now that I have the plot generated with the wavenumber (k) on the x-axis (bottom), is it possible to have a different scale on the top x-axis which is the wavelength? So we would have a linear wavenumber scale on the bottom and the corresponding wavelength on the top:&lt;/p&gt;
&lt;p&gt;wavelength = 2*Pi / wavenumber(k)&lt;/p&gt;
&lt;p&gt;I can alter the properties of the graph from the menu options, but the secondary axis only applies to Y and not X&lt;/p&gt;
&lt;p&gt;Will be interested to know how this would work and if it is easy or tricky to do.&lt;/p&gt;
&lt;p&gt;Cheers&lt;/p&gt;
&lt;p&gt;&lt;a href="/view.aspx?sf=142763/452537/FAA_isostatic1e.mw"&gt;FAA_isostatic1e.mw&lt;/a&gt;&lt;/p&gt;</description>
      <guid>142763</guid>
      <pubDate>Tue, 29 Jan 2013 03:21:04 Z</pubDate>
      <itunes:author>arctica1963</itunes:author>
      <author>arctica1963</author>
    </item>
  </channel>
</rss>