|
[Date Index]
[Thread Index]
[Author Index]
Re: Overriding Division Notation
- To: mathgroup at smc.vnet.net
- Subject: [mg26584] Re: [mg26570] Overriding Division Notation
- From: Tomas Garza <tgarza01 at prodigy.net.mx>
- Date: Tue, 9 Jan 2001 01:51:58 -0500 (EST)
- References: <200101060323.WAA23271@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
If your problem is just displaying, you may convert the quotient into a
string and display it thus. E.g.,
In[1]:=
displayQuotient[x_, y_] := ToString[x] <> " " <> ToString[y] <> "^-1"
In[2]:=
displayQuotient[x, y]
Out[2]=
x y^-1
If you want further to use the displayed quotient as a normal expression,
In[33]:=
ToExpression[%]
Out[3]=
x/y
Tomas Garza
Mexico City
----- Original Message -----
From: "Jeff Hersh" <frumple*NOSPAM* at home.com>
To: mathgroup at smc.vnet.net
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
|