Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #7870

Extract a part of expression

From Miguel Gil <misvrne@gmail.com>
Newsgroups comp.soft-sys.math.mathematica
Subject Extract a part of expression
Date 2012-01-16 11:55 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <jf137v$5ij$1@smc.vnet.net> (permalink)

Show all headers | View raw


How I can extract the full numerator (or denominator) of an expression of the form g (x) / w (x)?.
I tried to do with Numerator [expr], but returns a wrong result. I tried with the attribute HoldForm [expr] and can not get the correct result.

For example:
  expr = (x ^ 2 Cos [x] (Sin [2x], Tan [x ]))/( E ^ x * x * Csc [x] ^ 2)

Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

Extract a part of expression Miguel Gil <misvrne@gmail.com> - 2012-01-16 11:55 +0000

csiph-web