Re: Sqrt discrepancy, Mathematica



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:
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.
snip

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.


.



Relevant Pages

  • Re: Simulating electrochemical reactions with Mathematica
    ... >>> the depth to this package and its documentation. ... >>> to parametric models in the hands of those skilled in EIS. ... >> Non Mathematica users who are curious can read the sample notebook by ... The objective of SERM is to demonstrate how to make your own simulations ...
    (sci.chem.electrochem)
  • Re: Simulating electrochemical reactions with Mathematica
    ... black box package like Polarograph is perhaps to do a proof of concept first ... in order to justify purchasing Mathematica. ... Research not making their package as widely available in low cost student ... > The objective of SERM is to demonstrate how to make your own simulations ...
    (sci.chem.electrochem)
  • Re: Simulating electrochemical reactions with Mathematica
    ... > black box package like Polarograph is perhaps to do a proof of concept first ... > in order to justify purchasing Mathematica. ... No its much the same in australia (re matlab being more prevalent). ... mathematica numerics are apparently as good or better than matlab. ...
    (sci.chem.electrochem)
  • Re: Visualizing a curved space
    ... They are the Tensorial 4.0 package for tensor calculus and the DrawGraphics package for making diagrams and animations. ... alternative approach which will probably be more convenient and will certainly be significantly cheaper, at least for readers who are registered university students or who already own Mathematica or Maple. ... I am not affiliated in any way with the GRTensorII team, BTW, but I have used this software extensively and know that it is convenient and very easy to learn and use. ...
    (sci.physics.research)
  • Re: Mathematica AddOn
    ... Hi John, ... the problem you faced might not come from that: I have just downloaded and installed successfully the package after I had created a directory called StableDistribution. ... First, in Mathematica, evaluate $UserAddOnsDirectory. ...
    (sci.stat.math)