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?
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
add a comment |
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
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
add a comment |
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
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
equations algorithms
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
add a comment |
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
add a comment |
2 Answers
2
active
oldest
votes
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:
- 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 formulatextNew
, not in italics. - 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).
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
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
add a comment |
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:
I'm too spartan :-) like Diogenes who always went around dressed in essential clothes :-) +1
– Sebastiano
May 21 at 19:46
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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:
- 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 formulatextNew
, not in italics. - 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).
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
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
add a comment |
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:
- 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 formulatextNew
, not in italics. - 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).
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
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
add a comment |
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:
- 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 formulatextNew
, not in italics. - 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).
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
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:
- 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 formulatextNew
, not in italics. - 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).
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
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
add a comment |
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
add a comment |
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:
I'm too spartan :-) like Diogenes who always went around dressed in essential clothes :-) +1
– Sebastiano
May 21 at 19:46
add a comment |
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:
I'm too spartan :-) like Diogenes who always went around dressed in essential clothes :-) +1
– Sebastiano
May 21 at 19:46
add a comment |
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:
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:
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
add a comment |
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
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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