<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
  <channel>
    <title>MaplePrimes - answers and comments on Question, Interpolation for large number of points</title>
    <link>http://www.mapleprimes.com/questions/37099-Interpolation-For-Large-Number-Of-Points</link>
    <language>en-us</language>
    <copyright>2026 Maplesoft, A Division of Waterloo Maple Inc.</copyright>
    <generator>Maplesoft Document System</generator>
    <lastBuildDate>Sat, 13 Jun 2026 18:18:47 GMT</lastBuildDate>
    <pubDate>Sat, 13 Jun 2026 18:18:47 GMT</pubDate>
    <itunes:subtitle />
    <itunes:summary />
    <description>The latest answers and comments added to the Question, Interpolation for large number of points</description>
    <image>
      <url>http://www.mapleprimes.com/images/mapleprimeswhite.jpg</url>
      <title>MaplePrimes - answers and comments on Question, Interpolation for large number of points</title>
      <link>http://www.mapleprimes.com/questions/37099-Interpolation-For-Large-Number-Of-Points</link>
    </image>
    <item>
      <title>Expression</title>
      <link>http://www.mapleprimes.com/questions/37099-Interpolation-For-Large-Number-Of-Points?ref=Feed:MaplePrimes:Interpolation for large number of points:Comments#answer65084</link>
      <itunes:summary>&lt;p&gt;There is presumably no closed-form expression for y(r).&amp;nbsp; If you want a good approximation on a particular interval, you might try something from the numapprox package, perhaps chebyshev or chebpade.&amp;nbsp;&amp;nbsp; Interpolation is _not_ likely to give good results.&amp;nbsp; But I don't know why you think you need &amp;quot;an expression&amp;quot; for y(r).&lt;/p&gt;
&lt;p&gt;Hmmm, it looks like chebpade has trouble with dsolve(..., numeric) output.&amp;nbsp; This may warrant further investigation.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;There is presumably no closed-form expression for y(r).&amp;nbsp; If you want a good approximation on a particular interval, you might try something from the numapprox package, perhaps chebyshev or chebpade.&amp;nbsp;&amp;nbsp; Interpolation is _not_ likely to give good results.&amp;nbsp; But I don't know why you think you need &amp;quot;an expression&amp;quot; for y(r).&lt;/p&gt;
&lt;p&gt;Hmmm, it looks like chebpade has trouble with dsolve(..., numeric) output.&amp;nbsp; This may warrant further investigation.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description>
      <guid>65084</guid>
      <pubDate>Sat, 27 Jun 2009 04:14:57 Z</pubDate>
      <itunes:author>Robert Israel</itunes:author>
      <author>Robert Israel</author>
    </item>
    <item>
      <title>Why I need expression for y(r)</title>
      <link>http://www.mapleprimes.com/questions/37099-Interpolation-For-Large-Number-Of-Points?ref=Feed:MaplePrimes:Interpolation for large number of points:Comments#answer65085</link>
      <itunes:summary>I have to plug that expression for y(r) in two simultaneous integral equations and solve them using NRapson. I need to keep changing everything till Nrapson starts converging.

Thanks again for all the help 
MS
 </itunes:summary>
      <description>I have to plug that expression for y(r) in two simultaneous integral equations and solve them using NRapson. I need to keep changing everything till Nrapson starts converging.

Thanks again for all the help 
MS
 </description>
      <guid>65085</guid>
      <pubDate>Sat, 27 Jun 2009 04:15:16 Z</pubDate>
      <itunes:author>manjees</itunes:author>
      <author>manjees</author>
    </item>
    <item>
      <title>not able to get chebyshev workin...</title>
      <link>http://www.mapleprimes.com/questions/37099-Interpolation-For-Large-Number-Of-Points?ref=Feed:MaplePrimes:Interpolation for large number of points:Comments#answer65086</link>
      <itunes:summary>basically m not able to direct the dsolve output to this command..

any suggestions
thanks</itunes:summary>
      <description>basically m not able to direct the dsolve output to this command..

any suggestions
thanks</description>
      <guid>65086</guid>
      <pubDate>Sat, 27 Jun 2009 08:16:33 Z</pubDate>
      <itunes:author>manjees</itunes:author>
      <author>manjees</author>
    </item>
    <item>
      <title>not sure</title>
      <link>http://www.mapleprimes.com/questions/37099-Interpolation-For-Large-Number-Of-Points?ref=Feed:MaplePrimes:Interpolation for large number of points:Comments#answer65087</link>
      <itunes:summary>&lt;p&gt;I'm still not sure I understand your question, but perhaps &lt;a target="_blank" href="http://www.mapleprimes.com/forum/whatmapleequivalentmatlabsaxisinfinfinfinf"&gt;this thread&lt;/a&gt; will help.&lt;/p&gt;
