Returning function with limitation on input
- To: mathgroup at smc.vnet.net
- Subject: [mg44897] Returning function with limitation on input
- From: "Asaf Zarmi" <asaf_zarmi at hotmail.com>
- Date: Sun, 7 Dec 2003 06:03:43 -0500 (EST)
- Sender: owner-wri-mathgroup at wolfram.com
Hi everybody,
I'm trying to write an operator which will do f[x] -> f[ (x-b) /a] /
sqrt(a). I wrote it like this:
\!\(waveletFamily[\[Psi]_, x_] := \(\[Psi] /. x -> \(x -
#2\)\/#1\)\/\@Abs[#1] &\)
the problem is, that I want mathematica to know that a and b (the inputs),
and also x are reals. if i do this:
Conjugate[waveletFamily[x, x][a, b]]
I get
\!\(\(\((\(-Conjugate[b]\) + Conjugate[x])\)\
\Conjugate[1\/\@Abs[a]]\)\/Conjugate[a]\)
I know I can solve it by calling
Refine[ Conjugate[ waveletFamily[x, x][a, b] ] , {a, b} \[Element]
Reals]
but I want mathematica to do that somehow automatically, so when I'll call
waveletFamily[x, x][a, b] It will know that a,b and x should be treated as
reals.
any suggestions?
thanks
Asaf Zarmi