Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2006
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2006

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

Search the Archive

Re: Writing prime factor decomposision in conventional form

  • To: mathgroup at smc.vnet.net
  • Subject: [mg65338] Re: Writing prime factor decomposision in conventional form
  • From: "david_tang" <david3687 at gmail.com>
  • Date: Mon, 27 Mar 2006 06:56:06 -0500 (EST)
  • References: <e05ri1$3ru$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

you can try these:

define
f1 = (# /. {x_?NumberQ, y_} :> HoldForm[x^y]) &
and you will get the form as you typed.

or
f 2= (# /. {x_?NumberQ, y_} :> x^y) &
and you will get the result of x^y

the reslut will be:
f1[{{2,3},{5,1}}] =>{2^3,5}
f2[{{2,3},{5,1}}] =>{8,5}

good luck!


  • Prev by Date: getting planetary symbols to print
  • Next by Date: Two independent y axes ?
  • Previous by thread: Re: Writing prime factor decomposision in conventional form
  • Next by thread: Re: Writing prime factor decomposision in conventional form