Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2007
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2007

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: error message Convert::incomp in units package of Mathematica 6.0

  • To: mathgroup at smc.vnet.net
  • Subject: [mg76036] Re: error message Convert::incomp in units package of Mathematica 6.0
  • From: Hannes Kessler <HannesKessler at hushmail.com>
  • Date: Tue, 15 May 2007 04:52:04 -0400 (EDT)
  • References: <29884515.1179055397284.JavaMail.root@m35>

I survive without the error message as long as I give the correct
input to Convert. But consider the following example

Convert[Meter,Meter] --> Meter
Convert[10 Kilogram, Meter] --> 10 Kilogram

The behavior is similar in not changing the input, but requiring to
convert a mass to a length is obviously nonsense.
I admit, nobody will enter such an input manually, and as I know the
feature, I can live with it. Nevertheless, using the Units-packages
for programming of unit conversions I would prefer an error message
which helps in finding eventual errors.

Nevertheless, I don't want to be picky. Certainly Mathematica 6 is a
huge step in many other respects.

Regards,
Hannes Kessler

On 14 Mai, 11:53, Andrzej Kozlowski <a... at mimuw.edu.pl> wrote:
> I think you are being too harsh on error messages. Sometimes thay are  
> all that distinguishes a bug from a feature. ;-)
>
> Andrzej Kozlowski
>
> On 14 May 2007, at 16:54, DrMajorBob wrote:
>
>
>
> > It worked perfectly in version 6, I'd say.
>
> > Ugly error message should be shot. If they survive, they should be  
> > hung.
>
> > Bobby
>
> > On Sun, 13 May 2007 04:43:48 -0500, Hannes Kessler
> > <HannesKess... at hushmail.com> wrote:
>
> >> Hello,
>
> >> the following different behavior is observed between Mathematica 5.2
> >> and 6.0:
>
> >> Version 5.2
>
> >> Needs["Miscellaneous`Units`"]
> >> On[Convert::incomp]
> >> Convert[10 Meter, Kilogram]
> >> --> Error message: Convert::incomp: Incompatible units in 10 Meter  
> >> and
> >> Kilogram.
> >>      Output: 10 Meter
>
> >> Version 6.0
>
> >> Needs["Units`"]
> >> On[Convert::incomp]
> >> Convert[10 Meter, Kilogram]
> >> --> No error message, only output: 10 Meter
>
> >> Presumably a bug of Mathematica 6.0
>
> >> Best regards,
> >> Hannes Kessler
>
> > --
> > DrMajor... at bigfoot.com- Zitierten Text ausblenden -
>
> - Zitierten Text anzeigen -




  • Prev by Date: Re: Re: Why Sort[{"AX", "!D", "EX"}] -> {"AX", "!D", "EX"}
  • Next by Date: a tutorial finder palette
  • Previous by thread: Re: Re: error message Convert::incomp in units package of Mathematica 6.0
  • Next by thread: Why Sort[{"AX", "!D", "EX"}] -> {"AX", "!D", "EX"} ?