multiline equation inside a matrix that is a part of multiline equationMultiline equation and textMultiline equation with LHS alone on first line?Multiline equation without numbermultiline equation inside newglossaryentryAligning equation including multiline expressionsAligning Multiline Matrix EquationsMultiline equation inside a split environmentWriting matrix inside an equationSplitting a long text in an equationProblem splitting/fitting equation

How can I prevent interns from being expendable?

Asking bank to reduce APR instead of increasing credit limit

Possible nonclassical ion from a bicyclic system

How to detach yourself from a character you're going to kill?

If Sweden was to magically float away, at what altitude would it be visible from the southern hemisphere?

How should I push back against my job assigning "homework"?

Is it possible to kill all life on Earth?

Creating Fictional Slavic Place Names

Why would Lupin kill Pettigrew?

Modern approach to radio buttons

Points within polygons in different projections

What is the difference between nullifying your vote and not going to vote at all?

What was this black-and-white film set in the Arctic or Antarctic where the monster/alien gets fried in the end?

Term for checking piece whose opponent daren't capture it

find the Integer value after a string from a file

What is/are this/these giant NASA box(es)?

Can a non-EU citizen travel within the Schengen area without identity documents?

Could I be denied entry into Ireland due to medical and police situations during a previous UK visit?

The qvolume of an integer

What does it mean when you think without speaking?

What are the slash markings on Gatwick's 08R/26L?

What is game ban VS VAC ban in steam?

Mother abusing my finances

What does the behaviour of water on the skin of an aircraft in flight tell us?



multiline equation inside a matrix that is a part of multiline equation


Multiline equation and textMultiline equation with LHS alone on first line?Multiline equation without numbermultiline equation inside newglossaryentryAligning equation including multiline expressionsAligning Multiline Matrix EquationsMultiline equation inside a split environmentWriting matrix inside an equationSplitting a long text in an equationProblem splitting/fitting equation













3















I have an equation split to multiple lines.
But the last line of the multiline equation contains 2x1 vector with long equations that go out of margin.
How do I further split the equations in the vector so that they do go over margin and look visually pleasing?



beginequation labeleq:7
beginsplit
mathbfy(1)&=tanh(mathbfW^rocdotmathbfh(1)+mathbfW^iocdotmathbfx(1)) \
&=beginbmatrix tanhBig(w^ro_1,1cdotalphacdot tanhbig(w^ir_1,1cdot x_1(1)+w^ir_2,1cdot x_2(1)big) + w^ro_2,1cdot alpha cdot tanhbig(w^ir_1,2cdot x_1(1)+w^ir_2,2 cdot x_2(1)big) + w^io_1,1 cdot x_1(1)+w^io_2,1 cdot x_2(1)Big) \ tanhBig(w^ro_1,2cdot alpha cdot tanhbig(w^ir_1,1cdot x_1(1)+w^ir_2,1cdot x_2(1)big) + w^ro_2,2cdot alpha cdot tanhbig(w^ir_1,2cdot x_1(1)+w^ir_2,2 cdot x_2(1)big) + w^io_1,2cdot x_1(1)+w^io_2,2cdot x_2(1)Big) endbmatrix.
endsplit
endequation


Current output looks like below where good portion of equations go over margin:
enter image description here



Any help will be greatly appreciated










