|
|
last edited 10 years ago by test1 |
1 2 3 4 5 6 7 | ||
Editor: kratt6
Time: 2007/12/20 11:33:14 GMT-8 |
||
Note: |
added:
From kratt6 Thu Dec 20 11:33:13 -0800 2007
From: kratt6
Date: Thu, 20 Dec 2007 11:33:13 -0800
Subject:
Message-ID: <20071220113313-0800@axiom-wiki.newsynthesis.org>
Name: '#6 wrong integration result' => '#6 integration result Gamma not TeXed correctly'
integrate((x^2)*(%e^(-x^2)),x=0..%plusInfinity) does not give sqrt(%pi)/4.
integrate((x^2)*(%e^(-x^2)),x=0..%plusInfinity) does not give sqrt(%pi)/4.
The answer it gives is correct (unless there is a new bug introduced that is not on my axiom 0.20040831-1). The gamma function has sqrt(pi) for half-integer values.
axiomintegrate(x^2*(exp(-x^2)), x=0..%plusInfinity)
(1) |
axiomGamma(3/2)/2::Float
(2) |
axiomsqrt(%pi)/4::Float
(3) |
What I don't understand is why the integration result is so hard to
convert to a Float. Appending ::Float
to the integrate()
command
fails. Why? If I type Gamma(3/2)/2
by hand it has no problem.
_ 3 | (-) 2 (28) ----- 2 Type: Union(f1: OrderedCompletion Expression Integer,...)
which I assume is the Gamma function, but the tex is converted improperly:
{{|{\overline {\ }}} \left( {{3 \over 2}} \right)} \over 2 \leqno(29)
i.e. clearly does not contain \Gamma
.
...
?
I think therein lies the problem. Note that
axiomintegrate(x^2*(exp(-x^2)), x=0..%plusInfinity)::InputForm
(4) |
seems correct.
P.S. IssueTracker? + axiom rules. Having axiom right here is so powerful... I will have to pay more attention to IssueTracker?. I was half thinking to strip it when (if) I fork zwiki. Right now IssueTracker? is a big hack that can't be uninstalled...
axiomintegrate(x^2*(exp(-x^2)), x=0..%plusInfinity)
(5) |
Not only prints oddly without conversion to proper LaTeX? but also it is not actually recognized "mathematically" as Gamma().
Further, there is something wrong with the implementation of Gamma() itself because it only works numerically and is of no use symbolically. It seems like there are two separate Gamma functions. The one produced by the integration is "symbolic" but does not seem to be connected to any appropriate logic.
Category: Axiom Mathematics => Axiom User Interface Severity: normal => minor
:)
This shows where your priorities are Martin! But, thanks.
Some User Interface issue is involved here, but I don't think that it is quite correct to classify it this way. The issue is really what symbollic computations are possible in Axiom involving Gamma? I would say that this is more of a deficiency in the mathmatics.
#6 wrong integration result
=> #6 integration result Gamma not TeXed correctly