How to format a long polynomialWhy are default LaTeX margins so big?Polynomial Long Division over GF(p)Why does widehat behave differently if I insert hspace0pt?Converting all numbers in document to set number of decimal placesHow to construct a long equation that is split in LHS and RHS to occupy a narrow column?Using mathspec to change digits font in math mode isn't workingStrange alignment issue in subequationsCorrect typesetting of a formula with a long fractionWriting Lines and Lines of Math Without Continuation CharactersHow continue a equation next lineIn the figure form, adjust the whole size of “text” and “math” format at once (II): from twocolumngrid to onecolumngrid

Need help identifying/translating a plaque in Tangier, Morocco

Can I legally use front facing blue light in the UK?

Landlord wants to switch my lease to a "Land contract" to "get back at the city"

Is there a familial term for apples and pears?

Map list to bin numbers

If a centaur druid Wild Shapes into a Giant Elk, do their Charge features stack?

Are white and non-white police officers equally likely to kill black suspects?

I see my dog run

Doomsday-clock for my fantasy planet

What to wear for invited talk in Canada

Email Account under attack (really) - anything I can do?

Are cabin dividers used to "hide" the flex of the airplane?

Find the number of surjections from A to B.

"listening to me about as much as you're listening to this pole here"

Why do UK politicians seemingly ignore opinion polls on Brexit?

Are objects structures and/or vice versa?

Is Social Media Science Fiction?

Finding files for which a command fails

Denied boarding due to overcrowding, Sparpreis ticket. What are my rights?

Shall I use personal or official e-mail account when registering to external websites for work purpose?

LWC and complex parameters

What happens when a metallic dragon and a chromatic dragon mate?

Is domain driven design an anti-SQL pattern?

Domain expired, GoDaddy holds it and is asking more money



How to format a long polynomial


Why are default LaTeX margins so big?Polynomial Long Division over GF(p)Why does widehat behave differently if I insert hspace0pt?Converting all numbers in document to set number of decimal placesHow to construct a long equation that is split in LHS and RHS to occupy a narrow column?Using mathspec to change digits font in math mode isn't workingStrange alignment issue in subequationsCorrect typesetting of a formula with a long fractionWriting Lines and Lines of Math Without Continuation CharactersHow continue a equation next lineIn the figure form, adjust the whole size of “text” and “math” format at once (II): from twocolumngrid to onecolumngrid













10















I have a long polynomial:



documentclassarticle
%usepackageamsmath% Loaded by mathtools
usepackagemathtools
begindocument
$ f(z)=frac1382112640(-306772802511648469920eta^4z^4+762453974480763801600eta^5z^4-1678626210368271790080eta^5z^3-28510918043555533736160eta^4z^3+11443138641451067779872eta^3z^3-52164076923190540413504eta^2z^2-78145258181161076156160eta^5z^2-211306163712129371808450eta^4z^2+228927087397104405937944eta^3z^2+999881065017543109136462eta^3z-317254092617698017425280eta^5z-443761561344388063474665eta^4z+82327155732241730770824eta z-514623285385260545505123eta^2z-1010535343560043404912120eta^2-357788302700438191196160eta^5-43808044579418934376632-214023244873618345872240eta^4+11818373349781028\
079eta^3+347370177721463765064153eta)/((417420z^2-4169121z-15571312)(1546z+3537)(3092z+17001))$
enddocument


How do I format such a long polynomial correctly?










share|improve this question



















  • 5





    For anyone reaching this question in the future, I would strongly recommend writing a simple summation formula with coefficients $a_i,j$ and then adding a table to show the values.

    – Mefitico
    Apr 5 at 11:59






  • 1





    @Mefitico It is a nice option! Why don't you post an answer?

    – JouleV
    Apr 5 at 12:12






  • 1





    @JouleV: Because it wouldn't answer the question. Ever heard of the patient who went to the doctor and said: "It hurts when I do this", to which the doctor responded: "Then don't do this!"

    – Mefitico
    Apr 5 at 12:19











  • @Mefitico No, it is still an appropriate expression of the equation, in my opinion. You can see that my answer and egreg's answer use indirect expressions, and you are talking about an indirect expression.

    – JouleV
    Apr 5 at 12:23















10















I have a long polynomial:



documentclassarticle
%usepackageamsmath% Loaded by mathtools
usepackagemathtools
begindocument
$ f(z)=frac1382112640(-306772802511648469920eta^4z^4+762453974480763801600eta^5z^4-1678626210368271790080eta^5z^3-28510918043555533736160eta^4z^3+11443138641451067779872eta^3z^3-52164076923190540413504eta^2z^2-78145258181161076156160eta^5z^2-211306163712129371808450eta^4z^2+228927087397104405937944eta^3z^2+999881065017543109136462eta^3z-317254092617698017425280eta^5z-443761561344388063474665eta^4z+82327155732241730770824eta z-514623285385260545505123eta^2z-1010535343560043404912120eta^2-357788302700438191196160eta^5-43808044579418934376632-214023244873618345872240eta^4+11818373349781028\
079eta^3+347370177721463765064153eta)/((417420z^2-4169121z-15571312)(1546z+3537)(3092z+17001))$
enddocument


How do I format such a long polynomial correctly?










share|improve this question



















  • 5





    For anyone reaching this question in the future, I would strongly recommend writing a simple summation formula with coefficients $a_i,j$ and then adding a table to show the values.

    – Mefitico
    Apr 5 at 11:59






  • 1





    @Mefitico It is a nice option! Why don't you post an answer?

    – JouleV
    Apr 5 at 12:12






  • 1





    @JouleV: Because it wouldn't answer the question. Ever heard of the patient who went to the doctor and said: "It hurts when I do this", to which the doctor responded: "Then don't do this!"

    – Mefitico
    Apr 5 at 12:19











  • @Mefitico No, it is still an appropriate expression of the equation, in my opinion. You can see that my answer and egreg's answer use indirect expressions, and you are talking about an indirect expression.

    – JouleV
    Apr 5 at 12:23













10












10








10








I have a long polynomial:



documentclassarticle
%usepackageamsmath% Loaded by mathtools
usepackagemathtools
begindocument
$ f(z)=frac1382112640(-306772802511648469920eta^4z^4+762453974480763801600eta^5z^4-1678626210368271790080eta^5z^3-28510918043555533736160eta^4z^3+11443138641451067779872eta^3z^3-52164076923190540413504eta^2z^2-78145258181161076156160eta^5z^2-211306163712129371808450eta^4z^2+228927087397104405937944eta^3z^2+999881065017543109136462eta^3z-317254092617698017425280eta^5z-443761561344388063474665eta^4z+82327155732241730770824eta z-514623285385260545505123eta^2z-1010535343560043404912120eta^2-357788302700438191196160eta^5-43808044579418934376632-214023244873618345872240eta^4+11818373349781028\
079eta^3+347370177721463765064153eta)/((417420z^2-4169121z-15571312)(1546z+3537)(3092z+17001))$
enddocument


How do I format such a long polynomial correctly?










share|improve this question
















I have a long polynomial:



documentclassarticle
%usepackageamsmath% Loaded by mathtools
usepackagemathtools
begindocument
$ f(z)=frac1382112640(-306772802511648469920eta^4z^4+762453974480763801600eta^5z^4-1678626210368271790080eta^5z^3-28510918043555533736160eta^4z^3+11443138641451067779872eta^3z^3-52164076923190540413504eta^2z^2-78145258181161076156160eta^5z^2-211306163712129371808450eta^4z^2+228927087397104405937944eta^3z^2+999881065017543109136462eta^3z-317254092617698017425280eta^5z-443761561344388063474665eta^4z+82327155732241730770824eta z-514623285385260545505123eta^2z-1010535343560043404912120eta^2-357788302700438191196160eta^5-43808044579418934376632-214023244873618345872240eta^4+11818373349781028\
079eta^3+347370177721463765064153eta)/((417420z^2-4169121z-15571312)(1546z+3537)(3092z+17001))$
enddocument


How do I format such a long polynomial correctly?







math-mode






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited yesterday









Peter Mortensen

54837




54837










asked Apr 5 at 7:16









NickNick

1987




1987







  • 5





    For anyone reaching this question in the future, I would strongly recommend writing a simple summation formula with coefficients $a_i,j$ and then adding a table to show the values.

    – Mefitico
    Apr 5 at 11:59






  • 1





    @Mefitico It is a nice option! Why don't you post an answer?

    – JouleV
    Apr 5 at 12:12






  • 1





    @JouleV: Because it wouldn't answer the question. Ever heard of the patient who went to the doctor and said: "It hurts when I do this", to which the doctor responded: "Then don't do this!"

    – Mefitico
    Apr 5 at 12:19











  • @Mefitico No, it is still an appropriate expression of the equation, in my opinion. You can see that my answer and egreg's answer use indirect expressions, and you are talking about an indirect expression.

    – JouleV
    Apr 5 at 12:23












  • 5





    For anyone reaching this question in the future, I would strongly recommend writing a simple summation formula with coefficients $a_i,j$ and then adding a table to show the values.

    – Mefitico
    Apr 5 at 11:59






  • 1





    @Mefitico It is a nice option! Why don't you post an answer?

    – JouleV
    Apr 5 at 12:12






  • 1





    @JouleV: Because it wouldn't answer the question. Ever heard of the patient who went to the doctor and said: "It hurts when I do this", to which the doctor responded: "Then don't do this!"

    – Mefitico
    Apr 5 at 12:19











  • @Mefitico No, it is still an appropriate expression of the equation, in my opinion. You can see that my answer and egreg's answer use indirect expressions, and you are talking about an indirect expression.

    – JouleV
    Apr 5 at 12:23







5




5





For anyone reaching this question in the future, I would strongly recommend writing a simple summation formula with coefficients $a_i,j$ and then adding a table to show the values.

– Mefitico
Apr 5 at 11:59





For anyone reaching this question in the future, I would strongly recommend writing a simple summation formula with coefficients $a_i,j$ and then adding a table to show the values.

– Mefitico
Apr 5 at 11:59




1




1





@Mefitico It is a nice option! Why don't you post an answer?

– JouleV
Apr 5 at 12:12





@Mefitico It is a nice option! Why don't you post an answer?

– JouleV
Apr 5 at 12:12




1




1





@JouleV: Because it wouldn't answer the question. Ever heard of the patient who went to the doctor and said: "It hurts when I do this", to which the doctor responded: "Then don't do this!"

– Mefitico
Apr 5 at 12:19





@JouleV: Because it wouldn't answer the question. Ever heard of the patient who went to the doctor and said: "It hurts when I do this", to which the doctor responded: "Then don't do this!"

– Mefitico
Apr 5 at 12:19













@Mefitico No, it is still an appropriate expression of the equation, in my opinion. You can see that my answer and egreg's answer use indirect expressions, and you are talking about an indirect expression.

– JouleV
Apr 5 at 12:23





@Mefitico No, it is still an appropriate expression of the equation, in my opinion. You can see that my answer and egreg's answer use indirect expressions, and you are talking about an indirect expression.

– JouleV
Apr 5 at 12:23










7 Answers
7






active

oldest

votes


















15














I would use something like this



