Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #4343 > unrolled thread
| Started by | Bob Hanlon <hanlonr@cox.net> |
|---|---|
| First post | 2011-08-12 09:09 +0000 |
| Last post | 2011-08-12 09:09 +0000 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.soft-sys.math.mathematica
Re: FunctionInterpolation and NIntegrate Bob Hanlon <hanlonr@cox.net> - 2011-08-12 09:09 +0000
| From | Bob Hanlon <hanlonr@cox.net> |
|---|---|
| Date | 2011-08-12 09:09 +0000 |
| Subject | Re: FunctionInterpolation and NIntegrate |
| Message-ID | <j22qjs$gr6$1@smc.vnet.net> |
f can only be evaluated successfully for numeric arguments so restrict it..
f[r_?NumericQ] := NIntegrate[r + s, {s, 0, 1}]
g = FunctionInterpolation[f[r], {r, 0, 1}]
Bob Hanlon
---- gac <g.crlsn@gmail.com> wrote:
=============
f[r_] := NIntegrate[r + s , {s, 0, 1}]
g = FunctionInterpolation[f[r], {r, 0, 1}]
Can anyone explain why this works, yet I get the msg:
NIntegrate::inumr: "The integrand r+s has evaluated to non-numerical values for all sampling points in the region with boundaries {{0,1}}."
Can the statements be reformed to avoid the msg?
Thanks.
Glenn
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web