MathGroup Archive 1998

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

Search the Archive

Re: FactorInteger

  • To: mathgroup at smc.vnet.net
  • Subject: [mg14427] Re: FactorInteger
  • From: "Erik Neumann" <erikn at usa.net>
  • Date: Wed, 21 Oct 1998 03:32:23 -0400
  • Organization: AT&T WorldNet Services
  • References: <70dd3k$230@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Alan,
Try the following:
{{5,3}, {2,3}} /. {a_Integer, b_Integer} -> HoldForm[a^b]

You need the _Integer patterns to avoid matching things you don't want
to match.  To see this, try it without the _Integer patterns as well.
{{5,3}, {2,3}} /. {a_, b_} -> HoldForm[a^b]

Regards,
erikn at usa.net

awhopper at hermes.net.au wrote in message <70dd3k$230 at smc.vnet.net>...
>Dear Math Group,
>
>Concerning the Prime Factors of composite integers ;
>
>e.g;
>
>In[1] := 2^4 3^3 4^2
>
>Out[2] = 6912
>
>In[3] := FactorInteger[%]
>
>Out[4] = {{2,4},{3,3},{4,2}}
>
>In Mathematica 3.0 is there anyway the output of FactorInteger can be
>modified to produce the unevaluated prime factors in the usual
>exponential form ?
>
>regards,
>
>Alan Hopper
>Katoomba, Australia
>awhopper at hermes.net.au
>



  • Prev by Date: Re: FactorInteger
  • Next by Date: Re: Labeling graphs
  • Previous by thread: Re: FactorInteger
  • Next by thread: Re: FactorInteger