documentclassarticle
%usepackageamsmath% Loaded by mathtools
usepackagemathtools
begindocument
Blah blah
[f(z)=frac1382112640cdotfracAB]
where
beginalign*
A=&,-306772802511648469920eta^4z^4+762453974480763801600eta^5z^4\
&,-1678626210368271790080eta^5z^3-28510918043555533736160eta^4z^3\
&,+11443138641451067779872eta^3z^3-52164076923190540413504eta^2z^2\
&,-78145258181161076156160eta^5z^2-211306163712129371808450eta^4z^2\
&,+228927087397104405937944eta^3z^2+999881065017543109136462eta^3z\
&,-317254092617698017425280eta^5z-443761561344388063474665eta^4z\
&,+82327155732241730770824eta z-514623285385260545505123eta^2z\
&,-1010535343560043404912120eta^2-357788302700438191196160eta^5\
&,-43808044579418934376632-214023244873618345872240eta^4\
&,+11818373349781028079eta^3+347370177721463765064153eta
endalign*
and
[B=(417420z^2-4169121z-15571312)(1546z+3537)(3092z+17001)]
enddocument


enter image description here






share|improve this answer


















  • 1





    you could format this even more compactly by using matrix multiplication to express A

    – Tasos Papastylianou
    Apr 5 at 15:44


















13














I suggest something line the following, so the wide terms are reduced.



documentclassarticle
%usepackageamsmath% Loaded by mathtools
usepackagemathtools

begindocument

begingather*
beginalign*
g(eta,z)&=
parbox[t]0.85displaywidthraggedright
$-306772802511648469920eta^4z^4+
762453974480763801600eta^5z^4-
1678626210368271790080eta^5z^3-
28510918043555533736160eta^4z^3+
11443138641451067779872eta^3z^3-
52164076923190540413504eta^2z^2-
78145258181161076156160eta^5z^2-
211306163712129371808450eta^4z^2+
228927087397104405937944eta^3z^2+
999881065017543109136462eta^3z-
317254092617698017425280eta^5z-
443761561344388063474665eta^4z+
82327155732241730770824eta z-
514623285385260545505123eta^2z-
1010535343560043404912120eta^2-
357788302700438191196160eta^5-
43808044579418934376632-
214023244873618345872240eta^4+
11818373349781028079eta^3+
347370177721463765064153eta$

\[2ex]
h(z)&=(417420z^2-4169121z-15571312)(1546z+3537)(3092z+17001)
endalign*
\[2ex]
f(z)=frac1382112640fracg(eta,z)h(z)
endgather*

enddocument


enter image description here






share|improve this answer























  • your answer is OK, but some terms are out of pages margins.

    – Nick
    Apr 5 at 8:01






  • 7





    @Nick Without knowing the line width you're using it's difficult to say more.

    – egreg
    Apr 5 at 8:19











  • @Nick egreg's answer uses default margin of article, which is already really big. But it doesn't fit your margin?

    – JouleV
    Apr 5 at 8:29











  • I have moved the signs "-, +" from lines end and put them under sign "=".

    – Nick
    Apr 5 at 8:36


















7














Given the nature of the operations, you can probably express this in a tidy manner using matrix multiplication notation, eg:





where:





Code:



$$ f(z)=frac1382,112,640 ; fracg(eta, z)u(z) , v(z) , w(z) $$

where

$$
beginarrayll
g(eta, z) =
beginbmatrix
beginarrayr @hspace0em r
- & 306,772,802,511,648,469,920 \
& 762,453,974,480,763,801,600 \
- & 1,678,626,210,368,271,790,080 \
- & 28,510,918,043,555,533,736,160 \
& 11,443,138,641,451,067,779,872 \
- & 52,164,076,923,190,540,413,504 \
- & 78,145,258,181,161,076,156,160 \
- & 211,306,163,712,129,371,808,450 \
& 228,927,087,397,104,405,937,944 \
& 999,881,065,017,543,109,136,462 \
- & 317,254,092,617,698,017,425,280 \
- & 443,761,561,344,388,063,474,665 \
& 82,327,155,732,241,730,770,824 \
- & 514,623,285,385,260,545,505,123 \
- & 1,010,535,343,560,043,404,912,120 \
- & 357,788,302,700,438,191,196,160 \
- & 43,808,044,579,418,934,376,632 \
- & 214,023,244,873,618,345,872,240 \
& 11,818,373,349,781,028,079 \
& 347,370,177,721,463,765,064,153
endarray
endbmatrix^T
beginbmatrix
beginarrayl
eta^4z^4 \
eta^5z^4 \
eta^5z^3 \
eta^4z^3 \
eta^3z^3 \
eta^2z^2 \
eta^5z^2 \
eta^4z^2 \
eta^3z^2 \
eta^3z \
eta^5z \
eta^4z \
eta z \
eta^2z \
eta^2 \
eta^5 \
1 \
eta^4 \
eta^3 \
eta
endarray
endbmatrix
&
beginarrayl
u(z) = beginbmatrix beginarrayr @hspace0em r & 417,420 \ - & 4,169,121 \ - & 15,571,312 endarrayendbmatrix^T beginbmatrix beginarrayl z^2 \ z \ 1 endarrayendbmatrix\[3em]
v(z) = beginbmatrix beginarrayr @hspace0em r & 1,546 \ & 3,537 endarrayendbmatrix^T beginbmatrixbeginarrayl z \ 1 endarrayendbmatrix\[3em]
w(z) = beginbmatrixbeginarrayr @hspace0em r & 3,092 \ & 17,001 endarrayendbmatrix^T beginbmatrixbeginarrayl z \ 1 endarrayendbmatrix \[3em]
endarray
endarray
$$



PS. Having said that, given the nature of the numbers involved, I would also agree with Mefitico's point of view in the comments, i.e. it's best to create a variable with indices and express via a cleaner expression, and then refer to a table mapping those indices to the actual numbers involved.






share|improve this answer




















  • 1





    The round brackets in the definitions of $u$, $v$ and $w$ seem superfluous.

    – jochen
    2 days ago






  • 1





    From the point of view of someone wishing or needing to use such a polynomial, it would be helpful to insert breaks in all the long numbers to ease readability.

    – JeremyC
    2 days ago











  • @jochen thanks, updated

    – Tasos Papastylianou
    yesterday











  • @JeremyC thanks, updated. I went for comma delimiters rather than breaks, as that might have been misleading in the context of matrix notation.

    – Tasos Papastylianou
    yesterday


















6














or



enter image description here



documentclassarticle
%usepackageamsmath% Loaded by mathtools
usepackagemathtools, nccmath
begindocument
beginmultline*medmath
f(z)=frac1382112640
fracleft[
beginmultlined
-306772802511648469920eta^4z^4+762453974480763801600eta^5z^4-\
1678626210368271790080eta^5z^3-28510918043555533736160eta^4z^3+\
11443138641451067779872eta^3z^3-52164076923190540413504eta^2z^2-\
78145258181161076156160eta^5z^2-211306163712129371808450eta^4z^2+\
228927087397104405937944eta^3z^2+999881065017543109136462eta^3z-\
317254092617698017425280eta^5z-443761561344388063474665eta^4z+\
82327155732241730770824eta z - 514623285385260545505123eta^2z-\
1010535343560043404912120eta^2-357788302700438191196160eta^5-\
43808044579418934376632-214023244873618345872240eta^4+\
11818373349781028079eta^3+347370177721463765064153eta
endmultlinedright]
(417420z^2-4169121z-15571312)(1546z+3537)(3092z+17001)
endmultline*