share|improve this question






















  • Any news? Is any of received answers the most acceptable to you? If it, please click on check mark at top left side of selected answer. As I have seen, so far you not accept any answer on your question ;-(.

    – Zarko
    May 19 at 23:07
















3















I have an equation split to multiple lines.
But the last line of the multiline equation contains 2x1 vector with long equations that go out of margin.
How do I further split the equations in the vector so that they do go over margin and look visually pleasing?



beginequation labeleq:7
beginsplit
mathbfy(1)&=tanh(mathbfW^rocdotmathbfh(1)+mathbfW^iocdotmathbfx(1)) \
&=beginbmatrix tanhBig(w^ro_1,1cdotalphacdot tanhbig(w^ir_1,1cdot x_1(1)+w^ir_2,1cdot x_2(1)big) + w^ro_2,1cdot alpha cdot tanhbig(w^ir_1,2cdot x_1(1)+w^ir_2,2 cdot x_2(1)big) + w^io_1,1 cdot x_1(1)+w^io_2,1 cdot x_2(1)Big) \ tanhBig(w^ro_1,2cdot alpha cdot tanhbig(w^ir_1,1cdot x_1(1)+w^ir_2,1cdot x_2(1)big) + w^ro_2,2cdot alpha cdot tanhbig(w^ir_1,2cdot x_1(1)+w^ir_2,2 cdot x_2(1)big) + w^io_1,2cdot x_1(1)+w^io_2,2cdot x_2(1)Big) endbmatrix.
endsplit
endequation


Current output looks like below where good portion of equations go over margin:
enter image description here



Any help will be greatly appreciated










share|improve this question






















  • Any news? Is any of received answers the most acceptable to you? If it, please click on check mark at top left side of selected answer. As I have seen, so far you not accept any answer on your question ;-(.

    – Zarko
    May 19 at 23:07














3












3








3








I have an equation split to multiple lines.
But the last line of the multiline equation contains 2x1 vector with long equations that go out of margin.
How do I further split the equations in the vector so that they do go over margin and look visually pleasing?



beginequation labeleq:7
beginsplit
mathbfy(1)&=tanh(mathbfW^rocdotmathbfh(1)+mathbfW^iocdotmathbfx(1)) \
&=beginbmatrix tanhBig(w^ro_1,1cdotalphacdot tanhbig(w^ir_1,1cdot x_1(1)+w^ir_2,1cdot x_2(1)big) + w^ro_2,1cdot alpha cdot tanhbig(w^ir_1,2cdot x_1(1)+w^ir_2,2 cdot x_2(1)big) + w^io_1,1 cdot x_1(1)+w^io_2,1 cdot x_2(1)Big) \ tanhBig(w^ro_1,2cdot alpha cdot tanhbig(w^ir_1,1cdot x_1(1)+w^ir_2,1cdot x_2(1)big) + w^ro_2,2cdot alpha cdot tanhbig(w^ir_1,2cdot x_1(1)+w^ir_2,2 cdot x_2(1)big) + w^io_1,2cdot x_1(1)+w^io_2,2cdot x_2(1)Big) endbmatrix.
endsplit
endequation


Current output looks like below where good portion of equations go over margin:
enter image description here



Any help will be greatly appreciated










share|improve this question














I have an equation split to multiple lines.
But the last line of the multiline equation contains 2x1 vector with long equations that go out of margin.
How do I further split the equations in the vector so that they do go over margin and look visually pleasing?



beginequation labeleq:7
beginsplit
mathbfy(1)&=tanh(mathbfW^rocdotmathbfh(1)+mathbfW^iocdotmathbfx(1)) \
&=beginbmatrix tanhBig(w^ro_1,1cdotalphacdot tanhbig(w^ir_1,1cdot x_1(1)+w^ir_2,1cdot x_2(1)big) + w^ro_2,1cdot alpha cdot tanhbig(w^ir_1,2cdot x_1(1)+w^ir_2,2 cdot x_2(1)big) + w^io_1,1 cdot x_1(1)+w^io_2,1 cdot x_2(1)Big) \ tanhBig(w^ro_1,2cdot alpha cdot tanhbig(w^ir_1,1cdot x_1(1)+w^ir_2,1cdot x_2(1)big) + w^ro_2,2cdot alpha cdot tanhbig(w^ir_1,2cdot x_1(1)+w^ir_2,2 cdot x_2(1)big) + w^io_1,2cdot x_1(1)+w^io_2,2cdot x_2(1)Big) endbmatrix.
endsplit
endequation


Current output looks like below where good portion of equations go over margin:
enter image description here



Any help will be greatly appreciated







equations split multline






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked May 15 at 19:34









user32147user32147

1462




1462












  • Any news? Is any of received answers the most acceptable to you? If it, please click on check mark at top left side of selected answer. As I have seen, so far you not accept any answer on your question ;-(.

    – Zarko
    May 19 at 23:07


















  • Any news? Is any of received answers the most acceptable to you? If it, please click on check mark at top left side of selected answer. As I have seen, so far you not accept any answer on your question ;-(.

    – Zarko
    May 19 at 23:07

















Any news? Is any of received answers the most acceptable to you? If it, please click on check mark at top left side of selected answer. As I have seen, so far you not accept any answer on your question ;-(.

– Zarko
May 19 at 23:07






Any news? Is any of received answers the most acceptable to you? If it, please click on check mark at top left side of selected answer. As I have seen, so far you not accept any answer on your question ;-(.

– Zarko
May 19 at 23:07











3 Answers
3






active

oldest

votes


















7














You can break lines within a matrix by useing of multlined from the mathtools package:



documentclassarticle
usepackagegeometry
usepackagemathtools

begindocument
beginequation labeleq:7
beginsplit
mathbfy(1)&=tanh(mathbfW^rocdotmathbfh(1)+mathbfW^iocdotmathbfx(1)) \
& = beginbmatrix
beginmultlined
tanhBigl(w^ro_1,1cdotalphacdot tanhbigl(w^ir_1,1cdot x_1(1) + w^ir_2,1cdot x_2(1)bigr) \[-2ex]
+ w^ro_2,1cdot alpha cdot tanhbigl(w^ir_1,2cdot x_1(1) + w^ir_2,2 cdot x_2(1)bigr) + w^io_1,1 cdot x_1(1)+w^io_2,1 cdot x_2(1)Bigr)
endmultlined \[4ex]
%
beginmultlined
tanhBigl(w^ro_1,2cdot alpha cdot tanhbigl(w^ir_1,1cdot x_1(1) + w^ir_2,1cdot x_2(1)bigr) \[-2ex]
+ w^ro_2,2cdot alpha cdot tanhbigl(w^ir_1,2cdot x_1(1)+w^ir_2,2 cdot x_2(1)bigr) + w^io_1,2cdot x_1(1)+w^io_2,2cdot x_2(1)Bigr)
endmultlined
endbmatrix.
endsplit
endequation
enddocument


note: I try to fix of use Big( and big(. More correct is Bigl( and bigl( and Bigr) and bigr). most of the math operators are defined, so instead ˙tanh you should use tanh which write it correct mathrm font. I also reduce width of cdots enclosing them in curly braces. Do you really need them?



enter image description here






share|improve this answer

























  • Thank you for correcting usage of other natations. This is really helpful! I initially didn't have cdots but I feel like including them makes it more readable. Does cdot have smaller width compared to just plain cdot ?

    – user32147
    May 16 at 1:10



















5














Here there is my proposal:



enter image description here



documentclass[a4paper,12pt]article
usepackagemathtools,amssymb
usepackage[left=1in,right=.3in]geometry

begindocument
beginequation labeleq:7
beginaligned
mathbfy(1)&=tanh(mathbfW^mathrmrocdotmathbfh(1)+mathbfW^mathrmiocdotmathbfx(1)) \
&=beginbmatrix tanhBig((w^mathrmmathrmro_1,1cdotalphacdot tanhmu) + w^mathrmro_2,1cdot alpha cdot tanh lambda + w^mathrmio_1,1 cdot x_1(1)+w^mathrmio_2,1 cdot x_2(1)Big) \
tanh Big((w^mathrmro_1,2cdot alpha cdot tanhmu) + w^mathrmro_2,2cdot alpha cdot tanh lambda + w^mathrmio_1,2cdot x_1(1)+w^mathrmio_2,2cdot x_2(1)Big) endbmatrix
endaligned
endequation

where $mu=(w^mathrmir_1,1cdot x_1(1)+w^mathrmir_2,1cdot x_2(1))$ and $lambda=(w^mathrmir_1,2cdot x_1(1)+w^mathrmir_2,2 cdot x_2(1))$
enddocument





share|improve this answer

























  • i see, that now i need new glasses :-). fonts are so tiny ... anyway +1

    – Zarko
    May 15 at 20:30











  • @Zarko I have edited my code. Maybe this one's better.

    – Sebastiano
    May 15 at 22:36











  • this is definitely the best solution; downvote (not me) was probably because it does not answer the OP's question

    – Brandon Kuczenski
    May 15 at 23:06






  • 1





    @Sebastiano, yes, now is better! i can read now without magnifying glass :-) :-) :-)

    – Zarko
    May 15 at 23:42






  • 1





    Thank you! I really appreciate the help.

    – user32147
    May 16 at 1:14


















3














I propose this layout, which doesn't require multiline equations inside matrix. Instead, I suppressed the cdots (unnecessary, from my point of view) and used the mmatrix (medium-size matrix) environment from nccmath, and the fleqn environment (same package). This size remains readable, as it is ~80 % of displaystyle.



documentclassarticle
usepackage[showframe]geometry
usepackagemathtools, nccmath

begindocument
vspace*1cm
beginfleqn

beginequation
beginaligned[b] labeleq:7
&mathbfy(1)=tanh(mathbfW^rocdotmathbfh(1)+mathbfW^iocdotmathbfx(1)) = \
& beginmmatrix beginbmatrix
tanhBigl(w^ro_1,1 alpha tanhbigl(w^ir_1,1 x_1(1) + w^ir_2,1 x_2(1)bigr)
+ w^ro_2,1 alpha tanhbigl(w^ir_1,2 x_1(1) + w^ir_2,2 x_2(1)bigr) + w^io_1,1 x_1(1)+w^io_2,1 x_2(1)Bigr)
\
%
tanhBigl(w^ro_1,2 alpha tanhbigl(w^ir_1,1 x_1(1) + w^ir_2,1 x_2(1)bigr)
+ w^ro_2,2 alpha tanhbigl(w^ir_1,2 x_1(1)+w^ir_2,2 x_2(1)bigr) + w^io_1,2 x_1(1)+w^io_2,2 x_2(1)Bigr)
endbmatrix
endmmatrix
endaligned
endequation
endfleqn

enddocument


enter image description here






share|improve this answer























  • thank you for the suggestion! this is really helpful!

    – user32147
    May 16 at 1:07











  • initially I was able to fit the matrix in one line without cdot but I decided to put cdot as I feel like the equation is easier to parse and read with them.

    – user32147
    May 16 at 1:16











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%2f491032%2fmultiline-equation-inside-a-matrix-that-is-a-part-of-multiline-equation%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























3 Answers
3






active

oldest

votes








3 Answers
3






active

oldest

votes









active

oldest

votes






active

oldest

votes









7














You can break lines within a matrix by useing of multlined from the mathtools package:



documentclassarticle
usepackagegeometry
usepackagemathtools

begindocument
beginequation labeleq:7
beginsplit
mathbfy(1)&=tanh(mathbfW^rocdotmathbfh(1)+mathbfW^iocdotmathbfx(1)) \
& = beginbmatrix
beginmultlined
tanhBigl(w^ro_1,1cdotalphacdot tanhbigl(w^ir_1,1cdot x_1(1) + w^ir_2,1cdot x_2(1)bigr) \[-2ex]
+ w^ro_2,1cdot alpha cdot tanhbigl(w^ir_1,2cdot x_1(1) + w^ir_2,2 cdot x_2(1)bigr) + w^io_1,1 cdot x_1(1)+w^io_2,1 cdot x_2(1)Bigr)
endmultlined \[4ex]
%
beginmultlined
tanhBigl(w^ro_1,2cdot alpha cdot tanhbigl(w^ir_1,1cdot x_1(1) + w^ir_2,1cdot x_2(1)bigr) \[-2ex]
+ w^ro_2,2cdot alpha cdot tanhbigl(w^ir_1,2cdot x_1(1)+w^ir_2,2 cdot x_2(1)bigr) + w^io_1,2cdot x_1(1)+w^io_2,2cdot x_2(1)Bigr)
endmultlined
endbmatrix.
endsplit
endequation
enddocument


note: I try to fix of use Big( and big(. More correct is Bigl( and bigl( and Bigr) and bigr). most of the math operators are defined, so instead ˙tanh you should use tanh which write it correct mathrm font. I also reduce width of cdots enclosing them in curly braces. Do you really need them?



enter image description here






share|improve this answer

























  • Thank you for correcting usage of other natations. This is really helpful! I initially didn't have cdots but I feel like including them makes it more readable. Does cdot have smaller width compared to just plain cdot ?

    – user32147
    May 16 at 1:10
















7














You can break lines within a matrix by useing of multlined from the mathtools package:



documentclassarticle
usepackagegeometry
usepackagemathtools

begindocument
beginequation labeleq:7
beginsplit
mathbfy(1)&=tanh(mathbfW^rocdotmathbfh(1)+mathbfW^iocdotmathbfx(1)) \
& = beginbmatrix
beginmultlined
tanhBigl(w^ro_1,1cdotalphacdot tanhbigl(w^ir_1,1cdot x_1(1) + w^ir_2,1cdot x_2(1)bigr) \[-2ex]
+ w^ro_2,1cdot alpha cdot tanhbigl(w^ir_1,2cdot x_1(1) + w^ir_2,2 cdot x_2(1)bigr) + w^io_1,1 cdot x_1(1)+w^io_2,1 cdot x_2(1)Bigr)
endmultlined \[4ex]
%
beginmultlined
tanhBigl(w^ro_1,2cdot alpha cdot tanhbigl(w^ir_1,1cdot x_1(1) + w^ir_2,1cdot x_2(1)bigr) \[-2ex]
+ w^ro_2,2cdot alpha cdot tanhbigl(w^ir_1,2cdot x_1(1)+w^ir_2,2 cdot x_2(1)bigr) + w^io_1,2cdot x_1(1)+w^io_2,2cdot x_2(1)Bigr)
endmultlined
endbmatrix.
endsplit
endequation
enddocument


note: I try to fix of use Big( and big(. More correct is Bigl( and bigl( and Bigr) and bigr). most of the math operators are defined, so instead ˙tanh you should use tanh which write it correct mathrm font. I also reduce width of cdots enclosing them in curly braces. Do you really need them?



enter image description here






share|improve this answer

























  • Thank you for correcting usage of other natations. This is really helpful! I initially didn't have cdots but I feel like including them makes it more readable. Does cdot have smaller width compared to just plain cdot ?

    – user32147
    May 16 at 1:10














7












7








7







You can break lines within a matrix by useing of multlined from the mathtools package:



documentclassarticle
usepackagegeometry
usepackagemathtools

begindocument
beginequation labeleq:7
beginsplit
mathbfy(1)&=tanh(mathbfW^rocdotmathbfh(1)+mathbfW^iocdotmathbfx(1)) \
& = beginbmatrix
beginmultlined
tanhBigl(w^ro_1,1cdotalphacdot tanhbigl(w^ir_1,1cdot x_1(1) + w^ir_2,1cdot x_2(1)bigr) \[-2ex]
+ w^ro_2,1cdot alpha cdot tanhbigl(w^ir_1,2cdot x_1(1) + w^ir_2,2 cdot x_2(1)bigr) + w^io_1,1 cdot x_1(1)+w^io_2,1 cdot x_2(1)Bigr)
endmultlined \[4ex]
%
beginmultlined
tanhBigl(w^ro_1,2cdot alpha cdot tanhbigl(w^ir_1,1cdot x_1(1) + w^ir_2,1cdot x_2(1)bigr) \[-2ex]
+ w^ro_2,2cdot alpha cdot tanhbigl(w^ir_1,2cdot x_1(1)+w^ir_2,2 cdot x_2(1)bigr) + w^io_1,2cdot x_1(1)+w^io_2,2cdot x_2(1)Bigr)
endmultlined
endbmatrix.
endsplit
endequation
enddocument


note: I try to fix of use Big( and big(. More correct is Bigl( and bigl( and Bigr) and bigr). most of the math operators are defined, so instead ˙tanh you should use tanh which write it correct mathrm font. I also reduce width of cdots enclosing them in curly braces. Do you really need them?



enter image description here






share|improve this answer















You can break lines within a matrix by useing of multlined from the mathtools package:



documentclassarticle
usepackagegeometry
usepackagemathtools

begindocument
beginequation labeleq:7
beginsplit
mathbfy(1)&=tanh(mathbfW^rocdotmathbfh(1)+mathbfW^iocdotmathbfx(1)) \
& = beginbmatrix
beginmultlined
tanhBigl(w^ro_1,1cdotalphacdot tanhbigl(w^ir_1,1cdot x_1(1) + w^ir_2,1cdot x_2(1)bigr) \[-2ex]
+ w^ro_2,1cdot alpha cdot tanhbigl(w^ir_1,2cdot x_1(1) + w^ir_2,2 cdot x_2(1)bigr) + w^io_1,1 cdot x_1(1)+w^io_2,1 cdot x_2(1)Bigr)
endmultlined \[4ex]
%
beginmultlined
tanhBigl(w^ro_1,2cdot alpha cdot tanhbigl(w^ir_1,1cdot x_1(1) + w^ir_2,1cdot x_2(1)bigr) \[-2ex]
+ w^ro_2,2cdot alpha cdot tanhbigl(w^ir_1,2cdot x_1(1)+w^ir_2,2 cdot x_2(1)bigr) + w^io_1,2cdot x_1(1)+w^io_2,2cdot x_2(1)Bigr)
endmultlined
endbmatrix.
endsplit
endequation
enddocument


note: I try to fix of use Big( and big(. More correct is Bigl( and bigl( and Bigr) and bigr). most of the math operators are defined, so instead ˙tanh you should use tanh which write it correct mathrm font. I also reduce width of cdots enclosing them in curly braces. Do you really need them?



enter image description here







share|improve this answer














share|improve this answer



share|improve this answer








edited May 15 at 20:34

























answered May 15 at 20:02









ZarkoZarko

135k872180




135k872180












  • Thank you for correcting usage of other natations. This is really helpful! I initially didn't have cdots but I feel like including them makes it more readable. Does cdot have smaller width compared to just plain cdot ?

    – user32147
    May 16 at 1:10


















  • Thank you for correcting usage of other natations. This is really helpful! I initially didn't have cdots but I feel like including them makes it more readable. Does cdot have smaller width compared to just plain cdot ?

    – user32147
    May 16 at 1:10

















Thank you for correcting usage of other natations. This is really helpful! I initially didn't have cdots but I feel like including them makes it more readable. Does cdot have smaller width compared to just plain cdot ?

– user32147
May 16 at 1:10






Thank you for correcting usage of other natations. This is really helpful! I initially didn't have cdots but I feel like including them makes it more readable. Does cdot have smaller width compared to just plain cdot ?

– user32147
May 16 at 1:10












5














Here there is my proposal:



enter image description here



documentclass[a4paper,12pt]article
usepackagemathtools,amssymb
usepackage[left=1in,right=.3in]geometry

begindocument
beginequation labeleq:7
beginaligned
mathbfy(1)&=tanh(mathbfW^mathrmrocdotmathbfh(1)+mathbfW^mathrmiocdotmathbfx(1)) \
&=beginbmatrix tanhBig((w^mathrmmathrmro_1,1cdotalphacdot tanhmu) + w^mathrmro_2,1cdot alpha cdot tanh lambda + w^mathrmio_1,1 cdot x_1(1)+w^mathrmio_2,1 cdot x_2(1)Big) \
tanh Big((w^mathrmro_1,2cdot alpha cdot tanhmu) + w^mathrmro_2,2cdot alpha cdot tanh lambda + w^mathrmio_1,2cdot x_1(1)+w^mathrmio_2,2cdot x_2(1)Big) endbmatrix
endaligned
endequation

where $mu=(w^mathrmir_1,1cdot x_1(1)+w^mathrmir_2,1cdot x_2(1))$ and $lambda=(w^mathrmir_1,2cdot x_1(1)+w^mathrmir_2,2 cdot x_2(1))$
enddocument





share|improve this answer

























  • i see, that now i need new glasses :-). fonts are so tiny ... anyway +1

    – Zarko
    May 15 at 20:30











  • @Zarko I have edited my code. Maybe this one's better.

    – Sebastiano
    May 15 at 22:36











  • this is definitely the best solution; downvote (not me) was probably because it does not answer the OP's question

    – Brandon Kuczenski
    May 15 at 23:06






  • 1





    @Sebastiano, yes, now is better! i can read now without magnifying glass :-) :-) :-)

    – Zarko
    May 15 at 23:42






  • 1





    Thank you! I really appreciate the help.

    – user32147
    May 16 at 1:14















5














Here there is my proposal:



enter image description here



documentclass[a4paper,12pt]article
usepackagemathtools,amssymb
usepackage[left=1in,right=.3in]geometry

begindocument
beginequation labeleq:7
beginaligned
mathbfy(1)&=tanh(mathbfW^mathrmrocdotmathbfh(1)+mathbfW^mathrmiocdotmathbfx(1)) \
&=beginbmatrix tanhBig((w^mathrmmathrmro_1,1cdotalphacdot tanhmu) + w^mathrmro_2,1cdot alpha cdot tanh lambda + w^mathrmio_1,1 cdot x_1(1)+w^mathrmio_2,1 cdot x_2(1)Big) \
tanh Big((w^mathrmro_1,2cdot alpha cdot tanhmu) + w^mathrmro_2,2cdot alpha cdot tanh lambda + w^mathrmio_1,2cdot x_1(1)+w^mathrmio_2,2cdot x_2(1)Big) endbmatrix
endaligned
endequation

where $mu=(w^mathrmir_1,1cdot x_1(1)+w^mathrmir_2,1cdot x_2(1))$ and $lambda=(w^mathrmir_1,2cdot x_1(1)+w^mathrmir_2,2 cdot x_2(1))$
enddocument





share|improve this answer

























  • i see, that now i need new glasses :-). fonts are so tiny ... anyway +1

    – Zarko
    May 15 at 20:30











  • @Zarko I have edited my code. Maybe this one's better.

    – Sebastiano
    May 15 at 22:36











  • this is definitely the best solution; downvote (not me) was probably because it does not answer the OP's question

    – Brandon Kuczenski
    May 15 at 23:06






  • 1





    @Sebastiano, yes, now is better! i can read now without magnifying glass :-) :-) :-)

    – Zarko
    May 15 at 23:42






  • 1





    Thank you! I really appreciate the help.

    – user32147
    May 16 at 1:14













5












5








5







Here there is my proposal:



enter image description here



documentclass[a4paper,12pt]article
usepackagemathtools,amssymb
usepackage[left=1in,right=.3in]geometry

begindocument
beginequation labeleq:7
beginaligned
mathbfy(1)&=tanh(mathbfW^mathrmrocdotmathbfh(1)+mathbfW^mathrmiocdotmathbfx(1)) \
&=beginbmatrix tanhBig((w^mathrmmathrmro_1,1cdotalphacdot tanhmu) + w^mathrmro_2,1cdot alpha cdot tanh lambda + w^mathrmio_1,1 cdot x_1(1)+w^mathrmio_2,1 cdot x_2(1)Big) \
tanh Big((w^mathrmro_1,2cdot alpha cdot tanhmu) + w^mathrmro_2,2cdot alpha cdot tanh lambda + w^mathrmio_1,2cdot x_1(1)+w^mathrmio_2,2cdot x_2(1)Big) endbmatrix
endaligned
endequation

where $mu=(w^mathrmir_1,1cdot x_1(1)+w^mathrmir_2,1cdot x_2(1))$ and $lambda=(w^mathrmir_1,2cdot x_1(1)+w^mathrmir_2,2 cdot x_2(1))$
enddocument





share|improve this answer















Here there is my proposal:



enter image description here



documentclass[a4paper,12pt]article
usepackagemathtools,amssymb
usepackage[left=1in,right=.3in]geometry

begindocument
beginequation labeleq:7
beginaligned
mathbfy(1)&=tanh(mathbfW^mathrmrocdotmathbfh(1)+mathbfW^mathrmiocdotmathbfx(1)) \
&=beginbmatrix tanhBig((w^mathrmmathrmro_1,1cdotalphacdot tanhmu) + w^mathrmro_2,1cdot alpha cdot tanh lambda + w^mathrmio_1,1 cdot x_1(1)+w^mathrmio_2,1 cdot x_2(1)Big) \
tanh Big((w^mathrmro_1,2cdot alpha cdot tanhmu) + w^mathrmro_2,2cdot alpha cdot tanh lambda + w^mathrmio_1,2cdot x_1(1)+w^mathrmio_2,2cdot x_2(1)Big) endbmatrix
endaligned
endequation

where $mu=(w^mathrmir_1,1cdot x_1(1)+w^mathrmir_2,1cdot x_2(1))$ and $lambda=(w^mathrmir_1,2cdot x_1(1)+w^mathrmir_2,2 cdot x_2(1))$
enddocument






share|improve this answer














share|improve this answer



share|improve this answer








edited May 15 at 22:51

























answered May 15 at 20:15









SebastianoSebastiano

12.6k42570




12.6k42570












  • i see, that now i need new glasses :-). fonts are so tiny ... anyway +1

    – Zarko
    May 15 at 20:30











  • @Zarko I have edited my code. Maybe this one's better.

    – Sebastiano
    May 15 at 22:36











  • this is definitely the best solution; downvote (not me) was probably because it does not answer the OP's question

    – Brandon Kuczenski
    May 15 at 23:06






  • 1





    @Sebastiano, yes, now is better! i can read now without magnifying glass :-) :-) :-)

    – Zarko
    May 15 at 23:42






  • 1





    Thank you! I really appreciate the help.

    – user32147
    May 16 at 1:14

















  • i see, that now i need new glasses :-). fonts are so tiny ... anyway +1

    – Zarko
    May 15 at 20:30











  • @Zarko I have edited my code. Maybe this one's better.

    – Sebastiano
    May 15 at 22:36











  • this is definitely the best solution; downvote (not me) was probably because it does not answer the OP's question

    – Brandon Kuczenski
    May 15 at 23:06






  • 1





    @Sebastiano, yes, now is better! i can read now without magnifying glass :-) :-) :-)

    – Zarko
    May 15 at 23:42






  • 1





    Thank you! I really appreciate the help.

    – user32147
    May 16 at 1:14
















