How can I properly write this equation in Latex?Citing the source of an equation?How can I move an equation without affecting the label?Algorithm code width problemhow to change the algorithm environment?Please how can I write this equation in latex?DLL for convert latex equation to imageHow to make specific parts of an equation large?Latex environment for English like algorithmHow to bold the letter in equation in LateX effectivelyHow to align the derivation of equation?

Where does "0 packages can be updated." come from?

Do simulator games use a realistic trajectory to get into orbit?

Implement Homestuck's Catenative Doomsday Dice Cascader

Are DSA and ECDSA provably secure assuming DL security?

An average heaven where everyone has sexless golden bodies and is bored

Investing in a Roth IRA with a Personal Loan?

Trapping Rain Water

What is the `some` keyword in SwiftUI

Do any instruments not produce overtones?

At what point in time did Dumbledore ask Snape for this favor?

Does Disney no longer produce hand-drawn cartoon films?

Was the output of the C64 SID chip 8 bit sound?

What should the arbiter and what should have I done in this case?

How can drunken, homicidal elves successfully conduct a wild hunt?

Can the poison from Kingsmen be concocted?

Can anyone identify this tank?

Should I compare a std::string to "string" or "string"s?

Using a found spellbook as a Sorcerer-Wizard multiclass

Why did Canadian English remain so close to standard U.S English?

How to officially communicate to a non-responsive colleague?

Is it possible to 'live off the sea'

Are there downsides to using std::string as a buffer?

When conversion from Integer to Single may lose precision

Does an ice chest packed full of frozen food need ice?



How can I properly write this equation in Latex?


Citing the source of an equation?How can I move an equation without affecting the label?Algorithm code width problemhow to change the algorithm environment?Please how can I write this equation in latex?DLL for convert latex equation to imageHow to make specific parts of an equation large?Latex environment for English like algorithmHow to bold the letter in equation in LateX effectivelyHow to align the derivation of equation?













3















enter image description here



The equation is basically Bellman equation essential to the Q-learning algorithm. If there's any way to include the notes below (such as "New Q-Value") aswell that'd be even better!










share|improve this question

















  • 2





    welcome to tex.se! please provide small but complete document with your equation (without comments under it), that we no need type it from scratch. help us to help you!

    – Zarko
    May 21 at 12:14















3















enter image description here



The equation is basically Bellman equation essential to the Q-learning algorithm. If there's any way to include the notes below (such as "New Q-Value") aswell that'd be even better!










share|improve this question

















  • 2





    welcome to tex.se! please provide small but complete document with your equation (without comments under it), that we no need type it from scratch. help us to help you!

    – Zarko
    May 21 at 12:14













3












3








3








enter image description here



The equation is basically Bellman equation essential to the Q-learning algorithm. If there's any way to include the notes below (such as "New Q-Value") aswell that'd be even better!










share|improve this question














enter image description here



The equation is basically Bellman equation essential to the Q-learning algorithm. If there's any way to include the notes below (such as "New Q-Value") aswell that'd be even better!







equations algorithms






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked May 21 at 11:30









AlexAlex

272




272







  • 2





    welcome to tex.se! please provide small but complete document with your equation (without comments under it), that we no need type it from scratch. help us to help you!

    – Zarko
    May 21 at 12:14












  • 2





    welcome to tex.se! please provide small but complete document with your equation (without comments under it), that we no need type it from scratch. help us to help you!

    – Zarko
    May 21 at 12:14







2




2





welcome to tex.se! please provide small but complete document with your equation (without comments under it), that we no need type it from scratch. help us to help you!

– Zarko
May 21 at 12:14





welcome to tex.se! please provide small but complete document with your equation (without comments under it), that we no need type it from scratch. help us to help you!

– Zarko
May 21 at 12:14










2 Answers
2






active

oldest

votes


















9














My welcome to TeX.SE and you here have a my proposal done as pure LaTeX. There is a bit of difference from your image because there is much text in a specific part of the formula (Maximum predicted reward, given new state and all possible actions).



Some small suggestions:



  1. In LaTeX there is a specific command to indicate the maximum and it is max that is not written in italics (max) like each letter is a variable. The same discussion for "New", which I wrote as text into a formula textNew, not in italics.

  2. An important indication: if you change something in the formula that you have inserted as an image, the spaces may change. This can be easily resolved by reducing or increasing the distance with the command mkern-30mu (for example).

enter image description here



