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!