i see, that now i need new glasses :-). fonts are so tiny ... anyway +1

– Zarko
May 15 at 20:30





i see, that now i need new glasses :-). fonts are so tiny ... anyway +1

– Zarko
May 15 at 20:30













@Zarko I have edited my code. Maybe this one's better.

– Sebastiano
May 15 at 22:36





@Zarko I have edited my code. Maybe this one's better.

– Sebastiano
May 15 at 22:36













this is definitely the best solution; downvote (not me) was probably because it does not answer the OP's question

– Brandon Kuczenski
May 15 at 23:06





this is definitely the best solution; downvote (not me) was probably because it does not answer the OP's question

– Brandon Kuczenski
May 15 at 23:06




1




1





@Sebastiano, yes, now is better! i can read now without magnifying glass :-) :-) :-)

– Zarko
May 15 at 23:42





@Sebastiano, yes, now is better! i can read now without magnifying glass :-) :-) :-)

– Zarko
May 15 at 23:42




1




1





Thank you! I really appreciate the help.

– user32147
May 16 at 1:14





Thank you! I really appreciate the help.

– user32147
May 16 at 1:14











3














I propose this layout, which doesn't require multiline equations inside matrix. Instead, I suppressed the cdots (unnecessary, from my point of view) and used the mmatrix (medium-size matrix) environment from nccmath, and the fleqn environment (same package). This size remains readable, as it is ~80 % of displaystyle.



