comp.lang.idl-pvwave archive - RDF feed
type: channel
description: Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado
items: Passing function to function called by qromb etc.?

Passing function to function called by qromb etc.?
type: item
description: I would like to numerically integrate f(x) * x in IDL. This is coming up within another function which takes the function f as one of its parameters. What I would like to do is define a function xfx which computes f(x) * x for a given x and call qromb with the function xfx with a parameter of the function f. However, I cannot figure out how to do this. I thought of function xfx,x,func=f return, call_function(func,x) * x end foo=qromb(xfx,a,b,func='bar') but that does not work. What I really need is a capability like the bind argument facility of the STL. Thanks, John Wilson -- John Wilson Department of Computer Science email: jwilson@cs.colorado.edu University of Colorado at Boulder office phone: (303) 492-4740 Campus Box 430 office: CAPP Lab ECCS 112 (112c) Boulder, CO 80309-0430
creator: jwilson
date: 2000-08-16T07:00:00-00:00