Post Reply 
Solving Integral Equations
04-04-2020, 05:58 PM
Post: #3
RE: Solving Integral Equations
I noticed you had post this same thread earlier, on Aug 24, 2019
Back then, I suggested reusing previous integral calculations.

Combined with previous post Algorithm 9, we have:

In[1]:= f[x_] := Exp[x^2]

In[2]:= order3[{x_, x0_, c_}] := Module[{t, Fx, fx},
               Fx = NIntegrate[f[t], {t, x0, x}] + c;
               fx = f[x];
               {x - Fx/mean[fx, f[x - Fx/fx]], x, Fx}
            ]

In[3]:= mean[a_, b_] := 2/(1/a + 1/b) (* algorithm 9 *)

In[4]:= First /@ NestList[order3, {2, 0, -0.95}, 5]

Out[4]= {2, 1.45024, 0.908868, 0.769107, 0.768033, 0.768033}
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Solving Integral Equations - Albert Chan - 04-04-2020 05:58 PM
RE: Solving Integral Equations - peacecalc - 11-03-2023, 02:28 PM



User(s) browsing this thread: 2 Guest(s)