documentclassarticle
usepackage[showframe]geometry
usepackagemathtools, nccmath

begindocument
vspace*1cm
beginfleqn

beginequation
beginaligned[b] labeleq:7
&mathbfy(1)=tanh(mathbfW^rocdotmathbfh(1)+mathbfW^iocdotmathbfx(1)) = \
& beginmmatrix beginbmatrix
tanhBigl(w^ro_1,1 alpha tanhbigl(w^ir_1,1 x_1(1) + w^ir_2,1 x_2(1)bigr)
+ w^ro_2,1 alpha tanhbigl(w^ir_1,2 x_1(1) + w^ir_2,2 x_2(1)bigr) + w^io_1,1 x_1(1)+w^io_2,1 x_2(1)Bigr)
\
%
tanhBigl(w^ro_1,2 alpha tanhbigl(w^ir_1,1 x_1(1) + w^ir_2,1 x_2(1)bigr)
+ w^ro_2,2 alpha tanhbigl(w^ir_1,2 x_1(1)+w^ir_2,2 x_2(1)bigr) + w^io_1,2 x_1(1)+w^io_2,2 x_2(1)Bigr)
endbmatrix
endmmatrix
endaligned
endequation
endfleqn

enddocument


enter image description here






share|improve this answer























  • thank you for the suggestion! this is really helpful!

    – user32147
    May 16 at 1:07











  • initially I was able to fit the matrix in one line without cdot but I decided to put cdot as I feel like the equation is easier to parse and read with them.

    – user32147
    May 16 at 1:16















