f



Displaying x^1 as x^-1 and not as 1/x

I was having hard time getting Mathematica to display x^-1 as x^-1 and 
not as 1/x. So I tried Maple 14, and it also does the same.

So I thought I ask the maple experts here if there is a way to do this 
in Maple. This was my orginal question, I am posting it here for the 
Maple group.


When I type

x^-1

Maple replies

1/x

Is there a way to tell Maple to *display* terms with negative powers as 
  x^-n  and not as 1/x^n ? (i.e keep the term just like it would appear 
on paper).

Another example, suppose I type

expr = a*x^-2 + b *x^-1 +

The reason I want to do this, is just for display purposes. When I print 
the expression on the screen, I'd like it to look like x^-1 and not like 
1/x (to better match how the expression look like in the textbook)


thanks
--Nasser
0
Nasser
7/3/2010 4:50:36 AM
comp.soft-sys.math.maple 4344 articles. 3 followers. Post Follow

2 Replies
686 Views

Similar Articles

[PageSpeed] 15

On Jul 3, 12:50=A0am, "Nasser M. Abbasi" <n...@12000.org> wrote:
> I was having hard time getting Mathematica to display x^-1 as x^-1 and
> not as 1/x. So I tried Maple 14, and it also does the same.
>
> So I thought I ask the maple experts here if there is a way to do this
> in Maple. This was my orginal question, I am posting it here for the
> Maple group.
>
> When I type
>
> x^-1
>
> Maple replies
>
> 1/x
>
> Is there a way to tell Maple to *display* terms with negative powers as
> =A0 x^-n =A0and not as 1/x^n ? (i.e keep the term just like it would appe=
ar
> on paper).
>
> Another example, suppose I type
>
> expr =3D a*x^-2 + b *x^-1 +
>
> The reason I want to do this, is just for display purposes. When I print
> the expression on the screen, I'd like it to look like x^-1 and not like
> 1/x (to better match how the expression look like in the textbook)
>
> thanks
> --Nasser

This topic was discussed here:

http://www.mapleprimes.com/questions/36803-Keeping-Negative-Powers?ref=3DFe=
ed:MaplePrimes:Keeping%20negative%20powers?:Comments

One of the methods should work for you.

Regards,
Georgios
0
Archimedes
7/3/2010 11:06:12 PM
On Jul 3, 4:50=A0pm, "Nasser M. Abbasi" <n...@12000.org> wrote:
> I was having hard time getting Mathematica to display x^-1 as x^-1 and
> not as 1/x. So I tried Maple 14, and it also does the same.
>
> So I thought I ask the maple experts here if there is a way to do this
> in Maple. This was my orginal question, I am posting it here for the
> Maple group.
>
> When I type
>
> x^-1
>
> Maple replies
>
> 1/x
>
> Is there a way to tell Maple to *display* terms with negative powers as
> =A0 x^-n =A0and not as 1/x^n ? (i.e keep the term just like it would appe=
ar
> on paper).
>
> Another example, suppose I type
>
> expr =3D a*x^-2 + b *x^-1 +
>
> The reason I want to do this, is just for display purposes. When I print
> the expression on the screen, I'd like it to look like x^-1 and not like
> 1/x (to better match how the expression look like in the textbook)
>
> thanks
> --Nasser

I wrote a Maple program to display SI units (and cal) like that in
order to keep track of my algebra in some physical chemistry. It also
always uses the same order: cal, m, kg, s, A or V or ohm, K, mol.
Neater methods may well exist! As it's over 100 lines I shall email it
to those who ask.

-- John Harper; email john dot harper at vuw dot ac dot nz
0
jfh
7/12/2010 12:10:07 AM
Reply:

Similar Artilces:

x - 1 = x
What languages might use a scheme similar to this? Could I build my own? x = x - (x+1) + x + 2: Numbers: 101 (TM) Code. -100=-101+1==-99-1===-100 -099=-101+2==-98-1===-99 -098=-101+3==-97-1===-98 -097=-101+4==-96-1===-97 -096=-101+5==-95-1===-96 -095=-101+6==-94-1===-95 -094=-101+7==-93-1===-94 -093=-101+8==-92-1===-93 -092=-101+9==-91-1===-92 -091=-101+10==-90-1===-91 -090=-101+11==-89-1===-90 -089=-101+12==-88-1===-89 -088=-101+13==-87-1===-88 -087=-101+14==-86-1===-87 -086=-101+15==-85-1===-86 -085=-101+16==-84-1===-85 -084=-101+17==-83-1===-84 -083=-101+18==-82-1===-83 -082=-101+19==-81-1...

