Re: How to pass a function to a function?
- To: mathgroup at smc.vnet.net
- Subject: [mg93676] Re: [mg93653] How to pass a function to a function?
- From: Murray Eisenberg <murray at math.umass.edu>
- Date: Fri, 21 Nov 2008 05:34:22 -0500 (EST)
- Organization: Mathematics & Statistics, Univ. of Mass./Amherst
- References: <200811200957.EAA20655@smc.vnet.net>
- Reply-to: murray at math.umass.edu
You don't have to write it yourself! You may load and use the VectorAnalysis package. See the documentation for that package and, in particular, for the function (i.e., operator) Laplacian that it defines. Aaron Fude wrote: > Hi, > > How does one write a call a function that represents an operator? In > other words, it takes a function and returns another function. > > For example, if you think of the Laplacian I want to do something like > this (pseudo code): > > f[x_, y_] := x^4 +y^4 > g = Laplacian[f]; > > N[g[1, 1], 50] > > How would one write "Laplacian"? > > Many thanks in advance, > > Aaron > -- Murray Eisenberg murray at math.umass.edu Mathematics & Statistics Dept. Lederle Graduate Research Tower phone 413 549-1020 (H) University of Massachusetts 413 545-2859 (W) 710 North Pleasant Street fax 413 545-1801 Amherst, MA 01003-9305
- References:
- How to pass a function to a function?
- From: Aaron Fude <aaronfude@gmail.com>
- How to pass a function to a function?