MathGroup Archive 2012

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

Search the Archive

Rules on integer elemens of the list


Hi, 
I have a list:

list = 1/(2 + 3 z) + 1./(2 + 4 z) + 2./(2 + 5 z)
Cases[list, Times[_, Power[Plus[_, Times[_, z]], -1]]]

OUT:

{1./(2 + 4 z), 2./(2 + 5 z)}

The problem is different between:
1/x//FullForm   gives Power[x,-1]
1./x//FullForm gives Times[1.,Power[x,-1]]

I have a list with big number of such expression and i have to exclude  elements like (a/(b+c x))
a cause of numerators equal 1 (not 1.)

Is a simple way to convert Numeratots 1 to 1. ??

N[2/x] works fine gives 2./x
but 
N[1/x] doesn,t work :-(

Regards , Olaf



  • Prev by Date: Re: Help with dynamic functionality
  • Next by Date: Re: Mathematica 8 Serial Port Comm.
  • Previous by thread: cauchy principal value double integral
  • Next by thread: Re: Rules on integer elemens of the list