how to tell Mathematica to display x^-1 as x^-1 and not as 1/x
Nasser, >Is there a way to tell Mathematica to >*display* terms with negative >powers as x^-n and not as 1/x^n ? There are many things that you will have to consider, but here goes a start: MakeBoxes[Power[x_, y_?(NumberQ[#] && Negative[#] &)], TraditionalForm] := SuperscriptBox[MakeBoxes[x, TraditionalForm], MakeBoxes[y, TraditionalForm]] MakeBoxes[Times[c_, p : Power[x_, y_?(NumberQ[#] && Negative[#] &)]], TraditionalForm] := If[OrderedQ[{c, p}], RowBox[{MakeBoxes[c, TraditionalForm], MakeBoxes[p, TraditionalForm]}...

how to tell Mathematica to display x^-1 as x^-1 and not as 1/x
Hello; When I type x^-1 Mathematica replies 1/x Is there a way to tell Mathematica to *display* terms with negative powers as x^-n and not as 1/x^n ? (i.e keep the term just like it would appear on paper). Another example, suppose I type expr = a*x^-2 + b *x^-1 + The reason I want to do this, is just for display purposes. When I print the expression on the screen, I'd like it to look like x^-1 and not like 1/x (to better match how the expression look like in the textbook) I am trying to avoid having to convert everything to a string, and force the f...

how to "(1-3*x^2)/(1-3*x+x^2+2*x^3) => 1/(1-2*x) + x/(1-x-x^2)"?
hi normal(1/(1-2*x) + x/ (1-x-x^2),expanded); 1/(1-2*x) + x/(1-x-x^2) => (1-3*x^2)/(1-3*x+x^2+2*x^3) how to do the reverse? dillogimp@gmail.com writes: > normal(1/(1-2*x) + x/ (1-x-x^2),expanded); > 1/(1-2*x) + x/(1-x-x^2) => (1-3*x^2)/(1-3*x+x^2+2*x^3) > how to do the reverse? convert(%,parfrac,x); -- Joe Riel ...

(x
I feel like a small child asking this, but how can I get Mathematica to say (x - 1) instead of (-1 + x), or to give me 4 (1 - q) instead of the doubly annoying -4 (-1 + q) ? In brief, given the choice, I prefer to look at subtraction rather than negation. The binary operator instead of the unary. I'm not asking Mathematica to read my mind about the way I want every possible expression to look, rather I am hoping to find out how to transform something I don't like into something I like, in a way that is guaranteed not to change the value of the expression. R...

x = x
x = x - (x+1) + x + 2: Numbers: 101 (TM) Code. -100=-101+1==-99-1===-100 -099=-101+2==-98-1===-99 -098=-101+3==-97-1===-98 -097=-101+4==-96-1===-97 -096=-101+5==-95-1===-96 -095=-101+6==-94-1===-95 -094=-101+7==-93-1===-94 -093=-101+8==-92-1===-93 -092=-101+9==-91-1===-92 -091=-101+10==-90-1===-91 -090=-101+11==-89-1===-90 -089=-101+12==-88-1===-89 -088=-101+13==-87-1===-88 -087=-101+14==-86-1===-87 -086=-101+15==-85-1===-86 -085=-101+16==-84-1===-85 -084=-101+17==-83-1===-84 -083=-101+18==-82-1===-83 -082=-101+19==-81-1===-82 -081=-101+20==-80-1===-81 -080=-101+21==-79-1===-80 -079=-101+22==-...

NAT: 1-1 mapping from 192.168.x.x to 10.168.x.x ?
Hi, I have a machine on a 192.168.x.x network that I would like to configure in such a way that it believes to be in 10.168.x.x. In other words, if a packet comes in from, say, 192.168.3.4, I would like it to be mangled as it was coming from 10.168.3.4. In the same way, I would like outgoing packets for 10.168.x.x to be mapped to 192.168.x.x. I read the iptables manual and found out abount DNAT and SNAT, but it seems what they do at most is mangle addresses into a pool of addresses, is a round robin fashion. I don't need round robin. I need a 1-1 mapping. Anybody knows if this is doab...

Request 4 info: 1.7.x, 1.8.x, 1.9.x versions of code?
--Apple-Mail-1--447725689 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii I would like to have someone from the MIT Kerberos team or in the know, = please describe each version or the purpose behind each. Why are the = older versions being kept and updated, instead of just the newest = version? I think I know the answer, but, I wondered if a description or = the purpose of each version exists somewhere. Thank you, Tareq --Apple-Mail-1--447725689-- ...

Using GAOT to maximizes f(x) under the constraint 0<=1-(x(1)+x(2))<=1
Hi everybody, Can somebody please help me out with the following problem: I want to use GAOT to maximizes f(x) under the constraint 0<=1-(x(1)+x(2)+x(3))<=1 This means I have to change the code of the GAOT toolbox at several places in order to decrease the search space of the ga (probably in the matutation file and the crossover file). Does somebody knows where??? Please help me out.. thanks alot in advance, I really appreciate your help!! take care Rick Duursma ...

x==1 vs 1==x
--Apple-Mail-1--767860423 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed I'm against _premature_ optimization in theory, but believe that a certain innate knowledge of what is and what is not efficient is important for making reasonable choices in the first place. To that end, when I had to write code to handle exactly one case out of many, where I knew that the operator would be #==, I thought I'd test case versus if/elsif. As I expected, the case statement performed worse (thought not as much as I expected). On a w...

What is the difference between Java JRE 5.x and 6.x (1.5.x / 1.6.x) ???
What exactly is the difference between the JRE 5.x and 6.x (or 1.5.x and 1.6.x) versions of the Sun Java Runtime Engine for windows? Why does Sun maintain 2 different versions or streams or forks of the JRE? Is it true that version 5 was supposed to have an EOL this past October - or was it always EOL in October 2009? How would my "internet browsing experience" be different if my system had the latest update of version 5 versus version 6? Is it true that version 6 is somehow optimized or faster than 5? sm5w2@yahoo.com wrote: > What exactly is the difference between the JRE 5....

Problem in "X (1).Re := X (1).Re + 1"
This is a thought experiment. First, in RM 4.1.6: * when the generalized_indexing is used within a primary where a name denoting a constant is permitted. This means declare package V is new Vectors (Complex); X : V.Vector; begin X (1).Re := X (1).Re + 1; end; is interpreted as declare package V is new Vectors (Complex); X : V.Vector; begin Reference (X, 1).Element.all.Re := Constant_Reference (X, 1).Element.all.Re + 1; end; Is this OK? If this is the truth, and if Vectors is implemented by reference-counting. (I don't know copy-on-write is permitted in Ada.Contain...

Wrong result for divergent integral Integrate(ln(x)/x,x,-1,1)
Integrate(ln(x)/x,x,-1,1) does not exist even in the Cauchy principal value sense, so the finite result (pi^2/2) returned by the 49G+ is incorrect. <<-1 1 X LN X / X Integral>> EVAL ("Integral" is right-shift TAN) My V200 returns the expected "undef". Cheers, Bhuvanesh. On Wed, 4 Jan 2005, Bhuvanesh wrote: > Integrate(ln(x)/x,x,-1,1) does not exist even in the Cauchy principal > value sense, so the finite result (pi^2/2) returned by the 49G+ is > incorrect. > > <<-1 1 X LN X / X Integral>> EVAL ("Integral" is right-shift...

[ANN] Graphviz for Mac OS X 1.13 (v13) [ANN] Graphviz for Mac OS X 1.12 (v8) [ANN] Graphviz for Mac OS X 1.12 (v8)
Dear All, I've just released the newest version of Mac Graphviz, featuring shapefile support and enhanced zoom. http://www.pixelglow.com/graphviz/ Shapefiles supported include PDF, EPS, PS, JPEG, PNG and all Quicktime formats. Either specify an absolute or relative (to working directory) file path, or a URL using the shapefile attribute. Developers can now also use the graphviz.framework directly with #include headers in C e.g. using Xcode "Add Frameworks..."; documentation is available from the main Graphviz site -- http://www.research.att.com/sw/tools/graphviz/libguide.pdf...

Web resources about - Displaying x^1 as x^-1 and not as 1/x - comp.soft-sys.math.maple

List of birds displaying homosexual behavior - Wikipedia, the free encyclopedia
This list includes birds for which there is documented evidence of homosexual or transgender behavior of one or more of the following kinds: ...

Facebook Displaying Page Insights On Page Admins’ Personal Pages?
Some Facebook page administrators are seeing modules on their personal pages displaying page insights ad, campaign , and like totals for pages ...

Facebook Displaying Unread Messages from Pages in a New Updates Module
Facebook is displaying a new “Updates” sidebar module which shows some users unread messages sent to them by Pages. Users will see the Updates ...

Don Lemon Holds Up Sign Displaying the N-Word, Uncensored, on Air CNN Live - YouTube
Don Lemon Holds Up Sign Displaying the N-Word, Uncensored, on Air Lemon held up a Confederate flag first before holding up the sign. He asked, ...

Hazelwood coal mine fire: Morwell residents displaying symptoms similar to cigarette smokers, expert ...
An expert says some locals near Victoria's Hazelwood mine fire have symptoms similar to cigarette smokers.

Police accused of displaying fake G20 weapons
Toronto's top police officer misled the public by displaying fake weapons used in a medieval-themed role-playing game to help justify their actions ...

Displaying calorie labels at fast-food restaurants doesn't appear to work: study
While the high calorie counts of artery-clogging fast foods are often printed right in front of our eyes, most people ignore them and go ahead ...

Jays' Escobar suspended three games for displaying slur
Toronto Blue Jays shortstop Yunel Escobar has been suspended three games for displaying a homophobic slur on his eye-black during a game on Saturday. ...

Google Play Store now displaying age-based ratings
We reported back in May that Google was adding age-based ratings to all apps in the Play Store as determined by the International Age Rating ...

Google begins displaying “Listen Now” ads for streaming music services (including Beats) in search results ...
... , Streaming Music Continue reading more about Apps , Google , and Spotify at 9to5Mac . What do you think? Discuss "Google begins displaying ...

Resources last updated: 2/10/2016 12:32:04 AM