Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #4685
| From | Andrzej Kozlowski <akoz@mimuw.edu.pl> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: FullSimplify and Coefficient |
| Date | 2011-08-31 11:43 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <j3l6os$d9c$1@smc.vnet.net> (permalink) |
| References | <201108311005.GAA12121@smc.vnet.net> |
On 31 Aug 2011, at 12:05, azerty17 wrote:
> Hello,
>
> I have some problems when using FullSimplify and Coefficient together.
> Basically I obtain a non zero result when typing this kind of command
:
>
> ( Coefficient[Expr, A^2*B] - Coefficient[(Expr//FullSimplify), A^2*B]
) //FullSimplify
>
> which seems quite strange. Any idea of why I don't get zero ?
>
> Thanks !
>
You don't give any example of Expr, which is very annoying because it
forces anyone trying to answer your question to do extra work
constructing one.
Anyway, I can't be 100% sure what happens in your case, but it seems
that Coefficient uses Simplify but not FullSimplify on the expression
that it is applied to, which means that you can get a different answer
in certain cases like this one:
Coefficient[a^2*b*Gamma[a^2*b], a^2*b]
Gamma[a^2*b]
but
Coefficient[FullSimplify[a^2*b*Gamma[a^2*b]], a^2*b]
0
In fact the concept of "coefficient" is defined correctly only for
polynomial expressions and I suspect your Expr is not one (can't be sure
since you do not give it).
Note that SeriesCoefficient does not exhibit this problem:
In[56]:= SeriesCoefficient[a^2*b*Gamma[a^2*b], {a, 0, 2}, {b, 0, 1}]
Out[56]= -EulerGamma
In[57]:= SeriesCoefficient[FullSimplify[a^2*b*Gamma[a^2*b]], {a, 0,
2}, {b, 0, 1}]
Out[57]= -EulerGamma
Andrzej Kozlowski
Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread
Re: FullSimplify and Coefficient Andrzej Kozlowski <akoz@mimuw.edu.pl> - 2011-08-31 11:43 +0000
csiph-web