3














I propose this layout, which doesn't require multiline equations inside matrix. Instead, I suppressed the cdots (unnecessary, from my point of view) and used the mmatrix (medium-size matrix) environment from nccmath, and the fleqn environment (same package). This size remains readable, as it is ~80 % of displaystyle.



documentclassarticle
usepackage[showframe]geometry
usepackagemathtools, nccmath

begindocument
vspace*1cm
beginfleqn

beginequation
beginaligned[b] labeleq:7
&mathbfy(1)=tanh(mathbfW^rocdotmathbfh(1)+mathbfW^iocdotmathbfx(1)) = \
& beginmmatrix beginbmatrix
tanhBigl(w^ro_1,1 alpha tanhbigl(w^ir_1,1 x_1(1) + w^ir_2,1 x_2(1)bigr)
+ w^ro_2,1 alpha tanhbigl(w^ir_1,2 x_1(1) + w^ir_2,2 x_2(1)bigr) + w^io_1,1 x_1(1)+w^io_2,1 x_2(1)Bigr)
\
%
tanhBigl(w^ro_1,2 alpha tanhbigl(w^ir_1,1 x_1(1) + w^ir_2,1 x_2(1)bigr)
+ w^ro_2,2 alpha tanhbigl(w^ir_1,2 x_1(1)+w^ir_2,2 x_2(1)bigr) + w^io_1,2 x_1(1)+w^io_2,2 x_2(1)Bigr)
endbmatrix
endmmatrix
endaligned
endequation
endfleqn

