Re: Sqrt discrepancy, Mathematica
- From: "Roger Beresford" <mail@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: 6 Aug 2006 01:23:41 -0700
Dana wrote:
Would this debugging technique work?
Sqrt[b-a] // Trace
Thanks - it did.
The error appears after loading the "OPScalar" package from
Mathsource/4291. This provides a non-commutative "diamond" operator,
overwriting "**" . I shall now abandon my search for a non-commutative
extension to the determinant function. (I was not getting anywhere with
it.)
Roger Beresford wrote:snip
In Mathematica 4.2, Sqrt[b-a] prints as -/(b-a) (Sqrt symbol), and
gives 2 when e.g. a->2,b->6
In Mathematica 5 it prints as i(a-b)^(1/2) and gives -2, not 2.
Is this documented, and how is it justified? It screws up a lot of my
programmes.
Apologies - this error only appears when I load a recently revised
Mathematica 5.0 package, which I had made compatible with Mathematica
4.2. It disappears when I Quit[]. I shall report back if I find what I
did wrong.
Roger Beresford.
.
- Follow-Ups:
- Re: Sqrt discrepancy, Mathematica
- From: Dave Rusin
- Re: Sqrt discrepancy, Mathematica
- From: Peter Pein
- Re: Sqrt discrepancy, Mathematica
- References:
- Sqrt discrepancy, Mathematica
- From: Roger Beresford
- Re: Sqrt discrepancy, Mathematica
- From: Jean-Marc Gulliet
- Re: Sqrt discrepancy, Mathematica
- From: Roger Beresford
- Re: Sqrt discrepancy, Mathematica
- From: Dana
- Sqrt discrepancy, Mathematica
- Prev by Date: Re: Sqrt discrepancy, Mathematica
- Next by Date: Re: Sqrt discrepancy, Mathematica
- Previous by thread: Re: Sqrt discrepancy, Mathematica
- Next by thread: Re: Sqrt discrepancy, Mathematica
- Index(es):
Relevant Pages
|
|