Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2012

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

Search the Archive

Rules on integer elemens of the list

  • To: mathgroup at smc.vnet.net
  • Subject: [mg128838] Rules on integer elemens of the list
  • From: bar at ANTYSPAM.ap.krakow.pl
  • Date: Thu, 29 Nov 2012 06:07:47 -0500 (EST)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • Delivered-to: l-mathgroup@wolfram.com
  • Delivered-to: mathgroup-newout@smc.vnet.net
  • Delivered-to: mathgroup-newsend@smc.vnet.net

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