Skip to content
Prev 367273 / 398503 Next

Error in match.fun(f) : object 'x' not found

The curve() function is being (overly?) clever in allowing nonstandard evaluation to let you specify an expression for the function argument. For integrate(), you need to go the standard way and set up an actual function of 1 argument and pass that. It's not all that hard:
1.234 with absolute error < 3.1e-07

(In fact, reading the examples on the help page for integrate() might have gotten you there faster than writing for help...)

Notice, incidentally, that curve() also works with functions:
-pd
On 21 Feb 2017, at 18:29 , C W <tmrsg11 at gmail.com> wrote: