2
$\begingroup$

Is it possible to transform the output from FactorInteger to form a LaTeX-output as follows; e.g.

FactorInteger[4708352000]

becomes, in text form,

2^{14} \cdot 5^3 \cdot 11^2 \cdot 19

TIA.

$\endgroup$
6
$\begingroup$

Create the right structure and then use TeXForm:

CenterDot @@ Replace[
    FactorInteger[4708352000],
    {b_, p_Integer} :> HoldForm[b]^p,
    {1}
] // TeXForm

2^{14}\cdot 5^3\cdot 11^2\cdot 19

$\endgroup$
  • $\begingroup$ Thanks. Can this be made into a function for shorter typing? $\endgroup$ – mf67 Nov 20 at 20:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.