MathGroup Archive 2008

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

Search the Archive

problems with condition in ReplaceAll


Dear discussion list:

can anybody help me to find an expression in order to replace only subexpressions of which the numerator is strictly positive in the following ReplaceAll command?

\!\(ReplaceAll[1 + 0^\((1\/\(1 - 
      Ï?\_n\))\), If[FreeQ[_, 0^_], 0^_ -> If[Assuming[{0 < Ï?\_n < 
      1}, Sign[_[\([2]\)]] > 0], 0, Hold[0]], 0^_ -> 1]]\)?

I tried to use a sign command for the second part of the subexpression which is to be tested, but obviously the pattern symbol _ is not the correct wildcard symbol.

Thank you so much

frhes


  • Prev by Date: Minimize with complex values
  • Next by Date: Re: Notebook????
  • Previous by thread: Re: Minimize with complex values
  • Next by thread: graph question