MathGroup Archive 2003

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

Search the Archive

Re: condition and pattern matching

  • To: mathgroup at smc.vnet.net
  • Subject: [mg44890] Re: condition and pattern matching
  • From: bobhanlon at aol.com (Bob Hanlon)
  • Date: Sat, 6 Dec 2003 04:45:28 -0500 (EST)
  • References: <bqpnao$92b$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Simplify[expr, 0 < z < h]


Bob Hanlon

In article <bqpnao$92b$1 at smc.vnet.net>, "ram" <amli at comcast.net> wrote:

<< I would like to integrate the function from {0,h}.

\!\(\((E\^\(\(-I\)\ k\ Abs[\(-h\) + z]\)\/Abs[\(-h\) + z] +
        E\^\(\(-I\)\ k\ Abs[h + z]\)\/Abs[h + z] -
        \(2\ E\^\(\(-I\)\ k\ Abs[z]\)\ Cos[h\ k]\)\/Abs[z])\)\ Csc[h\ k]\^2\
    Sin[k\ \((h - Abs[z])\)]\)

Is there any way that I can replace Abs function by its values?  I know that
the following cases for condition matching work

fac[n_ /; n > 0] := n!
m /:Greater[m,n]=True;
fac[m]
gg[m_,n_]:=m-n /; m>n
u/:Greater[u,v]=True;
gg[u,v]

But I can not find a way to apply  above ideas when expressions are
involved.  Thanks for any help.


  • Prev by Date: Re: Insert object - re-open file problem
  • Next by Date: Re: Re: Suggestion: Visualization of complex functions with Mathematica
  • Previous by thread: Re: condition and pattern matching
  • Next by thread: Problem with Mathematica Cell Settings