Best practice passing expressions to functions
- To: mathgroup at smc.vnet.net
- Subject: [mg85290] Best practice passing expressions to functions
- From: Remo Aschwanden <rcasch at yahoo.com>
- Date: Tue, 5 Feb 2008 06:08:51 -0500 (EST)
I want to write procedures that accept expressions as parameters and be
able define functions based on these expressions, i.e.
"g[x_] := exp "
The code between the " " should clarify what I intend to do. Calling
should lead to the definition of a function (or pattern)
What's the best way to do this? How can I do this without being
dependent on the variables used in the expressions ("x")?
Prev by Date:
Re: <<ImageProcessing` error
Next by Date:
Previous by thread:
Re: Equi-sized tick labels
Next by thread:
Re: Best practice passing expressions to functions