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


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

Re: algebraic simplification

From "Oleksandr Rasputinov" <oleksandr_rasputinov@hmamail.com>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: algebraic simplification
Date 2011-09-29 06:06 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <j611tv$m0p$1@smc.vnet.net> (permalink)
References <j5uftg$7on$1@smc.vnet.net> <op.v2imrkb3qcgwdu@core2.lan>

Show all headers | View raw


On Wed, 28 Sep 2011 12:12:46 +0100, Oleksandr Rasputinov  
<oleksandr_rasputinov@hmamail.com> wrote:

> coeffs = Union@
>          Flatten@
>          CoefficientList[poly, {x, y}] /. 0 -> Sequence[]

Actually, this may give incorrect results for other polynomials. Better to  
use:

coeffs = Cases[
   Union@Flatten[CoefficientList[poly, {x, y}], 1],
   Except[0], {1}
   ]

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


Thread

algebraic simplification Bruno Panetta <bpanetta@gmail.com> - 2011-09-28 06:47 +0000
  Re: algebraic simplification "Oleksandr Rasputinov" <oleksandr_rasputinov@hmamail.com> - 2011-09-29 06:06 +0000
  Re: algebraic simplification Peter Pein <petsie@dordos.net> - 2011-09-29 06:08 +0000
  Re: algebraic simplification "Oleksandr Rasputinov" <oleksandr_rasputinov@hmamail.com> - 2011-09-29 06:15 +0000

csiph-web