enddocument


enter image description here






share|improve this answer























  • thank you for the suggestion! this is really helpful!

    – user32147
    May 16 at 1:07











  • initially I was able to fit the matrix in one line without cdot but I decided to put cdot as I feel like the equation is easier to parse and read with them.

    – user32147
    May 16 at 1:16













3












3








3







I propose this layout, which doesn't require multiline equations inside matrix. Instead, I suppressed the cdots (unnecessary, from my point of view) and used the mmatrix (medium-size matrix) environment from nccmath, and the fleqn environment (same package). This size remains readable, as it is ~80 % of displaystyle.



documentclassarticle
usepackage[showframe]geometry
usepackagemathtools, nccmath

begindocument
vspace*1cm
beginfleqn

beginequation
beginaligned[b] labeleq:7
&mathbfy(1)=tanh(mathbfW^rocdotmathbfh(1)+mathbfW^iocdotmathbfx(1)) = \
& beginmmatrix beginbmatrix
tanhBigl(w^ro_1,1 alpha tanhbigl(w^ir_1,1 x_1(1) + w^ir_2,1 x_2(1)bigr)
+ w^ro_2,1 alpha tanhbigl(w^ir_1,2 x_1(1) + w^ir_2,2 x_2(1)bigr) + w^io_1,1 x_1(1)+w^io_2,1 x_2(1)Bigr)
\
%
tanhBigl(w^ro_1,2 alpha tanhbigl(w^ir_1,1 x_1(1) + w^ir_2,1 x_2(1)bigr)
+ w^ro_2,2 alpha tanhbigl(w^ir_1,2 x_1(1)+w^ir_2,2 x_2(1)bigr) + w^io_1,2 x_1(1)+w^io_2,2 x_2(1)Bigr)
endbmatrix
endmmatrix
endaligned
endequation
endfleqn

