MathGroup Archive 2006

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

Search the Archive

Re: Writing prime factor decomposision in conventional form


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