documentclass[a4paper,12pt]article
usepackageamssymb,mathtools
begindocument
[underbracetextNewQ(s,a)_scriptstyletextNew Q-Value=Q(s,a)+mkern-34muundersettextNew Q-Valueundersetalphamkern-30mu[underbraceR(s,a)_scriptstyletextReward+mkern-30muundersettextDiscount rateundersetgammamkern-75muoverbracemax Q'(s',a')^scriptstylesubstacktextMaximum predicted reward, given \ textnew state and all possible actionsmkern-45mu-Q(s,a)]]
enddocument





share|improve this answer




















  • 2





    Nice answer showing all the alternatives and more for the user to play with without being just another copy

    – KJO
    May 21 at 12:21











  • You're always so kind to me and I thank you so much. The first thing I thought was not to use TikZ probably because I really like fantasy and imagination and especially creativity. Thanks always.

    – Sebastiano
    May 21 at 19:48


















7














An alternative, with use of tikzmark library:



documentclassarticle
usepackagemathtools
usepackagetikz
usetikzlibrarytikzmark

usepackagelipsum
begindocument
lipsum[66]
[
underbracetextNew Q(s,a)_substacktextNew\
textQ-Value
= underbraceQ(s,a)_substacktextCurrent\
textQ-Value
+ tikzmarknodeAalpha
Bigl[
underbraceR(s,a)_textReward
+ tikzmarknodeBgamma
overbracemax Q'(s',a')^mathclap%
substacktextMaximum predicted reward, given \
textnew state and all possible actions

- Q(s,a)
Bigr]
begintikzpicture[overlay, remember picture,shorten <=1mm, font=footnotesize, align=center]
draw (A.south) -- ++ (0,-.8) node (C) [below] Learning\ rate;
draw (B.south) -- (B |- C.north) node[below] Discount\ rate;
endtikzpicture
vspace4ex
]
lipsum[66]
enddocument


After two compilation the result is:



enter image description here






share|improve this answer























  • I'm too spartan :-) like Diogenes who always went around dressed in essential clothes :-) +1

    – Sebastiano
    May 21 at 19:46











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%2f491915%2fhow-can-i-properly-write-this-equation-in-latex%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























2 Answers
2






active

oldest

votes








2 Answers
2






active

oldest

votes









active

oldest

votes






active

oldest

votes









9














My welcome to TeX.SE and you here have a my proposal done as pure LaTeX. There is a bit of difference from your image because there is much text in a specific part of the formula (Maximum predicted reward, given new state and all possible actions).



Some small suggestions:



  1. In LaTeX there is a specific command to indicate the maximum and it is max that is not written in italics (max) like each letter is a variable. The same discussion for "New", which I wrote as text into a formula textNew, not in italics.

  2. An important indication: if you change something in the formula that you have inserted as an image, the spaces may change. This can be easily resolved by reducing or increasing the distance with the command mkern-30mu (for example).

enter image description here



documentclass[a4paper,12pt]article
usepackageamssymb,mathtools
begindocument
[underbracetextNewQ(s,a)_scriptstyletextNew Q-Value=Q(s,a)+mkern-34muundersettextNew Q-Valueundersetalphamkern-30mu[underbraceR(s,a)_scriptstyletextReward+mkern-30muundersettextDiscount rateundersetgammamkern-75muoverbracemax Q'(s',a')^scriptstylesubstacktextMaximum predicted reward, given \ textnew state and all possible actionsmkern-45mu-Q(s,a)]]
enddocument





share|improve this answer




















  • 2





    Nice answer showing all the alternatives and more for the user to play with without being just another copy

    – KJO
    May 21 at 12:21











  • You're always so kind to me and I thank you so much. The first thing I thought was not to use TikZ probably because I really like fantasy and imagination and especially creativity. Thanks always.

    – Sebastiano
    May 21 at 19:48















9














My welcome to TeX.SE and you here have a my proposal done as pure LaTeX. There is a bit of difference from your image because there is much text in a specific part of the formula (Maximum predicted reward, given new state and all possible actions).



Some small suggestions:



  1. In LaTeX there is a specific command to indicate the maximum and it is max that is not written in italics (max) like each letter is a variable. The same discussion for "New", which I wrote as text into a formula textNew, not in italics.

  2. An important indication: if you change something in the formula that you have inserted as an image, the spaces may change. This can be easily resolved by reducing or increasing the distance with the command mkern-30mu (for example).

enter image description here



documentclass[a4paper,12pt]article
usepackageamssymb,mathtools
begindocument
[underbracetextNewQ(s,a)_scriptstyletextNew Q-Value=Q(s,a)+mkern-34muundersettextNew Q-Valueundersetalphamkern-30mu[underbraceR(s,a)_scriptstyletextReward+mkern-30muundersettextDiscount rateundersetgammamkern-75muoverbracemax Q'(s',a')^scriptstylesubstacktextMaximum predicted reward, given \ textnew state and all possible actionsmkern-45mu-Q(s,a)]]
enddocument





share|improve this answer




















  • 2





    Nice answer showing all the alternatives and more for the user to play with without being just another copy

    – KJO
    May 21 at 12:21











  • You're always so kind to me and I thank you so much. The first thing I thought was not to use TikZ probably because I really like fantasy and imagination and especially creativity. Thanks always.

    – Sebastiano
    May 21 at 19:48













9












9








9







My welcome to TeX.SE and you here have a my proposal done as pure LaTeX. There is a bit of difference from your image because there is much text in a specific part of the formula (Maximum predicted reward, given new state and all possible actions).



Some small suggestions:



  1. In LaTeX there is a specific command to indicate the maximum and it is max that is not written in italics (max) like each letter is a variable. The same discussion for "New", which I wrote as text into a formula textNew, not in italics.

  2. An important indication: if you change something in the formula that you have inserted as an image, the spaces may change. This can be easily resolved by reducing or increasing the distance with the command mkern-30mu (for example).

enter image description here



documentclass[a4paper,12pt]article
usepackageamssymb,mathtools
begindocument
[underbracetextNewQ(s,a)_scriptstyletextNew Q-Value=Q(s,a)+mkern-34muundersettextNew Q-Valueundersetalphamkern-30mu[underbraceR(s,a)_scriptstyletextReward+mkern-30muundersettextDiscount rateundersetgammamkern-75muoverbracemax Q'(s',a')^scriptstylesubstacktextMaximum predicted reward, given \ textnew state and all possible actionsmkern-45mu-Q(s,a)]]
enddocument





share|improve this answer















My welcome to TeX.SE and you here have a my proposal done as pure LaTeX. There is a bit of difference from your image because there is much text in a specific part of the formula (Maximum predicted reward, given new state and all possible actions).



Some small suggestions:



  1. In LaTeX there is a specific command to indicate the maximum and it is max that is not written in italics (max) like each letter is a variable. The same discussion for "New", which I wrote as text into a formula textNew, not in italics.

  2. An important indication: if you change something in the formula that you have inserted as an image, the spaces may change. This can be easily resolved by reducing or increasing the distance with the command mkern-30mu (for example).

enter image description here



documentclass[a4paper,12pt]article
usepackageamssymb,mathtools
begindocument
[underbracetextNewQ(s,a)_scriptstyletextNew Q-Value=Q(s,a)+mkern-34muundersettextNew Q-Valueundersetalphamkern-30mu[underbraceR(s,a)_scriptstyletextReward+mkern-30muundersettextDiscount rateundersetgammamkern-75muoverbracemax Q'(s',a')^scriptstylesubstacktextMaximum predicted reward, given \ textnew state and all possible actionsmkern-45mu-Q(s,a)]]
enddocument






share|improve this answer














share|improve this answer



share|improve this answer








edited May 22 at 20:46

























answered May 21 at 12:14









SebastianoSebastiano

12.7k42570




12.7k42570







  • 2





    Nice answer showing all the alternatives and more for the user to play with without being just another copy

    – KJO
    May 21 at 12:21











  • You're always so kind to me and I thank you so much. The first thing I thought was not to use TikZ probably because I really like fantasy and imagination and especially creativity. Thanks always.

    – Sebastiano
    May 21 at 19:48












  • 2





    Nice answer showing all the alternatives and more for the user to play with without being just another copy

    – KJO
    May 21 at 12:21











  • You're always so kind to me and I thank you so much. The first thing I thought was not to use TikZ probably because I really like fantasy and imagination and especially creativity. Thanks always.

    – Sebastiano
    May 21 at 19:48







2




2





Nice answer showing all the alternatives and more for the user to play with without being just another copy

– KJO
May 21 at 12:21





Nice answer showing all the alternatives and more for the user to play with without being just another copy

– KJO
May 21 at 12:21













You're always so kind to me and I thank you so much. The first thing I thought was not to use TikZ probably because I really like fantasy and imagination and especially creativity. Thanks always.

– Sebastiano
May 21 at 19:48





You're always so kind to me and I thank you so much. The first thing I thought was not to use TikZ probably because I really like fantasy and imagination and especially creativity. Thanks always.

– Sebastiano
May 21 at 19:48











7














An alternative, with use of tikzmark library:



documentclassarticle
usepackagemathtools
usepackagetikz
usetikzlibrarytikzmark

usepackagelipsum
begindocument
lipsum[66]
[
underbracetextNew Q(s,a)_substacktextNew\
textQ-Value
= underbraceQ(s,a)_substacktextCurrent\
textQ-Value
+ tikzmarknodeAalpha
Bigl[
underbraceR(s,a)_textReward
+ tikzmarknodeBgamma
overbracemax Q'(s',a')^mathclap%
substacktextMaximum predicted reward, given \
textnew state and all possible actions

- Q(s,a)
Bigr]
begintikzpicture[overlay, remember picture,shorten <=1mm, font=footnotesize, align=center]
draw (A.south) -- ++ (0,-.8) node (C) [below] Learning\ rate;
draw (B.south) -- (B |- C.north) node[below] Discount\ rate;
endtikzpicture
vspace4ex
]
lipsum[66]
enddocument


After two compilation the result is:



enter image description here






share|improve this answer























  • I'm too spartan :-) like Diogenes who always went around dressed in essential clothes :-) +1

    – Sebastiano
    May 21 at 19:46















7














An alternative, with use of tikzmark library:



documentclassarticle
usepackagemathtools
usepackagetikz
usetikzlibrarytikzmark

usepackagelipsum
begindocument
lipsum[66]
[
underbracetextNew Q(s,a)_substacktextNew\
textQ-Value
= underbraceQ(s,a)_substacktextCurrent\
textQ-Value
+ tikzmarknodeAalpha
Bigl[
underbraceR(s,a)_textReward
+ tikzmarknodeBgamma
overbracemax Q'(s',a')^mathclap%
substacktextMaximum predicted reward, given \
textnew state and all possible actions

- Q(s,a)
Bigr]
begintikzpicture[overlay, remember picture,shorten <=1mm, font=footnotesize, align=center]
draw (A.south) -- ++ (0,-.8) node (C) [below] Learning\ rate;
draw (B.south) -- (B |- C.north) node[below] Discount\ rate;
endtikzpicture
vspace4ex
]
lipsum[66]
enddocument


After two compilation the result is:



enter image description here






share|improve this answer























  • I'm too spartan :-) like Diogenes who always went around dressed in essential clothes :-) +1

    – Sebastiano
    May 21 at 19:46













7












7








7







An alternative, with use of tikzmark library:



documentclassarticle
usepackagemathtools
usepackagetikz
usetikzlibrarytikzmark

usepackagelipsum
begindocument
lipsum[66]
[
underbracetextNew Q(s,a)_substacktextNew\
textQ-Value
= underbraceQ(s,a)_substacktextCurrent\
textQ-Value
+ tikzmarknodeAalpha
Bigl[
underbraceR(s,a)_textReward
+ tikzmarknodeBgamma
overbracemax Q'(s',a')^mathclap%
substacktextMaximum predicted reward, given \
textnew state and all possible actions

- Q(s,a)
Bigr]
begintikzpicture[overlay, remember picture,shorten <=1mm, font=footnotesize, align=center]
draw (A.south) -- ++ (0,-.8) node (C) [below] Learning\ rate;
draw (B.south) -- (B |- C.north) node[below] Discount\ rate;
endtikzpicture
vspace4ex
]
lipsum[66]
enddocument


After two compilation the result is:



enter image description here






share|improve this answer













An alternative, with use of tikzmark library:



documentclassarticle
usepackagemathtools
usepackagetikz
usetikzlibrarytikzmark

usepackagelipsum
begindocument
lipsum[66]
[
underbracetextNew Q(s,a)_substacktextNew\
textQ-Value
= underbraceQ(s,a)_substacktextCurrent\
textQ-Value
+ tikzmarknodeAalpha
Bigl[
underbraceR(s,a)_textReward
+ tikzmarknodeBgamma
overbracemax Q'(s',a')^mathclap%
substacktextMaximum predicted reward, given \
textnew state and all possible actions

- Q(s,a)
Bigr]
begintikzpicture[overlay, remember picture,shorten <=1mm, font=footnotesize, align=center]
draw (A.south) -- ++ (0,-.8) node (C) [below] Learning\ rate;
draw (B.south) -- (B |- C.north) node[below] Discount\ rate;
endtikzpicture
vspace4ex
]
lipsum[66]
enddocument


After two compilation the result is:



enter image description here







share|improve this answer












share|improve this answer



share|improve this answer










answered May 21 at 13:30









ZarkoZarko

136k872180




136k872180












  • I'm too spartan :-) like Diogenes who always went around dressed in essential clothes :-) +1

    – Sebastiano
    May 21 at 19:46

















  • I'm too spartan :-) like Diogenes who always went around dressed in essential clothes :-) +1

    – Sebastiano
    May 21 at 19:46
















I'm too spartan :-) like Diogenes who always went around dressed in essential clothes :-) +1

– Sebastiano
May 21 at 19:46





I'm too spartan :-) like Diogenes who always went around dressed in essential clothes :-) +1

– Sebastiano
May 21 at 19:46

















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%2f491915%2fhow-can-i-properly-write-this-equation-in-latex%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