Re: Returning function with limitation on input
- To: mathgroup at smc.vnet.net
- Subject: [mg44915] Re: Returning function with limitation on input
- From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
- Date: Tue, 9 Dec 2003 03:32:24 -0500 (EST)
- Organization: Universitaet Leipzig
- References: <bqv1h3$svj$1@smc.vnet.net>
- Reply-to: kuska at informatik.uni-leipzig.de
- Sender: owner-wri-mathgroup at wolfram.com
Hi,
and the good old way:
a/: Conjugate[a]:=a
b/: Conjugate[b]:=b
Regards
Jens
Asaf Zarmi wrote:
>
> 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