How to store values in an array?How to pass a macro output to FPeval?How to create a “delay expansion” environment?How to parse optional arguments without keyval?How to seed FPseed with a value that is unique for every compilation?global variables and/or array of variablesHow to pass a command as uncover argumentfp - How to keep running sum in variable?How to extract integer part and fractional part of a decimal number?How to write Quadratic equation with negative coefficientArray variable with fp package: How to use FPeval in array?
Does the Linux kernel need a file system to run?
What is the difference between lands and mana?
US tourist/student visa
Short story about a deaf man, who cuts people tongues
Mimic lecturing on blackboard, facing audience
Is this part of the description of the Archfey warlock's Misty Escape feature redundant?
How much theory knowledge is actually used while playing?
The Digit Triangles
Did the UK lift the requirement for registering SIM cards?
Why is the Sun approximated as a black body at ~ 5800 K?
Shouldn’t conservatives embrace universal basic income?
Review your own paper in Mathematics
How to get directions in deep space?
Why do ¬, ∀ and ∃ have the same precedence?
Taxes on Dividends in a Roth IRA
The IT department bottlenecks progress, how should I handle this?
What is Cash Advance APR?
Which Article Helped Get Rid of Technobabble in RPGs?
Is this toilet slogan correct usage of the English language?
How to explain what's wrong with this application of the chain rule?
What's the name of the logical fallacy where a debater extends a statement far beyond the original statement to make it true?
Does Doodling or Improvising on the Piano Have Any Benefits?
Is there any evidence that Cleopatra and Caesarion considered fleeing to India to escape the Romans?
Is it allowed to activate the ability of multiple planeswalkers in a single turn?
How to store values in an array?
How to pass a macro output to FPeval?How to create a “delay expansion” environment?How to parse optional arguments without keyval?How to seed FPseed with a value that is unique for every compilation?global variables and/or array of variablesHow to pass a command as uncover argumentfp - How to keep running sum in variable?How to extract integer part and fractional part of a decimal number?How to write Quadratic equation with negative coefficientArray variable with fp package: How to use FPeval in array?
How to store a calculated value in array?
zz(1) = ( xx(1) + yy(1) )/2
fpevalzz(counter)(xx(counter)+yy(counter))/2 NOT working
documentclassbeamer
usepackagesiunitx,amsmath
usepackagexparse,xfp
ExplSyntaxOn
NewDocumentCommandnewarraym
seq_new:c l_hafid_array_#1_seq
cs_new:cpn #1 ##1
seq_item:cn l_hafid_array_#1_seq ##1
NewDocumentCommandreadarraymm
seq_set_split:cnn l_hafid_array_#1_seq & #2
cs_generate_variant:Nn seq_set_split:Nnn c
NewExpandableDocumentCommandsumarrayO15m
fp_eval:n round( seq_use:cn l_hafid_array_#2_seq + , #1 )
ExplSyntaxOff
begindocument
newarrayxx
readarrayxx1&2&3&4&5
newarrayyy
readarrayyy6&7&8&9&10
beginframe
begintable[]
begintabularcccc
No & xx & yy & zz \ hline
1 & xx1 & yy1 & fpeval(xx1+yy1)/2 \
2 & xx2 & yy2 & fpeval(xx2+yy2)/2 \
3 & xx3 & yy3 & \
4 & xx4 & yy4 & \
5 & xx5 & yy5 & \ hline
endtabular
endtable
endframe
%newarrayzz
%readarrayxx0&0&0&0&0
newcountcounter
counter=5
loop
fpevalzz(counter)(xx(counter)+yy(counter))/2
advance counter by -1
unlessifnum counter<1
repeat
enddocument
fp
add a comment |
How to store a calculated value in array?
zz(1) = ( xx(1) + yy(1) )/2
fpevalzz(counter)(xx(counter)+yy(counter))/2 NOT working
documentclassbeamer
usepackagesiunitx,amsmath
usepackagexparse,xfp
ExplSyntaxOn
NewDocumentCommandnewarraym
seq_new:c l_hafid_array_#1_seq
cs_new:cpn #1 ##1
seq_item:cn l_hafid_array_#1_seq ##1
NewDocumentCommandreadarraymm
seq_set_split:cnn l_hafid_array_#1_seq & #2
cs_generate_variant:Nn seq_set_split:Nnn c
NewExpandableDocumentCommandsumarrayO15m
fp_eval:n round( seq_use:cn l_hafid_array_#2_seq + , #1 )
ExplSyntaxOff
begindocument
newarrayxx
readarrayxx1&2&3&4&5
newarrayyy
readarrayyy6&7&8&9&10
beginframe
begintable[]
begintabularcccc
No & xx & yy & zz \ hline
1 & xx1 & yy1 & fpeval(xx1+yy1)/2 \
2 & xx2 & yy2 & fpeval(xx2+yy2)/2 \
3 & xx3 & yy3 & \
4 & xx4 & yy4 & \
5 & xx5 & yy5 & \ hline
endtabular
endtable
endframe
%newarrayzz
%readarrayxx0&0&0&0&0
newcountcounter
counter=5
loop
fpevalzz(counter)(xx(counter)+yy(counter))/2
advance counter by -1
unlessifnum counter<1
repeat
enddocument
fp
add a comment |
How to store a calculated value in array?
zz(1) = ( xx(1) + yy(1) )/2
fpevalzz(counter)(xx(counter)+yy(counter))/2 NOT working
documentclassbeamer
usepackagesiunitx,amsmath
usepackagexparse,xfp
ExplSyntaxOn
NewDocumentCommandnewarraym
seq_new:c l_hafid_array_#1_seq
cs_new:cpn #1 ##1
seq_item:cn l_hafid_array_#1_seq ##1
NewDocumentCommandreadarraymm
seq_set_split:cnn l_hafid_array_#1_seq & #2
cs_generate_variant:Nn seq_set_split:Nnn c
NewExpandableDocumentCommandsumarrayO15m
fp_eval:n round( seq_use:cn l_hafid_array_#2_seq + , #1 )
ExplSyntaxOff
begindocument
newarrayxx
readarrayxx1&2&3&4&5
newarrayyy
readarrayyy6&7&8&9&10
beginframe
begintable[]
begintabularcccc
No & xx & yy & zz \ hline
1 & xx1 & yy1 & fpeval(xx1+yy1)/2 \
2 & xx2 & yy2 & fpeval(xx2+yy2)/2 \
3 & xx3 & yy3 & \
4 & xx4 & yy4 & \
5 & xx5 & yy5 & \ hline
endtabular
endtable
endframe
%newarrayzz
%readarrayxx0&0&0&0&0
newcountcounter
counter=5
loop
fpevalzz(counter)(xx(counter)+yy(counter))/2
advance counter by -1
unlessifnum counter<1
repeat
enddocument
fp
How to store a calculated value in array?
zz(1) = ( xx(1) + yy(1) )/2
fpevalzz(counter)(xx(counter)+yy(counter))/2 NOT working
documentclassbeamer
usepackagesiunitx,amsmath
usepackagexparse,xfp
ExplSyntaxOn
NewDocumentCommandnewarraym
seq_new:c l_hafid_array_#1_seq
cs_new:cpn #1 ##1
seq_item:cn l_hafid_array_#1_seq ##1
NewDocumentCommandreadarraymm
seq_set_split:cnn l_hafid_array_#1_seq & #2
cs_generate_variant:Nn seq_set_split:Nnn c
NewExpandableDocumentCommandsumarrayO15m
fp_eval:n round( seq_use:cn l_hafid_array_#2_seq + , #1 )
ExplSyntaxOff
begindocument
newarrayxx
readarrayxx1&2&3&4&5
newarrayyy
readarrayyy6&7&8&9&10
beginframe
begintable[]
begintabularcccc
No & xx & yy & zz \ hline
1 & xx1 & yy1 & fpeval(xx1+yy1)/2 \
2 & xx2 & yy2 & fpeval(xx2+yy2)/2 \
3 & xx3 & yy3 & \
4 & xx4 & yy4 & \
5 & xx5 & yy5 & \ hline
endtabular
endtable
endframe
%newarrayzz
%readarrayxx0&0&0&0&0
newcountcounter
counter=5
loop
fpevalzz(counter)(xx(counter)+yy(counter))/2
advance counter by -1
unlessifnum counter<1
repeat
enddocument
fp
fp
asked 7 mins ago
sandusandu
3,67942856
3,67942856
add a comment |
add a comment |
0
active
oldest
votes
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%2f480828%2fhow-to-store-values-in-an-array%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
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%2f480828%2fhow-to-store-values-in-an-array%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