MathGroup Archive 2003

[Date Index] [Thread Index] [Author Index]

Search the Archive

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



  • Prev by Date: Re: condition and pattern matching
  • Next by Date: Programming Probability of puzzle in Mathematica
  • Previous by thread: Re: Discrete Fourier Transform
  • Next by thread: Re: Returning function with limitation on input