share|improve this answer






























    2














    I recommend aligning the variables and adding some form of thousand-separators, both will enhance the readability. What I also recommend (but didn't do here) is sorting by the powers of the first and then the second variable. This is a modification of JuleV's answer.



    documentclassarticle
    %usepackageamsmath% Loaded by mathtools
    usepackagemathtools
    begindocument
    Blah blah
    [f(z)=frac1382112640cdotfracAB]
    where
    [
    arraycolsep=0.5pt
    beginarrayrrllrll
    A=&, -306,772,802,511,648,469,920 &eta^4 &z^4 & +762,453,974,480,763,801,600 &eta^5 &z^4\
    &, -1,678,626,210,368,271,790,080 &eta^5 &z^3 & -2,8510,918,043,555,533,736,160 &eta^4 &z^3\
    &, +11,443,138,641,451,067,779,872 &eta^3 &z^3 & -5,2164,076,923,190,540,413,504 &eta^2 &z^2\
    &, -78,145,258,181,161,076,156,160 &eta^5 &z^2 & -21,1306,163,712,129,371,808,450 &eta^4 &z^2\
    &, +228,927,087,397,104,405,937,944 &eta^3 &z^2 & +99,9881,065,017,543,109,136,462 &eta^3 &z\
    &, -317,254,092,617,698,017,425,280 &eta^5 &z & -44,3761,561,344,388,063,474,665 &eta^4 &z\
    &, +82,327,155,732,241,730,770,824 &eta &z & -51,4623,285,385,260,545,505,123 &eta^2 &z\
    &,-1,010,535,343,560,043,404,912,120 &eta^2 & & -35,7788,302,700,438,191,196,160 &eta^5 &\
    &, -43,808,044,579,418,934,376,632 & & & -21,4023,244,873,618,345,872,240 &eta^4 &\
    &, +11,818,373,349,781,028,079 &eta^3 & & +34,7370,177,721,463,765,064,153 &eta &
    endarray
    ]
    and
    [B=(417,420z^2-4,169,121z-15,571,312)(1,546z+3,537)(3,092z+17,001)]
    enddocument


    I'm sure there are also some custom packages that can do this for you but this is just using the packages you provided:



    enter image description here






    share|improve this answer






























      0














      I would usually use the package breqn. That automatically line-breaks equations, and has a lot of very nice features, but uses low-level having into the maths primitives, which means it tends to make a mess of other packages what do the same thing (for example, you can't use both breqn and sansmath in the same document)



      begindmath*
      f(z)=frac1382112640times-306772802511648469920eta^4z^4+left(762453974480763801600eta^5z^4-1678626210368271790080eta^5z^3-28510918043555533736160eta^4z^3+11443138641451067779872eta^3z^3-52164076923190540413504eta^2z^2-78145258181161076156160eta^5z^2-211306163712129371808450eta^4z^2+228927087397104405937944eta^3z^2+999881065017543109136462eta^3z-317254092617698017425280eta^5z-443761561344388063474665eta^4z+82327155732241730770824eta z-514623285385260545505123eta^2z-1010535343560043404912120eta^2-357788302700438191196160eta^5-43808044579418934376632-214023244873618345872240eta^4+11818373349781028079eta^3+347370177721463765064153etaright)timesleft(left(417420z^2-4169121z-15571312right)left(1546z+3537right)left(3092z+17001right)right)^-1
      enddmath*


      which produces this huge equation



      IMO the right-alignment is ugly but apparently that's the AMS standard - without the brackets it left aligns all those lines like the alginat version.






      share|improve this answer






























        0














        Following the original disposition of the function, but using alignat, parenthesis, and fractions to emphasize its different terms.



        documentclassarticle

        usepackagemathtools

        begindocument

        beginalignat*2
        & f(z) && = frac1382112640 times left( vphantomfrac1382112640 -306772802511648469920 eta^4 z^4 + 762453974480763801600 eta^5 z^4 right. \[1.5ex]
        & && -1678626210368271790080 eta^5 z^3 -28510918043555533736160 eta^4 z^3 \[1.5ex]
        & && +11443138641451067779872 eta^3 z^3 -52164076923190540413504 eta^2 z^2 \[1.5ex]
        & && -78145258181161076156160 eta^5 z^2 -211306163712129371808450 eta^4 z^2 \[1.5ex]
        & && +228927087397104405937944 eta^3 z^2 +999881065017543109136462 eta^3 z \[1.5ex]
        & && -317254092617698017425280 eta^5 z -443761561344388063474665 eta^4 z \[1.5ex]
        & && +82327155732241730770824 eta z -514623285385260545505123 eta^2 z \[1.5ex]
        & && -1010535343560043404912120 eta^2 -357788302700438191196160 eta^5 \[1.5ex]
        & && -43808044579418934376632 -214023244873618345872240 eta^4 \[1.5ex]
        & && +11818373349781028079 eta^3 +347370177721463765064153eta left. vphantomfrac1382112640 right) \[1.5ex]
        & && times frac1(417420z^2-4169121z-15571312)(1546z+3537)(3092z+17001)
        endalignat*

        enddocument


        fig






        share|improve this answer

























        • Do you think this fits the page margin?

          – JouleV
          Apr 5 at 9:14











        • It fitted for me. An alternative is to add \ to the last line to bring the last multiplication and fraction to an additional line.

          – Andre
          Apr 5 at 9:22












        • In the original question, the term 417420z^2-4169121z-15571312 is in denominator, not in the numerator as you place it.

          – quark67
          2 days ago











        • OK. I will revise this.

          – Andre
          yesterday











        • Revised the members of the last fraction. Also added a line for the last term (which also ensures that the display will fit the margins).

          – Andre
          yesterday












        Your Answer








        StackExchange.ready(function()
        var channelOptions =
        tags: "".split(" "),
        id: "85"
        ;
        initTagRenderer("".split(" "), "".split(" "), channelOptions);

        StackExchange.using("externalEditor", function()
        // Have to fire editor after snippets, if snippets enabled
        if (StackExchange.settings.snippets.snippetsEnabled)
        StackExchange.using("snippets", function()
        createEditor();
        );

        else
        createEditor();

        );

        function createEditor()
        StackExchange.prepareEditor(
        heartbeatType: 'answer',
        autoActivateHeartbeat: false,
        convertImagesToLinks: false,
        noModals: true,
        showLowRepImageUploadWarning: true,
        reputationToPostImages: null,
        bindNavPrevention: true,
        postfix: "",
        imageUploader:
        brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
        contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
        allowUrls: true
        ,
        onDemand: true,
        discardSelector: ".discard-answer"
        ,immediatelyShowMarkdownHelp:true
        );



        );













        draft saved

        draft discarded


















        StackExchange.ready(
        function ()
        StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f483300%2fhow-to-format-a-long-polynomial%23new-answer', 'question_page');

        );

        Post as a guest















        Required, but never shown

























        7 Answers
        7






        active

        oldest

        votes








        7 Answers
        7






        active

        oldest

        votes









        active

        oldest

        votes






        active

        oldest

        votes









        15














        I would use something like this



        documentclassarticle
        %usepackageamsmath% Loaded by mathtools
        usepackagemathtools
        begindocument
        Blah blah
        [f(z)=frac1382112640cdotfracAB]
        where
        beginalign*
        A=&,-306772802511648469920eta^4z^4+762453974480763801600eta^5z^4\
        &,-1678626210368271790080eta^5z^3-28510918043555533736160eta^4z^3\
        &,+11443138641451067779872eta^3z^3-52164076923190540413504eta^2z^2\
        &,-78145258181161076156160eta^5z^2-211306163712129371808450eta^4z^2\
        &,+228927087397104405937944eta^3z^2+999881065017543109136462eta^3z\
        &,-317254092617698017425280eta^5z-443761561344388063474665eta^4z\
        &,+82327155732241730770824eta z-514623285385260545505123eta^2z\
        &,-1010535343560043404912120eta^2-357788302700438191196160eta^5\
        &,-43808044579418934376632-214023244873618345872240eta^4\
        &,+11818373349781028079eta^3+347370177721463765064153eta
        endalign*
        and
        [B=(417420z^2-4169121z-15571312)(1546z+3537)(3092z+17001)]
        enddocument


        enter image description here






        share|improve this answer


















        • 1





          you could format this even more compactly by using matrix multiplication to express A

          – Tasos Papastylianou
          Apr 5 at 15:44















        15














        I would use something like this



        documentclassarticle
        %usepackageamsmath% Loaded by mathtools
        usepackagemathtools
        begindocument
        Blah blah
        [f(z)=frac1382112640cdotfracAB]
        where
        beginalign*
        A=&,-306772802511648469920eta^4z^4+762453974480763801600eta^5z^4\
        &,-1678626210368271790080eta^5z^3-28510918043555533736160eta^4z^3\
        &,+11443138641451067779872eta^3z^3-52164076923190540413504eta^2z^2\
        &,-78145258181161076156160eta^5z^2-211306163712129371808450eta^4z^2\
        &,+228927087397104405937944eta^3z^2+999881065017543109136462eta^3z\
        &,-317254092617698017425280eta^5z-443761561344388063474665eta^4z\
        &,+82327155732241730770824eta z-514623285385260545505123eta^2z\
        &,-1010535343560043404912120eta^2-357788302700438191196160eta^5\
        &,-43808044579418934376632-214023244873618345872240eta^4\
        &,+11818373349781028079eta^3+347370177721463765064153eta
        endalign*
        and
        [B=(417420z^2-4169121z-15571312)(1546z+3537)(3092z+17001)]
        enddocument


        enter image description here






        share|improve this answer


















        • 1





          you could format this even more compactly by using matrix multiplication to express A

          – Tasos Papastylianou
          Apr 5 at 15:44













        15












        15








        15







        I would use something like this



        documentclassarticle
        %usepackageamsmath% Loaded by mathtools
        usepackagemathtools
        begindocument
        Blah blah
        [f(z)=frac1382112640cdotfracAB]
        where
        beginalign*
        A=&,-306772802511648469920eta^4z^4+762453974480763801600eta^5z^4\
        &,-1678626210368271790080eta^5z^3-28510918043555533736160eta^4z^3\
        &,+11443138641451067779872eta^3z^3-52164076923190540413504eta^2z^2\
        &,-78145258181161076156160eta^5z^2-211306163712129371808450eta^4z^2\
        &,+228927087397104405937944eta^3z^2+999881065017543109136462eta^3z\
        &,-317254092617698017425280eta^5z-443761561344388063474665eta^4z\
        &,+82327155732241730770824eta z-514623285385260545505123eta^2z\
        &,-1010535343560043404912120eta^2-357788302700438191196160eta^5\
        &,-43808044579418934376632-214023244873618345872240eta^4\
        &,+11818373349781028079eta^3+347370177721463765064153eta
        endalign*
        and
        [B=(417420z^2-4169121z-15571312)(1546z+3537)(3092z+17001)]
        enddocument


        enter image description here






        share|improve this answer













        I would use something like this



        documentclassarticle
        %usepackageamsmath% Loaded by mathtools
        usepackagemathtools
        begindocument
        Blah blah
        [f(z)=frac1382112640cdotfracAB]
        where
        beginalign*
        A=&,-306772802511648469920eta^4z^4+762453974480763801600eta^5z^4\
        &,-1678626210368271790080eta^5z^3-28510918043555533736160eta^4z^3\
        &,+11443138641451067779872eta^3z^3-52164076923190540413504eta^2z^2\
        &,-78145258181161076156160eta^5z^2-211306163712129371808450eta^4z^2\
        &,+228927087397104405937944eta^3z^2+999881065017543109136462eta^3z\
        &,-317254092617698017425280eta^5z-443761561344388063474665eta^4z\
        &,+82327155732241730770824eta z-514623285385260545505123eta^2z\
        &,-1010535343560043404912120eta^2-357788302700438191196160eta^5\
        &,-43808044579418934376632-214023244873618345872240eta^4\
        &,+11818373349781028079eta^3+347370177721463765064153eta
        endalign*
        and
        [B=(417420z^2-4169121z-15571312)(1546z+3537)(3092z+17001)]
        enddocument


        enter image description here







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Apr 5 at 7:24









        JouleVJouleV

        11.7k22561




        11.7k22561







        • 1





          you could format this even more compactly by using matrix multiplication to express A

          – Tasos Papastylianou
          Apr 5 at 15:44












        • 1





          you could format this even more compactly by using matrix multiplication to express A

          – Tasos Papastylianou
          Apr 5 at 15:44







        1




        1





        you could format this even more compactly by using matrix multiplication to express A

        – Tasos Papastylianou
        Apr 5 at 15:44





        you could format this even more compactly by using matrix multiplication to express A

        – Tasos Papastylianou
        Apr 5 at 15:44











        13














        I suggest something line the following, so the wide terms are reduced.



        documentclassarticle
        %usepackageamsmath% Loaded by mathtools
        usepackagemathtools

        begindocument

        begingather*
        beginalign*
        g(eta,z)&=
        parbox[t]0.85displaywidthraggedright
        $-306772802511648469920eta^4z^4+
        762453974480763801600eta^5z^4-
        1678626210368271790080eta^5z^3-
        28510918043555533736160eta^4z^3+
        11443138641451067779872eta^3z^3-
        52164076923190540413504eta^2z^2-
        78145258181161076156160eta^5z^2-
        211306163712129371808450eta^4z^2+
        228927087397104405937944eta^3z^2+
        999881065017543109136462eta^3z-
        317254092617698017425280eta^5z-
        443761561344388063474665eta^4z+
        82327155732241730770824eta z-
        514623285385260545505123eta^2z-
        1010535343560043404912120eta^2-
        357788302700438191196160eta^5-
        43808044579418934376632-
        214023244873618345872240eta^4+
        11818373349781028079eta^3+
        347370177721463765064153eta$

        \[2ex]
        h(z)&=(417420z^2-4169121z-15571312)(1546z+3537)(3092z+17001)
        endalign*
        \[2ex]
        f(z)=frac1382112640fracg(eta,z)h(z)
        endgather*

        enddocument


        enter image description here






        share|improve this answer























        • your answer is OK, but some terms are out of pages margins.

          – Nick
          Apr 5 at 8:01






        • 7





          @Nick Without knowing the line width you're using it's difficult to say more.

          – egreg
          Apr 5 at 8:19











        • @Nick egreg's answer uses default margin of article, which is already really big. But it doesn't fit your margin?

          – JouleV
          Apr 5 at 8:29











        • I have moved the signs "-, +" from lines end and put them under sign "=".

          – Nick
          Apr 5 at 8:36















        13














        I suggest something line the following, so the wide terms are reduced.



        documentclassarticle
        %usepackageamsmath% Loaded by mathtools
        usepackagemathtools

        begindocument

        begingather*
        beginalign*
        g(eta,z)&=
        parbox[t]0.85displaywidthraggedright
        $-306772802511648469920eta^4z^4+
        762453974480763801600eta^5z^4-
        1678626210368271790080eta^5z^3-
        28510918043555533736160eta^4z^3+
        11443138641451067779872eta^3z^3-
        52164076923190540413504eta^2z^2-
        78145258181161076156160eta^5z^2-
        211306163712129371808450eta^4z^2+
        228927087397104405937944eta^3z^2+
        999881065017543109136462eta^3z-
        317254092617698017425280eta^5z-
        443761561344388063474665eta^4z+
        82327155732241730770824eta z-
        514623285385260545505123eta^2z-
        1010535343560043404912120eta^2-
        357788302700438191196160eta^5-
        43808044579418934376632-
        214023244873618345872240eta^4+
        11818373349781028079eta^3+
        347370177721463765064153eta$

        \[2ex]
        h(z)&=(417420z^2-4169121z-15571312)(1546z+3537)(3092z+17001)
        endalign*
        \[2ex]
        f(z)=frac1382112640fracg(eta,z)h(z)
        endgather*

        enddocument


        enter image description here






        share|improve this answer























        • your answer is OK, but some terms are out of pages margins.

          – Nick
          Apr 5 at 8:01






        • 7





          @Nick Without knowing the line width you're using it's difficult to say more.

          – egreg
          Apr 5 at 8:19











        • @Nick egreg's answer uses default margin of article, which is already really big. But it doesn't fit your margin?

          – JouleV
          Apr 5 at 8:29











        • I have moved the signs "-, +" from lines end and put them under sign "=".

          – Nick
          Apr 5 at 8:36













        13












        13








        13







        I suggest something line the following, so the wide terms are reduced.



        documentclassarticle
        %usepackageamsmath% Loaded by mathtools
        usepackagemathtools

        begindocument

        begingather*
        beginalign*
        g(eta,z)&=
        parbox[t]0.85displaywidthraggedright
        $-306772802511648469920eta^4z^4+
        762453974480763801600eta^5z^4-
        1678626210368271790080eta^5z^3-
        28510918043555533736160eta^4z^3+
        11443138641451067779872eta^3z^3-
        52164076923190540413504eta^2z^2-
        78145258181161076156160eta^5z^2-
        211306163712129371808450eta^4z^2+
        228927087397104405937944eta^3z^2+
        999881065017543109136462eta^3z-
        317254092617698017425280eta^5z-
        443761561344388063474665eta^4z+
        82327155732241730770824eta z-
        514623285385260545505123eta^2z-
        1010535343560043404912120eta^2-
        357788302700438191196160eta^5-
        43808044579418934376632-
        214023244873618345872240eta^4+
        11818373349781028079eta^3+
        347370177721463765064153eta$

        \[2ex]
        h(z)&=(417420z^2-4169121z-15571312)(1546z+3537)(3092z+17001)
        endalign*
        \[2ex]
        f(z)=frac1382112640fracg(eta,z)h(z)
        endgather*

        enddocument


        enter image description here






        share|improve this answer













        I suggest something line the following, so the wide terms are reduced.



        documentclassarticle
        %usepackageamsmath% Loaded by mathtools
        usepackagemathtools

        begindocument

        begingather*
        beginalign*
        g(eta,z)&=
        parbox[t]0.85displaywidthraggedright
        $-306772802511648469920eta^4z^4+
        762453974480763801600eta^5z^4-
        1678626210368271790080eta^5z^3-
        28510918043555533736160eta^4z^3+
        11443138641451067779872eta^3z^3-
        52164076923190540413504eta^2z^2-
        78145258181161076156160eta^5z^2-
        211306163712129371808450eta^4z^2+
        228927087397104405937944eta^3z^2+
        999881065017543109136462eta^3z-
        317254092617698017425280eta^5z-
        443761561344388063474665eta^4z+
        82327155732241730770824eta z-
        514623285385260545505123eta^2z-
        1010535343560043404912120eta^2-
        357788302700438191196160eta^5-
        43808044579418934376632-
        214023244873618345872240eta^4+
        11818373349781028079eta^3+
        347370177721463765064153eta$

        \[2ex]
        h(z)&=(417420z^2-4169121z-15571312)(1546z+3537)(3092z+17001)
        endalign*
        \[2ex]
        f(z)=frac1382112640fracg(eta,z)h(z)
        endgather*

        enddocument


        enter image description here







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Apr 5 at 7:32









        egregegreg

        732k8919303254




        732k8919303254












        • your answer is OK, but some terms are out of pages margins.

          – Nick
          Apr 5 at 8:01






        • 7





          @Nick Without knowing the line width you're using it's difficult to say more.

          – egreg
          Apr 5 at 8:19











        • @Nick egreg's answer uses default margin of article, which is already really big. But it doesn't fit your margin?

          – JouleV
          Apr 5 at 8:29











        • I have moved the signs "-, +" from lines end and put them under sign "=".

          – Nick
          Apr 5 at 8:36

















        • your answer is OK, but some terms are out of pages margins.

          – Nick
          Apr 5 at 8:01






        • 7





          @Nick Without knowing the line width you're using it's difficult to say more.

          – egreg
          Apr 5 at 8:19











        • @Nick egreg's answer uses default margin of article, which is already really big. But it doesn't fit your margin?

          – JouleV
          Apr 5 at 8:29











        • I have moved the signs "-, +" from lines end and put them under sign "=".

          – Nick
          Apr 5 at 8:36
















        your answer is OK, but some terms are out of pages margins.

        – Nick
        Apr 5 at 8:01





        your answer is OK, but some terms are out of pages margins.

        – Nick
        Apr 5 at 8:01




        7




        7





        @Nick Without knowing the line width you're using it's difficult to say more.

        – egreg
        Apr 5 at 8:19





        @Nick Without knowing the line width you're using it's difficult to say more.

        – egreg
        Apr 5 at 8:19













        @Nick egreg's answer uses default margin of article, which is already really big. But it doesn't fit your margin?

        – JouleV
        Apr 5 at 8:29





        @Nick egreg's answer uses default margin of article, which is already really big. But it doesn't fit your margin?

        – JouleV
        Apr 5 at 8:29













        I have moved the signs "-, +" from lines end and put them under sign "=".

        – Nick
        Apr 5 at 8:36





        I have moved the signs "-, +" from lines end and put them under sign "=".

        – Nick
        Apr 5 at 8:36











        7














        Given the nature of the operations, you can probably express this in a tidy manner using matrix multiplication notation, eg:





        where:





        Code:



        $$ f(z)=frac1382,112,640 ; fracg(eta, z)u(z) , v(z) , w(z) $$

        where

        $$
        beginarrayll
        g(eta, z) =
        beginbmatrix
        beginarrayr @hspace0em r
        - & 306,772,802,511,648,469,920 \
        & 762,453,974,480,763,801,600 \
        - & 1,678,626,210,368,271,790,080 \
        - & 28,510,918,043,555,533,736,160 \
        & 11,443,138,641,451,067,779,872 \
        - & 52,164,076,923,190,540,413,504 \
        - & 78,145,258,181,161,076,156,160 \
        - & 211,306,163,712,129,371,808,450 \
        & 228,927,087,397,104,405,937,944 \
        & 999,881,065,017,543,109,136,462 \
        - & 317,254,092,617,698,017,425,280 \
        - & 443,761,561,344,388,063,474,665 \
        & 82,327,155,732,241,730,770,824 \
        - & 514,623,285,385,260,545,505,123 \
        - & 1,010,535,343,560,043,404,912,120 \
        - & 357,788,302,700,438,191,196,160 \
        - & 43,808,044,579,418,934,376,632 \
        - & 214,023,244,873,618,345,872,240 \
        & 11,818,373,349,781,028,079 \
        & 347,370,177,721,463,765,064,153
        endarray
        endbmatrix^T
        beginbmatrix
        beginarrayl
        eta^4z^4 \
        eta^5z^4 \
        eta^5z^3 \
        eta^4z^3 \
        eta^3z^3 \
        eta^2z^2 \
        eta^5z^2 \
        eta^4z^2 \
        eta^3z^2 \
        eta^3z \
        eta^5z \
        eta^4z \
        eta z \
        eta^2z \
        eta^2 \
        eta^5 \
        1 \
        eta^4 \
        eta^3 \
        eta
        endarray
        endbmatrix
        &
        beginarrayl
        u(z) = beginbmatrix beginarrayr @hspace0em r & 417,420 \ - & 4,169,121 \ - & 15,571,312 endarrayendbmatrix^T beginbmatrix beginarrayl z^2 \ z \ 1 endarrayendbmatrix\[3em]
        v(z) = beginbmatrix beginarrayr @hspace0em r & 1,546 \ & 3,537 endarrayendbmatrix^T beginbmatrixbeginarrayl z \ 1 endarrayendbmatrix\[3em]
        w(z) = beginbmatrixbeginarrayr @hspace0em r & 3,092 \ & 17,001 endarrayendbmatrix^T beginbmatrixbeginarrayl z \ 1 endarrayendbmatrix \[3em]
        endarray
        endarray
        $$



        PS. Having said that, given the nature of the numbers involved, I would also agree with Mefitico's point of view in the comments, i.e. it's best to create a variable with indices and express via a cleaner expression, and then refer to a table mapping those indices to the actual numbers involved.






        share|improve this answer




















        • 1





          The round brackets in the definitions of $u$, $v$ and $w$ seem superfluous.

          – jochen
          2 days ago






        • 1





          From the point of view of someone wishing or needing to use such a polynomial, it would be helpful to insert breaks in all the long numbers to ease readability.

          – JeremyC
          2 days ago











        • @jochen thanks, updated

          – Tasos Papastylianou
          yesterday











        • @JeremyC thanks, updated. I went for comma delimiters rather than breaks, as that might have been misleading in the context of matrix notation.

          – Tasos Papastylianou
          yesterday















        7














        Given the nature of the operations, you can probably express this in a tidy manner using matrix multiplication notation, eg:





        where:





        Code:



        $$ f(z)=frac1382,112,640 ; fracg(eta, z)u(z) , v(z) , w(z) $$

        where

        $$
        beginarrayll
        g(eta, z) =
        beginbmatrix
        beginarrayr @hspace0em r
        - & 306,772,802,511,648,469,920 \
        & 762,453,974,480,763,801,600 \
        - & 1,678,626,210,368,271,790,080 \
        - & 28,510,918,043,555,533,736,160 \
        & 11,443,138,641,451,067,779,872 \
        - & 52,164,076,923,190,540,413,504 \
        - & 78,145,258,181,161,076,156,160 \
        - & 211,306,163,712,129,371,808,450 \
        & 228,927,087,397,104,405,937,944 \
        & 999,881,065,017,543,109,136,462 \
        - & 317,254,092,617,698,017,425,280 \
        - & 443,761,561,344,388,063,474,665 \
        & 82,327,155,732,241,730,770,824 \
        - & 514,623,285,385,260,545,505,123 \
        - & 1,010,535,343,560,043,404,912,120 \
        - & 357,788,302,700,438,191,196,160 \
        - & 43,808,044,579,418,934,376,632 \
        - & 214,023,244,873,618,345,872,240 \
        & 11,818,373,349,781,028,079 \
        & 347,370,177,721,463,765,064,153
        endarray
        endbmatrix^T
        beginbmatrix
        beginarrayl
        eta^4z^4 \
        eta^5z^4 \
        eta^5z^3 \
        eta^4z^3 \
        eta^3z^3 \
        eta^2z^2 \
        eta^5z^2 \
        eta^4z^2 \
        eta^3z^2 \
        eta^3z \
        eta^5z \
        eta^4z \
        eta z \
        eta^2z \
        eta^2 \
        eta^5 \
        1 \
        eta^4 \
        eta^3 \
        eta
        endarray
        endbmatrix
        &
        beginarrayl
        u(z) = beginbmatrix beginarrayr @hspace0em r & 417,420 \ - & 4,169,121 \ - & 15,571,312 endarrayendbmatrix^T beginbmatrix beginarrayl z^2 \ z \ 1 endarrayendbmatrix\[3em]
        v(z) = beginbmatrix beginarrayr @hspace0em r & 1,546 \ & 3,537 endarrayendbmatrix^T beginbmatrixbeginarrayl z \ 1 endarrayendbmatrix\[3em]
        w(z) = beginbmatrixbeginarrayr @hspace0em r & 3,092 \ & 17,001 endarrayendbmatrix^T beginbmatrixbeginarrayl z \ 1 endarrayendbmatrix \[3em]
        endarray
        endarray
        $$



        PS. Having said that, given the nature of the numbers involved, I would also agree with Mefitico's point of view in the comments, i.e. it's best to create a variable with indices and express via a cleaner expression, and then refer to a table mapping those indices to the actual numbers involved.






        share|improve this answer




















        • 1





          The round brackets in the definitions of $u$, $v$ and $w$ seem superfluous.

          – jochen
          2 days ago






        • 1





          From the point of view of someone wishing or needing to use such a polynomial, it would be helpful to insert breaks in all the long numbers to ease readability.

          – JeremyC
          2 days ago











        • @jochen thanks, updated

          – Tasos Papastylianou
          yesterday











        • @JeremyC thanks, updated. I went for comma delimiters rather than breaks, as that might have been misleading in the context of matrix notation.

          – Tasos Papastylianou
          yesterday













        7












        7








        7







        Given the nature of the operations, you can probably express this in a tidy manner using matrix multiplication notation, eg:





        where:





        Code:



        $$ f(z)=frac1382,112,640 ; fracg(eta, z)u(z) , v(z) , w(z) $$

        where

        $$
        beginarrayll
        g(eta, z) =
        beginbmatrix
        beginarrayr @hspace0em r
        - & 306,772,802,511,648,469,920 \
        & 762,453,974,480,763,801,600 \
        - & 1,678,626,210,368,271,790,080 \
        - & 28,510,918,043,555,533,736,160 \
        & 11,443,138,641,451,067,779,872 \
        - & 52,164,076,923,190,540,413,504 \
        - & 78,145,258,181,161,076,156,160 \
        - & 211,306,163,712,129,371,808,450 \
        & 228,927,087,397,104,405,937,944 \
        & 999,881,065,017,543,109,136,462 \
        - & 317,254,092,617,698,017,425,280 \
        - & 443,761,561,344,388,063,474,665 \
        & 82,327,155,732,241,730,770,824 \
        - & 514,623,285,385,260,545,505,123 \
        - & 1,010,535,343,560,043,404,912,120 \
        - & 357,788,302,700,438,191,196,160 \
        - & 43,808,044,579,418,934,376,632 \
        - & 214,023,244,873,618,345,872,240 \
        & 11,818,373,349,781,028,079 \
        & 347,370,177,721,463,765,064,153
        endarray
        endbmatrix^T
        beginbmatrix
        beginarrayl
        eta^4z^4 \
        eta^5z^4 \
        eta^5z^3 \
        eta^4z^3 \
        eta^3z^3 \
        eta^2z^2 \
        eta^5z^2 \
        eta^4z^2 \
        eta^3z^2 \
        eta^3z \
        eta^5z \
        eta^4z \
        eta z \
        eta^2z \
        eta^2 \
        eta^5 \
        1 \
        eta^4 \
        eta^3 \
        eta
        endarray
        endbmatrix
        &
        beginarrayl
        u(z) = beginbmatrix beginarrayr @hspace0em r & 417,420 \ - & 4,169,121 \ - & 15,571,312 endarrayendbmatrix^T beginbmatrix beginarrayl z^2 \ z \ 1 endarrayendbmatrix\[3em]
        v(z) = beginbmatrix beginarrayr @hspace0em r & 1,546 \ & 3,537 endarrayendbmatrix^T beginbmatrixbeginarrayl z \ 1 endarrayendbmatrix\[3em]
        w(z) = beginbmatrixbeginarrayr @hspace0em r & 3,092 \ & 17,001 endarrayendbmatrix^T beginbmatrixbeginarrayl z \ 1 endarrayendbmatrix \[3em]
        endarray
        endarray
        $$



        PS. Having said that, given the nature of the numbers involved, I would also agree with Mefitico's point of view in the comments, i.e. it's best to create a variable with indices and express via a cleaner expression, and then refer to a table mapping those indices to the actual numbers involved.






        share|improve this answer















        Given the nature of the operations, you can probably express this in a tidy manner using matrix multiplication notation, eg:





        where:





        Code:



        $$ f(z)=frac1382,112,640 ; fracg(eta, z)u(z) , v(z) , w(z) $$

        where

        $$
        beginarrayll
        g(eta, z) =
        beginbmatrix
        beginarrayr @hspace0em r
        - & 306,772,802,511,648,469,920 \
        & 762,453,974,480,763,801,600 \
        - & 1,678,626,210,368,271,790,080 \
        - & 28,510,918,043,555,533,736,160 \
        & 11,443,138,641,451,067,779,872 \
        - & 52,164,076,923,190,540,413,504 \
        - & 78,145,258,181,161,076,156,160 \
        - & 211,306,163,712,129,371,808,450 \
        & 228,927,087,397,104,405,937,944 \
        & 999,881,065,017,543,109,136,462 \
        - & 317,254,092,617,698,017,425,280 \
        - & 443,761,561,344,388,063,474,665 \
        & 82,327,155,732,241,730,770,824 \
        - & 514,623,285,385,260,545,505,123 \
        - & 1,010,535,343,560,043,404,912,120 \
        - & 357,788,302,700,438,191,196,160 \
        - & 43,808,044,579,418,934,376,632 \
        - & 214,023,244,873,618,345,872,240 \
        & 11,818,373,349,781,028,079 \
        & 347,370,177,721,463,765,064,153
        endarray
        endbmatrix^T
        beginbmatrix
        beginarrayl
        eta^4z^4 \
        eta^5z^4 \
        eta^5z^3 \
        eta^4z^3 \
        eta^3z^3 \
        eta^2z^2 \
        eta^5z^2 \
        eta^4z^2 \
        eta^3z^2 \
        eta^3z \
        eta^5z \
        eta^4z \
        eta z \
        eta^2z \
        eta^2 \
        eta^5 \
        1 \
        eta^4 \
        eta^3 \
        eta
        endarray
        endbmatrix
        &
        beginarrayl
        u(z) = beginbmatrix beginarrayr @hspace0em r & 417,420 \ - & 4,169,121 \ - & 15,571,312 endarrayendbmatrix^T beginbmatrix beginarrayl z^2 \ z \ 1 endarrayendbmatrix\[3em]
        v(z) = beginbmatrix beginarrayr @hspace0em r & 1,546 \ & 3,537 endarrayendbmatrix^T beginbmatrixbeginarrayl z \ 1 endarrayendbmatrix\[3em]
        w(z) = beginbmatrixbeginarrayr @hspace0em r & 3,092 \ & 17,001 endarrayendbmatrix^T beginbmatrixbeginarrayl z \ 1 endarrayendbmatrix \[3em]
        endarray
        endarray
        $$



        PS. Having said that, given the nature of the numbers involved, I would also agree with Mefitico's point of view in the comments, i.e. it's best to create a variable with indices and express via a cleaner expression, and then refer to a table mapping those indices to the actual numbers involved.







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited yesterday

























        answered Apr 5 at 16:10









        Tasos PapastylianouTasos Papastylianou

        352211




        352211







        • 1





          The round brackets in the definitions of $u$, $v$ and $w$ seem superfluous.

          – jochen
          2 days ago






        • 1





          From the point of view of someone wishing or needing to use such a polynomial, it would be helpful to insert breaks in all the long numbers to ease readability.

          – JeremyC
          2 days ago











        • @jochen thanks, updated

          – Tasos Papastylianou
          yesterday











        • @JeremyC thanks, updated. I went for comma delimiters rather than breaks, as that might have been misleading in the context of matrix notation.

          – Tasos Papastylianou
          yesterday












        • 1





          The round brackets in the definitions of $u$, $v$ and $w$ seem superfluous.

          – jochen
          2 days ago






        • 1





          From the point of view of someone wishing or needing to use such a polynomial, it would be helpful to insert breaks in all the long numbers to ease readability.

          – JeremyC
          2 days ago











        • @jochen thanks, updated

          – Tasos Papastylianou
          yesterday











        • @JeremyC thanks, updated. I went for comma delimiters rather than breaks, as that might have been misleading in the context of matrix notation.

          – Tasos Papastylianou
          yesterday







        1




        1





        The round brackets in the definitions of $u$, $v$ and $w$ seem superfluous.

        – jochen
        2 days ago





        The round brackets in the definitions of $u$, $v$ and $w$ seem superfluous.

        – jochen
        2 days ago




        1




        1





        From the point of view of someone wishing or needing to use such a polynomial, it would be helpful to insert breaks in all the long numbers to ease readability.

        – JeremyC
        2 days ago





        From the point of view of someone wishing or needing to use such a polynomial, it would be helpful to insert breaks in all the long numbers to ease readability.

        – JeremyC
        2 days ago













        @jochen thanks, updated

        – Tasos Papastylianou
        yesterday





        @jochen thanks, updated

        – Tasos Papastylianou
        yesterday













        @JeremyC thanks, updated. I went for comma delimiters rather than breaks, as that might have been misleading in the context of matrix notation.

        – Tasos Papastylianou
        yesterday





        @JeremyC thanks, updated. I went for comma delimiters rather than breaks, as that might have been misleading in the context of matrix notation.

        – Tasos Papastylianou
        yesterday











        6














        or



        enter image description here



        documentclassarticle
        %usepackageamsmath% Loaded by mathtools
        usepackagemathtools, nccmath
        begindocument
        beginmultline*medmath
        f(z)=frac1382112640
        fracleft[
        beginmultlined
        -306772802511648469920eta^4z^4+762453974480763801600eta^5z^4-\
        1678626210368271790080eta^5z^3-28510918043555533736160eta^4z^3+\
        11443138641451067779872eta^3z^3-52164076923190540413504eta^2z^2-\
        78145258181161076156160eta^5z^2-211306163712129371808450eta^4z^2+\
        228927087397104405937944eta^3z^2+999881065017543109136462eta^3z-\
        317254092617698017425280eta^5z-443761561344388063474665eta^4z+\
        82327155732241730770824eta z - 514623285385260545505123eta^2z-\
        1010535343560043404912120eta^2-357788302700438191196160eta^5-\
        43808044579418934376632-214023244873618345872240eta^4+\
        11818373349781028079eta^3+347370177721463765064153eta
        endmultlinedright]
        (417420z^2-4169121z-15571312)(1546z+3537)(3092z+17001)
        endmultline*





        share|improve this answer



























          6














          or



          enter image description here



          documentclassarticle
          %usepackageamsmath% Loaded by mathtools
          usepackagemathtools, nccmath
          begindocument
          beginmultline*medmath
          f(z)=frac1382112640
          fracleft[
          beginmultlined
          -306772802511648469920eta^4z^4+762453974480763801600eta^5z^4-\
          1678626210368271790080eta^5z^3-28510918043555533736160eta^4z^3+\
          11443138641451067779872eta^3z^3-52164076923190540413504eta^2z^2-\
          78145258181161076156160eta^5z^2-211306163712129371808450eta^4z^2+\
          228927087397104405937944eta^3z^2+999881065017543109136462eta^3z-\
          317254092617698017425280eta^5z-443761561344388063474665eta^4z+\
          82327155732241730770824eta z - 514623285385260545505123eta^2z-\
          1010535343560043404912120eta^2-357788302700438191196160eta^5-\
          43808044579418934376632-214023244873618345872240eta^4+\
          11818373349781028079eta^3+347370177721463765064153eta
          endmultlinedright]
          (417420z^2-4169121z-15571312)(1546z+3537)(3092z+17001)
          endmultline*





          share|improve this answer

























            6












            6








            6







            or



            enter image description here



            documentclassarticle
            %usepackageamsmath% Loaded by mathtools
            usepackagemathtools, nccmath
            begindocument
            beginmultline*medmath
            f(z)=frac1382112640
            fracleft[
            beginmultlined
            -306772802511648469920eta^4z^4+762453974480763801600eta^5z^4-\
            1678626210368271790080eta^5z^3-28510918043555533736160eta^4z^3+\
            11443138641451067779872eta^3z^3-52164076923190540413504eta^2z^2-\
            78145258181161076156160eta^5z^2-211306163712129371808450eta^4z^2+\
            228927087397104405937944eta^3z^2+999881065017543109136462eta^3z-\
            317254092617698017425280eta^5z-443761561344388063474665eta^4z+\
            82327155732241730770824eta z - 514623285385260545505123eta^2z-\
            1010535343560043404912120eta^2-357788302700438191196160eta^5-\
            43808044579418934376632-214023244873618345872240eta^4+\
            11818373349781028079eta^3+347370177721463765064153eta
            endmultlinedright]
            (417420z^2-4169121z-15571312)(1546z+3537)(3092z+17001)
            endmultline*





            share|improve this answer













            or



            enter image description here



            documentclassarticle
            %usepackageamsmath% Loaded by mathtools
            usepackagemathtools, nccmath
            begindocument
            beginmultline*medmath
            f(z)=frac1382112640
            fracleft[
            beginmultlined
            -306772802511648469920eta^4z^4+762453974480763801600eta^5z^4-\
            1678626210368271790080eta^5z^3-28510918043555533736160eta^4z^3+\
            11443138641451067779872eta^3z^3-52164076923190540413504eta^2z^2-\
            78145258181161076156160eta^5z^2-211306163712129371808450eta^4z^2+\
            228927087397104405937944eta^3z^2+999881065017543109136462eta^3z-\
            317254092617698017425280eta^5z-443761561344388063474665eta^4z+\
            82327155732241730770824eta z - 514623285385260545505123eta^2z-\
            1010535343560043404912120eta^2-357788302700438191196160eta^5-\
            43808044579418934376632-214023244873618345872240eta^4+\
            11818373349781028079eta^3+347370177721463765064153eta
            endmultlinedright]
            (417420z^2-4169121z-15571312)(1546z+3537)(3092z+17001)
            endmultline*






            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Apr 5 at 7:36









            ZarkoZarko

            129k868169




            129k868169





















                2














                I recommend aligning the variables and adding some form of thousand-separators, both will enhance the readability. What I also recommend (but didn't do here) is sorting by the powers of the first and then the second variable. This is a modification of JuleV's answer.



                documentclassarticle
                %usepackageamsmath% Loaded by mathtools
                usepackagemathtools
                begindocument
                Blah blah
                [f(z)=frac1382112640cdotfracAB]
                where
                [
                arraycolsep=0.5pt
                beginarrayrrllrll
                A=&, -306,772,802,511,648,469,920 &eta^4 &z^4 & +762,453,974,480,763,801,600 &eta^5 &z^4\
                &, -1,678,626,210,368,271,790,080 &eta^5 &z^3 & -2,8510,918,043,555,533,736,160 &eta^4 &z^3\
                &, +11,443,138,641,451,067,779,872 &eta^3 &z^3 & -5,2164,076,923,190,540,413,504 &eta^2 &z^2\
                &, -78,145,258,181,161,076,156,160 &eta^5 &z^2 & -21,1306,163,712,129,371,808,450 &eta^4 &z^2\
                &, +228,927,087,397,104,405,937,944 &eta^3 &z^2 & +99,9881,065,017,543,109,136,462 &eta^3 &z\
                &, -317,254,092,617,698,017,425,280 &eta^5 &z & -44,3761,561,344,388,063,474,665 &eta^4 &z\
                &, +82,327,155,732,241,730,770,824 &eta &z & -51,4623,285,385,260,545,505,123 &eta^2 &z\
                &,-1,010,535,343,560,043,404,912,120 &eta^2 & & -35,7788,302,700,438,191,196,160 &eta^5 &\
                &, -43,808,044,579,418,934,376,632 & & & -21,4023,244,873,618,345,872,240 &eta^4 &\
                &, +11,818,373,349,781,028,079 &eta^3 & & +34,7370,177,721,463,765,064,153 &eta &
                endarray
                ]
                and
                [B=(417,420z^2-4,169,121z-15,571,312)(1,546z+3,537)(3,092z+17,001)]
                enddocument


                I'm sure there are also some custom packages that can do this for you but this is just using the packages you provided:



                enter image description here






                share|improve this answer



























                  2














                  I recommend aligning the variables and adding some form of thousand-separators, both will enhance the readability. What I also recommend (but didn't do here) is sorting by the powers of the first and then the second variable. This is a modification of JuleV's answer.



                  documentclassarticle
                  %usepackageamsmath% Loaded by mathtools
                  usepackagemathtools
                  begindocument
                  Blah blah
                  [f(z)=frac1382112640cdotfracAB]
                  where
                  [
                  arraycolsep=0.5pt
                  beginarrayrrllrll
                  A=&, -306,772,802,511,648,469,920 &eta^4 &z^4 & +762,453,974,480,763,801,600 &eta^5 &z^4\
                  &, -1,678,626,210,368,271,790,080 &eta^5 &z^3 & -2,8510,918,043,555,533,736,160 &eta^4 &z^3\
                  &, +11,443,138,641,451,067,779,872 &eta^3 &z^3 & -5,2164,076,923,190,540,413,504 &eta^2 &z^2\
                  &, -78,145,258,181,161,076,156,160 &eta^5 &z^2 & -21,1306,163,712,129,371,808,450 &eta^4 &z^2\
                  &, +228,927,087,397,104,405,937,944 &eta^3 &z^2 & +99,9881,065,017,543,109,136,462 &eta^3 &z\
                  &, -317,254,092,617,698,017,425,280 &eta^5 &z & -44,3761,561,344,388,063,474,665 &eta^4 &z\
                  &, +82,327,155,732,241,730,770,824 &eta &z & -51,4623,285,385,260,545,505,123 &eta^2 &z\
                  &,-1,010,535,343,560,043,404,912,120 &eta^2 & & -35,7788,302,700,438,191,196,160 &eta^5 &\
                  &, -43,808,044,579,418,934,376,632 & & & -21,4023,244,873,618,345,872,240 &eta^4 &\
                  &, +11,818,373,349,781,028,079 &eta^3 & & +34,7370,177,721,463,765,064,153 &eta &
                  endarray
                  ]
                  and
                  [B=(417,420z^2-4,169,121z-15,571,312)(1,546z+3,537)(3,092z+17,001)]
                  enddocument


                  I'm sure there are also some custom packages that can do this for you but this is just using the packages you provided:



                  enter image description here






                  share|improve this answer

























                    2












                    2








                    2







                    I recommend aligning the variables and adding some form of thousand-separators, both will enhance the readability. What I also recommend (but didn't do here) is sorting by the powers of the first and then the second variable. This is a modification of JuleV's answer.



                    documentclassarticle
                    %usepackageamsmath% Loaded by mathtools
                    usepackagemathtools
                    begindocument
                    Blah blah
                    [f(z)=frac1382112640cdotfracAB]
                    where
                    [
                    arraycolsep=0.5pt
                    beginarrayrrllrll
                    A=&, -306,772,802,511,648,469,920 &eta^4 &z^4 & +762,453,974,480,763,801,600 &eta^5 &z^4\
                    &, -1,678,626,210,368,271,790,080 &eta^5 &z^3 & -2,8510,918,043,555,533,736,160 &eta^4 &z^3\
                    &, +11,443,138,641,451,067,779,872 &eta^3 &z^3 & -5,2164,076,923,190,540,413,504 &eta^2 &z^2\
                    &, -78,145,258,181,161,076,156,160 &eta^5 &z^2 & -21,1306,163,712,129,371,808,450 &eta^4 &z^2\
                    &, +228,927,087,397,104,405,937,944 &eta^3 &z^2 & +99,9881,065,017,543,109,136,462 &eta^3 &z\
                    &, -317,254,092,617,698,017,425,280 &eta^5 &z & -44,3761,561,344,388,063,474,665 &eta^4 &z\
                    &, +82,327,155,732,241,730,770,824 &eta &z & -51,4623,285,385,260,545,505,123 &eta^2 &z\
                    &,-1,010,535,343,560,043,404,912,120 &eta^2 & & -35,7788,302,700,438,191,196,160 &eta^5 &\
                    &, -43,808,044,579,418,934,376,632 & & & -21,4023,244,873,618,345,872,240 &eta^4 &\
                    &, +11,818,373,349,781,028,079 &eta^3 & & +34,7370,177,721,463,765,064,153 &eta &
                    endarray
                    ]
                    and
                    [B=(417,420z^2-4,169,121z-15,571,312)(1,546z+3,537)(3,092z+17,001)]
                    enddocument


                    I'm sure there are also some custom packages that can do this for you but this is just using the packages you provided:



                    enter image description here






                    share|improve this answer













                    I recommend aligning the variables and adding some form of thousand-separators, both will enhance the readability. What I also recommend (but didn't do here) is sorting by the powers of the first and then the second variable. This is a modification of JuleV's answer.



                    documentclassarticle
                    %usepackageamsmath% Loaded by mathtools
                    usepackagemathtools
                    begindocument
                    Blah blah
                    [f(z)=frac1382112640cdotfracAB]
                    where
                    [
                    arraycolsep=0.5pt
                    beginarrayrrllrll
                    A=&, -306,772,802,511,648,469,920 &eta^4 &z^4 & +762,453,974,480,763,801,600 &eta^5 &z^4\
                    &, -1,678,626,210,368,271,790,080 &eta^5 &z^3 & -2,8510,918,043,555,533,736,160 &eta^4 &z^3\
                    &, +11,443,138,641,451,067,779,872 &eta^3 &z^3 & -5,2164,076,923,190,540,413,504 &eta^2 &z^2\
                    &, -78,145,258,181,161,076,156,160 &eta^5 &z^2 & -21,1306,163,712,129,371,808,450 &eta^4 &z^2\
                    &, +228,927,087,397,104,405,937,944 &eta^3 &z^2 & +99,9881,065,017,543,109,136,462 &eta^3 &z\
                    &, -317,254,092,617,698,017,425,280 &eta^5 &z & -44,3761,561,344,388,063,474,665 &eta^4 &z\
                    &, +82,327,155,732,241,730,770,824 &eta &z & -51,4623,285,385,260,545,505,123 &eta^2 &z\
                    &,-1,010,535,343,560,043,404,912,120 &eta^2 & & -35,7788,302,700,438,191,196,160 &eta^5 &\
                    &, -43,808,044,579,418,934,376,632 & & & -21,4023,244,873,618,345,872,240 &eta^4 &\
                    &, +11,818,373,349,781,028,079 &eta^3 & & +34,7370,177,721,463,765,064,153 &eta &
                    endarray
                    ]
                    and
                    [B=(417,420z^2-4,169,121z-15,571,312)(1,546z+3,537)(3,092z+17,001)]
                    enddocument


                    I'm sure there are also some custom packages that can do this for you but this is just using the packages you provided:



                    enter image description here







                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Apr 5 at 10:33









                    flawrflawr

                    527413




                    527413





















                        0














                        I would usually use the package breqn. That automatically line-breaks equations, and has a lot of very nice features, but uses low-level having into the maths primitives, which means it tends to make a mess of other packages what do the same thing (for example, you can't use both breqn and sansmath in the same document)



                        begindmath*
                        f(z)=frac1382112640times-306772802511648469920eta^4z^4+left(762453974480763801600eta^5z^4-1678626210368271790080eta^5z^3-28510918043555533736160eta^4z^3+11443138641451067779872eta^3z^3-52164076923190540413504eta^2z^2-78145258181161076156160eta^5z^2-211306163712129371808450eta^4z^2+228927087397104405937944eta^3z^2+999881065017543109136462eta^3z-317254092617698017425280eta^5z-443761561344388063474665eta^4z+82327155732241730770824eta z-514623285385260545505123eta^2z-1010535343560043404912120eta^2-357788302700438191196160eta^5-43808044579418934376632-214023244873618345872240eta^4+11818373349781028079eta^3+347370177721463765064153etaright)timesleft(left(417420z^2-4169121z-15571312right)left(1546z+3537right)left(3092z+17001right)right)^-1
                        enddmath*


                        which produces this huge equation



                        IMO the right-alignment is ugly but apparently that's the AMS standard - without the brackets it left aligns all those lines like the alginat version.






                        share|improve this answer



























                          0














                          I would usually use the package breqn. That automatically line-breaks equations, and has a lot of very nice features, but uses low-level having into the maths primitives, which means it tends to make a mess of other packages what do the same thing (for example, you can't use both breqn and sansmath in the same document)



                          begindmath*
                          f(z)=frac1382112640times-306772802511648469920eta^4z^4+left(762453974480763801600eta^5z^4-1678626210368271790080eta^5z^3-28510918043555533736160eta^4z^3+11443138641451067779872eta^3z^3-52164076923190540413504eta^2z^2-78145258181161076156160eta^5z^2-211306163712129371808450eta^4z^2+228927087397104405937944eta^3z^2+999881065017543109136462eta^3z-317254092617698017425280eta^5z-443761561344388063474665eta^4z+82327155732241730770824eta z-514623285385260545505123eta^2z-1010535343560043404912120eta^2-357788302700438191196160eta^5-43808044579418934376632-214023244873618345872240eta^4+11818373349781028079eta^3+347370177721463765064153etaright)timesleft(left(417420z^2-4169121z-15571312right)left(1546z+3537right)left(3092z+17001right)right)^-1
                          enddmath*


                          which produces this huge equation



                          IMO the right-alignment is ugly but apparently that's the AMS standard - without the brackets it left aligns all those lines like the alginat version.






                          share|improve this answer

























                            0












                            0








                            0







                            I would usually use the package breqn. That automatically line-breaks equations, and has a lot of very nice features, but uses low-level having into the maths primitives, which means it tends to make a mess of other packages what do the same thing (for example, you can't use both breqn and sansmath in the same document)



                            begindmath*
                            f(z)=frac1382112640times-306772802511648469920eta^4z^4+left(762453974480763801600eta^5z^4-1678626210368271790080eta^5z^3-28510918043555533736160eta^4z^3+11443138641451067779872eta^3z^3-52164076923190540413504eta^2z^2-78145258181161076156160eta^5z^2-211306163712129371808450eta^4z^2+228927087397104405937944eta^3z^2+999881065017543109136462eta^3z-317254092617698017425280eta^5z-443761561344388063474665eta^4z+82327155732241730770824eta z-514623285385260545505123eta^2z-1010535343560043404912120eta^2-357788302700438191196160eta^5-43808044579418934376632-214023244873618345872240eta^4+11818373349781028079eta^3+347370177721463765064153etaright)timesleft(left(417420z^2-4169121z-15571312right)left(1546z+3537right)left(3092z+17001right)right)^-1
                            enddmath*


                            which produces this huge equation



                            IMO the right-alignment is ugly but apparently that's the AMS standard - without the brackets it left aligns all those lines like the alginat version.






                            share|improve this answer













                            I would usually use the package breqn. That automatically line-breaks equations, and has a lot of very nice features, but uses low-level having into the maths primitives, which means it tends to make a mess of other packages what do the same thing (for example, you can't use both breqn and sansmath in the same document)



                            begindmath*
                            f(z)=frac1382112640times-306772802511648469920eta^4z^4+left(762453974480763801600eta^5z^4-1678626210368271790080eta^5z^3-28510918043555533736160eta^4z^3+11443138641451067779872eta^3z^3-52164076923190540413504eta^2z^2-78145258181161076156160eta^5z^2-211306163712129371808450eta^4z^2+228927087397104405937944eta^3z^2+999881065017543109136462eta^3z-317254092617698017425280eta^5z-443761561344388063474665eta^4z+82327155732241730770824eta z-514623285385260545505123eta^2z-1010535343560043404912120eta^2-357788302700438191196160eta^5-43808044579418934376632-214023244873618345872240eta^4+11818373349781028079eta^3+347370177721463765064153etaright)timesleft(left(417420z^2-4169121z-15571312right)left(1546z+3537right)left(3092z+17001right)right)^-1
                            enddmath*


                            which produces this huge equation



                            IMO the right-alignment is ugly but apparently that's the AMS standard - without the brackets it left aligns all those lines like the alginat version.







                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered Apr 5 at 13:48









                            PhilipPhilip

                            235




                            235





















                                0














                                Following the original disposition of the function, but using alignat, parenthesis, and fractions to emphasize its different terms.



                                documentclassarticle

                                usepackagemathtools

                                begindocument

                                beginalignat*2
                                & f(z) && = frac1382112640 times left( vphantomfrac1382112640 -306772802511648469920 eta^4 z^4 + 762453974480763801600 eta^5 z^4 right. \[1.5ex]
                                & && -1678626210368271790080 eta^5 z^3 -28510918043555533736160 eta^4 z^3 \[1.5ex]
                                & && +11443138641451067779872 eta^3 z^3 -52164076923190540413504 eta^2 z^2 \[1.5ex]
                                & && -78145258181161076156160 eta^5 z^2 -211306163712129371808450 eta^4 z^2 \[1.5ex]
                                & && +228927087397104405937944 eta^3 z^2 +999881065017543109136462 eta^3 z \[1.5ex]
                                & && -317254092617698017425280 eta^5 z -443761561344388063474665 eta^4 z \[1.5ex]
                                & && +82327155732241730770824 eta z -514623285385260545505123 eta^2 z \[1.5ex]
                                & && -1010535343560043404912120 eta^2 -357788302700438191196160 eta^5 \[1.5ex]
                                & && -43808044579418934376632 -214023244873618345872240 eta^4 \[1.5ex]
                                & && +11818373349781028079 eta^3 +347370177721463765064153eta left. vphantomfrac1382112640 right) \[1.5ex]
                                & && times frac1(417420z^2-4169121z-15571312)(1546z+3537)(3092z+17001)
                                endalignat*

                                enddocument


                                fig






                                share|improve this answer

























                                • Do you think this fits the page margin?

                                  – JouleV
                                  Apr 5 at 9:14











                                • It fitted for me. An alternative is to add \ to the last line to bring the last multiplication and fraction to an additional line.

                                  – Andre
                                  Apr 5 at 9:22












                                • In the original question, the term 417420z^2-4169121z-15571312 is in denominator, not in the numerator as you place it.

                                  – quark67
                                  2 days ago











                                • OK. I will revise this.

                                  – Andre
                                  yesterday











                                • Revised the members of the last fraction. Also added a line for the last term (which also ensures that the display will fit the margins).

                                  – Andre
                                  yesterday
















                                0














                                Following the original disposition of the function, but using alignat, parenthesis, and fractions to emphasize its different terms.



                                documentclassarticle

                                usepackagemathtools

                                begindocument

                                beginalignat*2
                                & f(z) && = frac1382112640 times left( vphantomfrac1382112640 -306772802511648469920 eta^4 z^4 + 762453974480763801600 eta^5 z^4 right. \[1.5ex]
                                & && -1678626210368271790080 eta^5 z^3 -28510918043555533736160 eta^4 z^3 \[1.5ex]
                                & && +11443138641451067779872 eta^3 z^3 -52164076923190540413504 eta^2 z^2 \[1.5ex]
                                & && -78145258181161076156160 eta^5 z^2 -211306163712129371808450 eta^4 z^2 \[1.5ex]
                                & && +228927087397104405937944 eta^3 z^2 +999881065017543109136462 eta^3 z \[1.5ex]
                                & && -317254092617698017425280 eta^5 z -443761561344388063474665 eta^4 z \[1.5ex]
                                & && +82327155732241730770824 eta z -514623285385260545505123 eta^2 z \[1.5ex]
                                & && -1010535343560043404912120 eta^2 -357788302700438191196160 eta^5 \[1.5ex]
                                & && -43808044579418934376632 -214023244873618345872240 eta^4 \[1.5ex]
                                & && +11818373349781028079 eta^3 +347370177721463765064153eta left. vphantomfrac1382112640 right) \[1.5ex]
                                & && times frac1(417420z^2-4169121z-15571312)(1546z+3537)(3092z+17001)
                                endalignat*

                                enddocument


                                fig






                                share|improve this answer

























                                • Do you think this fits the page margin?

                                  – JouleV
                                  Apr 5 at 9:14











                                • It fitted for me. An alternative is to add \ to the last line to bring the last multiplication and fraction to an additional line.

                                  – Andre
                                  Apr 5 at 9:22












                                • In the original question, the term 417420z^2-4169121z-15571312 is in denominator, not in the numerator as you place it.

                                  – quark67
                                  2 days ago











                                • OK. I will revise this.

                                  – Andre
                                  yesterday











                                • Revised the members of the last fraction. Also added a line for the last term (which also ensures that the display will fit the margins).

                                  – Andre
                                  yesterday














                                0












                                0








                                0







                                Following the original disposition of the function, but using alignat, parenthesis, and fractions to emphasize its different terms.



                                documentclassarticle

                                usepackagemathtools

                                begindocument

                                beginalignat*2
                                & f(z) && = frac1382112640 times left( vphantomfrac1382112640 -306772802511648469920 eta^4 z^4 + 762453974480763801600 eta^5 z^4 right. \[1.5ex]
                                & && -1678626210368271790080 eta^5 z^3 -28510918043555533736160 eta^4 z^3 \[1.5ex]
                                & && +11443138641451067779872 eta^3 z^3 -52164076923190540413504 eta^2 z^2 \[1.5ex]
                                & && -78145258181161076156160 eta^5 z^2 -211306163712129371808450 eta^4 z^2 \[1.5ex]
                                & && +228927087397104405937944 eta^3 z^2 +999881065017543109136462 eta^3 z \[1.5ex]
                                & && -317254092617698017425280 eta^5 z -443761561344388063474665 eta^4 z \[1.5ex]
                                & && +82327155732241730770824 eta z -514623285385260545505123 eta^2 z \[1.5ex]
                                & && -1010535343560043404912120 eta^2 -357788302700438191196160 eta^5 \[1.5ex]
                                & && -43808044579418934376632 -214023244873618345872240 eta^4 \[1.5ex]
                                & && +11818373349781028079 eta^3 +347370177721463765064153eta left. vphantomfrac1382112640 right) \[1.5ex]
                                & && times frac1(417420z^2-4169121z-15571312)(1546z+3537)(3092z+17001)
                                endalignat*

                                enddocument


                                fig






                                share|improve this answer















                                Following the original disposition of the function, but using alignat, parenthesis, and fractions to emphasize its different terms.



                                documentclassarticle

                                usepackagemathtools

                                begindocument

                                beginalignat*2
                                & f(z) && = frac1382112640 times left( vphantomfrac1382112640 -306772802511648469920 eta^4 z^4 + 762453974480763801600 eta^5 z^4 right. \[1.5ex]
                                & && -1678626210368271790080 eta^5 z^3 -28510918043555533736160 eta^4 z^3 \[1.5ex]
                                & && +11443138641451067779872 eta^3 z^3 -52164076923190540413504 eta^2 z^2 \[1.5ex]
                                & && -78145258181161076156160 eta^5 z^2 -211306163712129371808450 eta^4 z^2 \[1.5ex]
                                & && +228927087397104405937944 eta^3 z^2 +999881065017543109136462 eta^3 z \[1.5ex]
                                & && -317254092617698017425280 eta^5 z -443761561344388063474665 eta^4 z \[1.5ex]
                                & && +82327155732241730770824 eta z -514623285385260545505123 eta^2 z \[1.5ex]
                                & && -1010535343560043404912120 eta^2 -357788302700438191196160 eta^5 \[1.5ex]
                                & && -43808044579418934376632 -214023244873618345872240 eta^4 \[1.5ex]
                                & && +11818373349781028079 eta^3 +347370177721463765064153eta left. vphantomfrac1382112640 right) \[1.5ex]
                                & && times frac1(417420z^2-4169121z-15571312)(1546z+3537)(3092z+17001)
                                endalignat*

                                enddocument


                                fig







                                share|improve this answer














                                share|improve this answer



                                share|improve this answer








                                edited yesterday

























                                answered Apr 5 at 9:11









                                AndreAndre

                                1768




                                1768












                                • Do you think this fits the page margin?

                                  – JouleV
                                  Apr 5 at 9:14











                                • It fitted for me. An alternative is to add \ to the last line to bring the last multiplication and fraction to an additional line.

                                  – Andre
                                  Apr 5 at 9:22












                                • In the original question, the term 417420z^2-4169121z-15571312 is in denominator, not in the numerator as you place it.

                                  – quark67
                                  2 days ago











                                • OK. I will revise this.

                                  – Andre
                                  yesterday











                                • Revised the members of the last fraction. Also added a line for the last term (which also ensures that the display will fit the margins).

                                  – Andre
                                  yesterday


















                                • Do you think this fits the page margin?

                                  – JouleV
                                  Apr 5 at 9:14











                                • It fitted for me. An alternative is to add \ to the last line to bring the last multiplication and fraction to an additional line.

                                  – Andre
                                  Apr 5 at 9:22












                                • In the original question, the term 417420z^2-4169121z-15571312 is in denominator, not in the numerator as you place it.

                                  – quark67
                                  2 days ago











                                • OK. I will revise this.

                                  – Andre
                                  yesterday











                                • Revised the members of the last fraction. Also added a line for the last term (which also ensures that the display will fit the margins).

                                  – Andre
                                  yesterday

















                                Do you think this fits the page margin?

                                – JouleV
                                Apr 5 at 9:14





                                Do you think this fits the page margin?

                                – JouleV
                                Apr 5 at 9:14













                                It fitted for me. An alternative is to add \ to the last line to bring the last multiplication and fraction to an additional line.

                                – Andre
                                Apr 5 at 9:22






                                It fitted for me. An alternative is to add \ to the last line to bring the last multiplication and fraction to an additional line.

                                – Andre
                                Apr 5 at 9:22














                                In the original question, the term 417420z^2-4169121z-15571312 is in denominator, not in the numerator as you place it.

                                – quark67
                                2 days ago





                                In the original question, the term 417420z^2-4169121z-15571312 is in denominator, not in the numerator as you place it.

                                – quark67
                                2 days ago













                                OK. I will revise this.

                                – Andre
                                yesterday





                                OK. I will revise this.

                                – Andre
                                yesterday













                                Revised the members of the last fraction. Also added a line for the last term (which also ensures that the display will fit the margins).

                                – Andre
                                yesterday






                                Revised the members of the last fraction. Also added a line for the last term (which also ensures that the display will fit the margins).

                                – Andre
                                yesterday


















                                draft saved

                                draft discarded
















































                                Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


                                • Please be sure to answer the question. Provide details and share your research!

                                But avoid


                                • Asking for help, clarification, or responding to other answers.

                                • Making statements based on opinion; back them up with references or personal experience.

                                To learn more, see our tips on writing great answers.




                                draft saved


                                draft discarded














                                StackExchange.ready(
                                function ()
                                StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f483300%2fhow-to-format-a-long-polynomial%23new-answer', 'question_page');

                                );

                                Post as a guest















                                Required, but never shown





















































                                Required, but never shown














                                Required, but never shown












                                Required, but never shown







                                Required, but never shown

































                                Required, but never shown














                                Required, but never shown












                                Required, but never shown







                                Required, but never shown







                                Popular posts from this blog

                                Club Baloncesto Breogán Índice Historia | Pavillón | Nome | O Breogán na cultura popular | Xogadores | Adestradores | Presidentes | Palmarés | Historial | Líderes | Notas | Véxase tamén | Menú de navegacióncbbreogan.galCadroGuía oficial da ACB 2009-10, páxina 201Guía oficial ACB 1992, páxina 183. Editorial DB.É de 6.500 espectadores sentados axeitándose á última normativa"Estudiantes Junior, entre as mellores canteiras"o orixinalHemeroteca El Mundo Deportivo, 16 setembro de 1970, páxina 12Historia do BreogánAlfredo Pérez, o último canoneiroHistoria C.B. BreogánHemeroteca de El Mundo DeportivoJimmy Wright, norteamericano do Breogán deixará Lugo por ameazas de morteResultados de Breogán en 1986-87Resultados de Breogán en 1990-91Ficha de Velimir Perasović en acb.comResultados de Breogán en 1994-95Breogán arrasa al Barça. "El Mundo Deportivo", 27 de setembro de 1999, páxina 58CB Breogán - FC BarcelonaA FEB invita a participar nunha nova Liga EuropeaCharlie Bell na prensa estatalMáximos anotadores 2005Tempada 2005-06 : Tódolos Xogadores da Xornada""Non quero pensar nunha man negra, mais pregúntome que está a pasar""o orixinalRaúl López, orgulloso dos xogadores, presume da boa saúde económica do BreogánJulio González confirma que cesa como presidente del BreogánHomenaxe a Lisardo GómezA tempada do rexurdimento celesteEntrevista a Lisardo GómezEl COB dinamita el Pazo para forzar el quinto (69-73)Cafés Candelas, patrocinador del CB Breogán"Suso Lázare, novo presidente do Breogán"o orixinalCafés Candelas Breogán firma el mayor triunfo de la historiaEl Breogán realizará 17 homenajes por su cincuenta aniversario"O Breogán honra ao seu fundador e primeiro presidente"o orixinalMiguel Giao recibiu a homenaxe do PazoHomenaxe aos primeiros gladiadores celestesO home que nos amosa como ver o Breo co corazónTita Franco será homenaxeada polos #50anosdeBreoJulio Vila recibirá unha homenaxe in memoriam polos #50anosdeBreo"O Breogán homenaxeará aos seus aboados máis veteráns"Pechada ovación a «Capi» Sanmartín e Ricardo «Corazón de González»Homenaxe por décadas de informaciónPaco García volve ao Pazo con motivo do 50 aniversario"Resultados y clasificaciones""O Cafés Candelas Breogán, campión da Copa Princesa""O Cafés Candelas Breogán, equipo ACB"C.B. Breogán"Proxecto social"o orixinal"Centros asociados"o orixinalFicha en imdb.comMario Camus trata la recuperación del amor en 'La vieja música', su última película"Páxina web oficial""Club Baloncesto Breogán""C. B. Breogán S.A.D."eehttp://www.fegaba.com

                                Vilaño, A Laracha Índice Patrimonio | Lugares e parroquias | Véxase tamén | Menú de navegación43°14′52″N 8°36′03″O / 43.24775, -8.60070

                                Cegueira Índice Epidemioloxía | Deficiencia visual | Tipos de cegueira | Principais causas de cegueira | Tratamento | Técnicas de adaptación e axudas | Vida dos cegos | Primeiros auxilios | Crenzas respecto das persoas cegas | Crenzas das persoas cegas | O neno deficiente visual | Aspectos psicolóxicos da cegueira | Notas | Véxase tamén | Menú de navegación54.054.154.436928256blindnessDicionario da Real Academia GalegaPortal das Palabras"International Standards: Visual Standards — Aspects and Ranges of Vision Loss with Emphasis on Population Surveys.""Visual impairment and blindness""Presentan un plan para previr a cegueira"o orixinalACCDV Associació Catalana de Cecs i Disminuïts Visuals - PMFTrachoma"Effect of gene therapy on visual function in Leber's congenital amaurosis"1844137110.1056/NEJMoa0802268Cans guía - os mellores amigos dos cegosArquivadoEscola de cans guía para cegos en Mortágua, PortugalArquivado"Tecnología para ciegos y deficientes visuales. Recopilación de recursos gratuitos en la Red""Colorino""‘COL.diesis’, escuchar los sonidos del color""COL.diesis: Transforming Colour into Melody and Implementing the Result in a Colour Sensor Device"o orixinal"Sistema de desarrollo de sinestesia color-sonido para invidentes utilizando un protocolo de audio""Enseñanza táctil - geometría y color. Juegos didácticos para niños ciegos y videntes""Sistema Constanz"L'ocupació laboral dels cecs a l'Estat espanyol està pràcticament equiparada a la de les persones amb visió, entrevista amb Pedro ZuritaONCE (Organización Nacional de Cegos de España)Prevención da cegueiraDescrición de deficiencias visuais (Disc@pnet)Braillín, un boneco atractivo para calquera neno, con ou sen discapacidade, que permite familiarizarse co sistema de escritura e lectura brailleAxudas Técnicas36838ID00897494007150-90057129528256DOID:1432HP:0000618D001766C10.597.751.941.162C97109C0155020