enddocument


enter image description here






share|improve this answer













I propose this layout, which doesn't require multiline equations inside matrix. Instead, I suppressed the cdots (unnecessary, from my point of view) and used the mmatrix (medium-size matrix) environment from nccmath, and the fleqn environment (same package). This size remains readable, as it is ~80 % of displaystyle.



documentclassarticle
usepackage[showframe]geometry
usepackagemathtools, nccmath

begindocument
vspace*1cm
beginfleqn

beginequation
beginaligned[b] labeleq:7
&mathbfy(1)=tanh(mathbfW^rocdotmathbfh(1)+mathbfW^iocdotmathbfx(1)) = \
& beginmmatrix beginbmatrix
tanhBigl(w^ro_1,1 alpha tanhbigl(w^ir_1,1 x_1(1) + w^ir_2,1 x_2(1)bigr)
+ w^ro_2,1 alpha tanhbigl(w^ir_1,2 x_1(1) + w^ir_2,2 x_2(1)bigr) + w^io_1,1 x_1(1)+w^io_2,1 x_2(1)Bigr)
\
%
tanhBigl(w^ro_1,2 alpha tanhbigl(w^ir_1,1 x_1(1) + w^ir_2,1 x_2(1)bigr)
+ w^ro_2,2 alpha tanhbigl(w^ir_1,2 x_1(1)+w^ir_2,2 x_2(1)bigr) + w^io_1,2 x_1(1)+w^io_2,2 x_2(1)Bigr)
endbmatrix
endmmatrix
endaligned
endequation
endfleqn