&lt;p&gt;from a plot structure named p, you can extract the data points with&lt;/p&gt;
&lt;pre&gt;
map(x-&amp;gt;op(1,x),op([1,1],p)):
map(x-&amp;gt;op(2,x),op([1,1],p)):&lt;/pre&gt;
&lt;p&gt;the first line extracts the x-values, the second line the y-values, you can then rearrange them into an array. There is probably a way to do that with one line of code, but since I just found out about this map trick two minutes ago I'm not sufficiently competent to help with this.&lt;/p&gt;
&lt;p&gt;All the best manjees.&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;I'm still not sure I understand your question, but perhaps &lt;a target="_blank" href="http://www.mapleprimes.com/forum/whatmapleequivalentmatlabsaxisinfinfinfinf"&gt;this thread&lt;/a&gt; will help.&lt;/p&gt;
&lt;p&gt;from a plot structure named p, you can extract the data points with&lt;/p&gt;
&lt;pre&gt;
map(x-&amp;gt;op(1,x),op([1,1],p)):
map(x-&amp;gt;op(2,x),op([1,1],p)):&lt;/pre&gt;
&lt;p&gt;the first line extracts the x-values, the second line the y-values, you can then rearrange them into an array. There is probably a way to do that with one line of code, but since I just found out about this map trick two minutes ago I'm not sufficiently competent to help with this.&lt;/p&gt;
&lt;p&gt;All the best manjees.&lt;/p&gt;</description>
      <guid>65087</guid>
      <pubDate>Sat, 27 Jun 2009 17:09:45 Z</pubDate>
      <itunes:author>PatrickT</itunes:author>
      <author>PatrickT</author>
    </item>
    <item>
      <title>integral equation</title>
      <link>http://www.mapleprimes.com/questions/37099-Interpolation-For-Large-Number-Of-Points?ref=Feed:MaplePrimes:Interpolation for large number of points:Comments#comment65088</link>
      <itunes:summary>&lt;p&gt;Well then, you're asking the wrong question.&amp;nbsp; You don't need an expression for y(r), you need to know how to calculate integrals involving y(r).&amp;nbsp; For example, suppose you want to calculate int(y(r)*cos(r), t = 1 .. 2) where y(r) is a solution of differential equation de with initial conditions ic:&lt;/p&gt;
&lt;p&gt;&amp;gt; S := dsolve({de, ic}, y(r), numeric, output=listprocedure);&lt;br /&gt;
&amp;nbsp;&amp;nbsp; Y:= subs(S, y(r));&lt;/p&gt;
&lt;p&gt;Now the following might work:&lt;/p&gt;
&lt;p&gt;&amp;gt; evalf(Int(Y(r)^2 * cos(r), r = 1 .. 2));&lt;/p&gt;
&lt;p&gt;If not, you might try this:&lt;/p&gt;
&lt;p&gt;&amp;gt; S2:= dsolve({diff(J(r),r) = Y(r)^2 * cos(r), J(1) = 0}, J(r), numeric);&lt;br /&gt;
&amp;nbsp;&amp;nbsp; subs(S2(2), J(r));&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;Well then, you're asking the wrong question.&amp;nbsp; You don't need an expression for y(r), you need to know how to calculate integrals involving y(r).&amp;nbsp; For example, suppose you want to calculate int(y(r)*cos(r), t = 1 .. 2) where y(r) is a solution of differential equation de with initial conditions ic:&lt;/p&gt;
&lt;p&gt;&amp;gt; S := dsolve({de, ic}, y(r), numeric, output=listprocedure);&lt;br /&gt;
&amp;nbsp;&amp;nbsp; Y:= subs(S, y(r));&lt;/p&gt;
&lt;p&gt;Now the following might work:&lt;/p&gt;
&lt;p&gt;&amp;gt; evalf(Int(Y(r)^2 * cos(r), r = 1 .. 2));&lt;/p&gt;
&lt;p&gt;If not, you might try this:&lt;/p&gt;
&lt;p&gt;&amp;gt; S2:= dsolve({diff(J(r),r) = Y(r)^2 * cos(r), J(1) = 0}, J(r), numeric);&lt;br /&gt;
&amp;nbsp;&amp;nbsp; subs(S2(2), J(r));&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description>
      <guid>65088</guid>
      <pubDate>Mon, 29 Jun 2009 07:22:05 Z</pubDate>
      <itunes:author>Robert Israel</itunes:author>
      <author>Robert Israel</author>
    </item>
    <item>
      <title>Both methods work</title>
      <link>http://www.mapleprimes.com/questions/37099-Interpolation-For-Large-Number-Of-Points?ref=Feed:MaplePrimes:Interpolation for large number of points:Comments#comment65089</link>
      <itunes:summary>&lt;p&gt;Both methods work ... but yield slightly different values. Interesting.&lt;/p&gt;
&lt;pre&gt;
&amp;gt; de := diff(y(r), r) = 1:
&amp;nbsp;&amp;nbsp; ic := y(0)=1:
&amp;gt; S := dsolve({de, ic}, y(r), numeric, output=listprocedure):
&amp;nbsp;&amp;nbsp; Y:= subs(S, y(r)):

&amp;gt; evalf(Int(Y(r)^2 * cos(r), r = 1 .. 2));

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.02404977541

&amp;gt; S2:= dsolve({diff(J(r),r) = Y(r)^2 * cos(r), J(1) = 0}, J(r), numeric):
&amp;nbsp;&amp;nbsp; subs(S2(2), J(r)); 

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.0240498760230187549

&lt;/pre&gt;</itunes:summary>
      <description>&lt;p&gt;Both methods work ... but yield slightly different values. Interesting.&lt;/p&gt;
&lt;pre&gt;
&amp;gt; de := diff(y(r), r) = 1:
&amp;nbsp;&amp;nbsp; ic := y(0)=1:
&amp;gt; S := dsolve({de, ic}, y(r), numeric, output=listprocedure):
&amp;nbsp;&amp;nbsp; Y:= subs(S, y(r)):

&amp;gt; evalf(Int(Y(r)^2 * cos(r), r = 1 .. 2));

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.02404977541

&amp;gt; S2:= dsolve({diff(J(r),r) = Y(r)^2 * cos(r), J(1) = 0}, J(r), numeric):
&amp;nbsp;&amp;nbsp; subs(S2(2), J(r)); 

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.0240498760230187549

&lt;/pre&gt;</description>
      <guid>65089</guid>
      <pubDate>Mon, 29 Jun 2009 22:07:03 Z</pubDate>
      <itunes:author>PatrickT</itunes:author>
      <author>PatrickT</author>
    </item>
  </channel>
</rss>