Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #11436
| From | Roland Franzius <roland.franzius@uos.de> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: V8 slow like a snail |
| Date | 2012-08-21 09:02 +0000 |
| Message-ID | <k0vir2$oun$1@smc.vnet.net> (permalink) |
| References | <k0fjaj$q71$1@smc.vnet.net> <k0fqto$r07$1@smc.vnet.net> <k0uos9$n7l$1@smc.vnet.net> |
| Organization | Time-Warner Telecom |
Am 21.08.2012 03:39, schrieb Dr. Wolfgang Hintze:
>>>>> Consider this integral for which we can safely expect Mathematica to
>>>>> be expert in solving:
>>
>>>>> f1[n_, m_] :=
>>>>> Integrate[n t^m Exp[-n t] (Exp[t] - 1)^(n - 1), {t, 0, \[Infin=
> ity]},
>>>>> Assumptions -> {{n, m} \[Element] Integers, m >= 0, n > 0}]
>>
>>>>> I carried out Timing[f1[n, m]] for m=0,1,2,3,10 in both versions. H=
> ere
>>>>> are the results in the format
>> But compare your results with thos after the standard substitution
>>
>> exp(-t) ->u, t->-Log[u], dt -> -du/u {t,0,oo}-> {u,0,1}
>>
>> h1[n_, m_] :=
>> Integrate[n (-Log[u])^m (1 - u)^(n - 1), {u, 0, 1},
>> Assumptions -> {{n} \[Element] Integers, n > 0}]
>
> I'm well aware of how to handle Mathematica i.e. to help it get to
> results (since 2003 in this group).
> However, as a conservative software user this was my first version
> change in Mathematica, and I didn't expect the differences be so grave
> when simply comparing the same commands.
>
> Your substitution is so obvious that exactly for this reason one could
> possibly expect Mathematica to do it by itself. But ok, in this form
> the integration in V8 is quick.
>
> And after all, one of the charming features of Mathematica is just the
> "human-like" behaviour to sometimes failing but with some help finally
> reaching the goal.
At least you found a real bug in vs 8.
Mathematica uses generalized hypergeometric series to express a wide
class of integrals containing Pochhammer symbols wich arise in partial
integration of expression(x)^n.
But some of these series dont work for integer parameters or need
special regularizations by Gamma factors.
In this case the indefinite integrals over the variable t are expressed
in terms of
HypergeometricPFQ[{-n,-n...},{1-n,1-n,...},, e^t]
Mathematica is not able to determine Limits for t->0 and t->oo. Moreover
these special hypergeometric series even seem to have no limits for
integer n.
So I suspect the time is vasted for determining the limits for real
noninteger n (Limit takes some 50-100 seconds to retun no result) and
after failing the standard substituition list is applied.
The general integration rule complex for "algebraic expression of powers
and exponentials" seems to miss a preprocessing for the exception of
integer n and m.
--
Roland Franzius
Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
V8 slow like a snail "Dr. Wolfgang Hintze" <weh@snafu.de> - 2012-08-15 07:32 +0000
Re: V8 slow like a snail "Dr. Wolfgang Hintze" <weh@snafu.de> - 2012-08-15 09:42 +0000
Re: V8 slow like a snail Roland Franzius <roland.franzius@uos.de> - 2012-08-15 09:42 +0000
Re: V8 slow like a snail "Dr. Wolfgang Hintze" <weh@snafu.de> - 2012-08-16 06:06 +0000
Re: V8 slow like a snail Roland Franzius <roland.franzius@uos.de> - 2012-08-18 07:57 +0000
Re: V8 slow like a snail "Dr. Wolfgang Hintze" <weh@snafu.de> - 2012-08-21 01:39 +0000
Re: V8 slow like a snail Roland Franzius <roland.franzius@uos.de> - 2012-08-21 09:02 +0000
Re: V8 slow like a snail "Alexey Popkov" <lehin.p@gmail.com> - 2012-08-17 07:44 +0000
Re: V8 slow like a snail David Bailey <dave@removedbailey.co.uk> - 2012-08-20 08:14 +0000
Re: V8 slow like a snail Andrzej Kozlowski <akozlowski@gmail.com> - 2012-08-21 01:28 +0000
Re: V8 slow like a snail "Dr. Wolfgang Hintze" <weh@snafu.de> - 2012-08-22 07:54 +0000
csiph-web