MathGroup Archive 2001

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

Search the Archive

Re: Overriding Division Notation

If your problem is just displaying, you may convert the quotient into a
string and display it thus. E.g.,

displayQuotient[x_, y_] := ToString[x] <> " " <> ToString[y] <> "^-1"

displayQuotient[x, y]
x y^-1

If you want further to use the displayed quotient as a normal expression,


Tomas Garza
Mexico City

----- Original Message -----
From: "Jeff Hersh" <frumple*NOSPAM* at>
To: mathgroup at
Subject: [mg26584] [mg26570] Overriding Division Notation

> Hello,
> I need for division (a/b) to be displayed not as the usual
> a
> -
> b
> but as the product a b^-1 (the order matters!).
> Is there anyway to prevent Mathematic from automically displaying a/b as
> the former notation?
> Jeff
> --
> Jeffrey Hersh,PhD
> Remove the *NOSPAM* to reply.
> <insert amusing quote here>

  • Prev by Date: Fourier Transform and convolution.
  • Next by Date: Re: Overriding Division Notation
  • Previous by thread: Overriding Division Notation
  • Next by thread: Re: Overriding Division Notation