enddocument


enter image description here







share|improve this answer












share|improve this answer



share|improve this answer










answered May 15 at 21:16









BernardBernard

180k780212




180k780212












  • thank you for the suggestion! this is really helpful!

    – user32147
    May 16 at 1:07











  • initially I was able to fit the matrix in one line without cdot but I decided to put cdot as I feel like the equation is easier to parse and read with them.

    – user32147
    May 16 at 1:16

















  • thank you for the suggestion! this is really helpful!

    – user32147
    May 16 at 1:07











  • initially I was able to fit the matrix in one line without cdot but I decided to put cdot as I feel like the equation is easier to parse and read with them.

    – user32147
    May 16 at 1:16
















thank you for the suggestion! this is really helpful!

– user32147
May 16 at 1:07





thank you for the suggestion! this is really helpful!

– user32147
May 16 at 1:07













initially I was able to fit the matrix in one line without cdot but I decided to put cdot as I feel like the equation is easier to parse and read with them.

– user32147
May 16 at 1:16





initially I was able to fit the matrix in one line without cdot but I decided to put cdot as I feel like the equation is easier to parse and read with them.

– user32147
May 16 at 1:16

















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%2f491032%2fmultiline-equation-inside-a-matrix-that-is-a-part-of-multiline-equation%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

Wikipedia:Vital articles Мазмуну Biography - Өмүр баян Philosophy and psychology - Философия жана психология Religion - Дин Social sciences - Коомдук илимдер Language and literature - Тил жана адабият Science - Илим Technology - Технология Arts and recreation - Искусство жана эс алуу History and geography - Тарых жана география Навигация менюсу

Bruxelas-Capital Índice Historia | Composición | Situación lingüística | Clima | Cidades irmandadas | Notas | Véxase tamén | Menú de navegacióneO uso das linguas en Bruxelas e a situación do neerlandés"Rexión de Bruxelas Capital"o orixinalSitio da rexiónPáxina de Bruselas no sitio da Oficina de Promoción Turística de Valonia e BruxelasMapa Interactivo da Rexión de Bruxelas-CapitaleeWorldCat332144929079854441105155190212ID28008674080552-90000 0001 0666 3698n94104302ID540940339365017018237

What should I write in an apology letter, since I have decided not to join a company after accepting an offer letterShould I keep looking after accepting a job offer?What should I do when I've been verbally told I would get an offer letter, but still haven't gotten one after 4 weeks?Do I accept an offer from a company that I am not likely to join?New job hasn't confirmed starting date and I want to give current employer as much notice as possibleHow should I address my manager in my resignation letter?HR delayed background verification, now jobless as resignedNo email communication after accepting a formal written offer. How should I phrase the call?What should I do if after receiving a verbal offer letter I am informed that my written job offer is put on hold due to some internal issues?Should I inform the current employer that I am about to resign within 1-2 weeks since I have signed the offer letter and waiting for visa?What company will do, if I send their offer letter to another company