Representing Iterations in MathRepresenting IF … THEN … ELSE … in math notationRepresenting circular...
How can I safely use "Thalidomide" in my novel while respecting the trademark?
El Dorado Word Puzzle II: Videogame Edition
Why didn't Voldemort know what Grindelwald looked like?
Do I have to know the General Relativity theory to understand the concept of inertial frame?
When and why was runway 07/25 at Kai Tak removed?
Are Captain Marvel's powers affected by Thanos breaking the Tesseract and claiming the stone?
What is this high flying aircraft over Pennsylvania?
Can I run 125kHz RF circuit on a breadboard?
Do you waste sorcery points if you try to apply metamagic to a spell from a scroll but fail to cast it?
Is it feasible to let a newcomer play the "Gandalf"-like figure I created for my campaign?
Ways of geometrical multiplication
Would this string work as string?
Typing CO_2 easily
How do I prevent inappropriate ads from appearing in my game?
How to leave product feedback on macOS?
Can I say "fingers" when referring to toes?
Review your own paper in Mathematics
What is the meaning of the following sentence?
If the only attacker is removed from combat, is a creature still counted as having attacked this turn?
Does the Crossbow Expert feat's extra crossbow attack work with the reaction attack from a Hunter ranger's Giant Killer feature?
Do people actually use the word "kaputt" in conversation?
How can I, as DM, avoid the Conga Line of Death occurring when implementing some form of flanking rule?
Is there a reason to prefer HFS+ over APFS for disk images in High Sierra and/or Mojave?
Showing mass murder in a kid's book
Representing Iterations in Math
Representing IF … THEN … ELSE … in math notationRepresenting circular bitwise shift mathematicallyRepresenting relations among several long formulaeTuring Machine for comparing, copying, and operatingRepresenting textual solution to problem using Math notationRepresenting Several IF statements inside a FOR loop in Math NotationWhat is the significance of using “$a$” vs “$x$” in this text?Succinctly writing some code in vector/mathematical notation - how?Counting amount of Iterations“Good” notation for $hom$-functors
$begingroup$
I'm coming from a software engineering background and not a mathematical one. You may have to explain the exact notation to me but I would really appreciate it. I want to represent one of my processes as a single mathematical formula.
If I have a starting integer A (lets say its 5)
I also have an array of numbers Z[] with n number of positions, lets say Z contains [1, .5, 2, .5, 1...]
I will iterate over n and decrement each iteration that Z[n] value from A until A reaches or goes below 0.
First Iteration
5 - Z[0] = 5 - 1 = 4
Second iteration
4-Z[1] = 4-.5 = 3.5
and so on...
3.5 - Z[2] = 3.5 - 2 = 1.5
1.5 - Z[3] = 1.5 - .5 = 1
1 - Z[4] = 1 - 1 = 0
The result I'm looking for is the final n value, in this example that would be 4. I'm trying to represent this process as a singular mathematical formula. From reading other posts I think the final result will be something similar to the below, but I'm honestly not too sure
$X=min{x∈N∣∑(formulaHere)<=0}$
Please and thank you!
notation computer-science
$endgroup$
add a comment |
$begingroup$
I'm coming from a software engineering background and not a mathematical one. You may have to explain the exact notation to me but I would really appreciate it. I want to represent one of my processes as a single mathematical formula.
If I have a starting integer A (lets say its 5)
I also have an array of numbers Z[] with n number of positions, lets say Z contains [1, .5, 2, .5, 1...]
I will iterate over n and decrement each iteration that Z[n] value from A until A reaches or goes below 0.
First Iteration
5 - Z[0] = 5 - 1 = 4
Second iteration
4-Z[1] = 4-.5 = 3.5
and so on...
3.5 - Z[2] = 3.5 - 2 = 1.5
1.5 - Z[3] = 1.5 - .5 = 1
1 - Z[4] = 1 - 1 = 0
The result I'm looking for is the final n value, in this example that would be 4. I'm trying to represent this process as a singular mathematical formula. From reading other posts I think the final result will be something similar to the below, but I'm honestly not too sure
$X=min{x∈N∣∑(formulaHere)<=0}$
Please and thank you!
notation computer-science
$endgroup$
1
$begingroup$
Just to clarify your question, are you asking about the general ideas/notation/perspective? Or about this particular problem (only), in which my first reaction is "why start with $A$ and subtract when you could ask when the sum first reaches or exceeds $A$?"?
$endgroup$
– Mark S.
Mar 12 at 23:20
$begingroup$
@MarkS. Consider my mind blown. Thank you so much.
$endgroup$
– Richard Polson
Mar 13 at 0:15
add a comment |
$begingroup$
I'm coming from a software engineering background and not a mathematical one. You may have to explain the exact notation to me but I would really appreciate it. I want to represent one of my processes as a single mathematical formula.
If I have a starting integer A (lets say its 5)
I also have an array of numbers Z[] with n number of positions, lets say Z contains [1, .5, 2, .5, 1...]
I will iterate over n and decrement each iteration that Z[n] value from A until A reaches or goes below 0.
First Iteration
5 - Z[0] = 5 - 1 = 4
Second iteration
4-Z[1] = 4-.5 = 3.5
and so on...
3.5 - Z[2] = 3.5 - 2 = 1.5
1.5 - Z[3] = 1.5 - .5 = 1
1 - Z[4] = 1 - 1 = 0
The result I'm looking for is the final n value, in this example that would be 4. I'm trying to represent this process as a singular mathematical formula. From reading other posts I think the final result will be something similar to the below, but I'm honestly not too sure
$X=min{x∈N∣∑(formulaHere)<=0}$
Please and thank you!
notation computer-science
$endgroup$
I'm coming from a software engineering background and not a mathematical one. You may have to explain the exact notation to me but I would really appreciate it. I want to represent one of my processes as a single mathematical formula.
If I have a starting integer A (lets say its 5)
I also have an array of numbers Z[] with n number of positions, lets say Z contains [1, .5, 2, .5, 1...]
I will iterate over n and decrement each iteration that Z[n] value from A until A reaches or goes below 0.
First Iteration
5 - Z[0] = 5 - 1 = 4
Second iteration
4-Z[1] = 4-.5 = 3.5
and so on...
3.5 - Z[2] = 3.5 - 2 = 1.5
1.5 - Z[3] = 1.5 - .5 = 1
1 - Z[4] = 1 - 1 = 0
The result I'm looking for is the final n value, in this example that would be 4. I'm trying to represent this process as a singular mathematical formula. From reading other posts I think the final result will be something similar to the below, but I'm honestly not too sure
$X=min{x∈N∣∑(formulaHere)<=0}$
Please and thank you!
notation computer-science
notation computer-science
edited Mar 12 at 23:21
Mark S.
12.2k22771
12.2k22771
asked Mar 12 at 23:10
Richard PolsonRichard Polson
112
112
1
$begingroup$
Just to clarify your question, are you asking about the general ideas/notation/perspective? Or about this particular problem (only), in which my first reaction is "why start with $A$ and subtract when you could ask when the sum first reaches or exceeds $A$?"?
$endgroup$
– Mark S.
Mar 12 at 23:20
$begingroup$
@MarkS. Consider my mind blown. Thank you so much.
$endgroup$
– Richard Polson
Mar 13 at 0:15
add a comment |
1
$begingroup$
Just to clarify your question, are you asking about the general ideas/notation/perspective? Or about this particular problem (only), in which my first reaction is "why start with $A$ and subtract when you could ask when the sum first reaches or exceeds $A$?"?
$endgroup$
– Mark S.
Mar 12 at 23:20
$begingroup$
@MarkS. Consider my mind blown. Thank you so much.
$endgroup$
– Richard Polson
Mar 13 at 0:15
1
1
$begingroup$
Just to clarify your question, are you asking about the general ideas/notation/perspective? Or about this particular problem (only), in which my first reaction is "why start with $A$ and subtract when you could ask when the sum first reaches or exceeds $A$?"?
$endgroup$
– Mark S.
Mar 12 at 23:20
$begingroup$
Just to clarify your question, are you asking about the general ideas/notation/perspective? Or about this particular problem (only), in which my first reaction is "why start with $A$ and subtract when you could ask when the sum first reaches or exceeds $A$?"?
$endgroup$
– Mark S.
Mar 12 at 23:20
$begingroup$
@MarkS. Consider my mind blown. Thank you so much.
$endgroup$
– Richard Polson
Mar 13 at 0:15
$begingroup$
@MarkS. Consider my mind blown. Thank you so much.
$endgroup$
– Richard Polson
Mar 13 at 0:15
add a comment |
1 Answer
1
active
oldest
votes
$begingroup$
As @Mark S observes, this can be expressed as
$$
min_n {n mid (sum_{i=0}^n Z_i) ge A }.
$$
$endgroup$
$begingroup$
Thank you. Adding to the initial number and summing the values makes way more sense!
$endgroup$
– Richard Polson
Mar 13 at 0:15
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
return StackExchange.using("mathjaxEditing", function () {
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
});
});
}, "mathjax-editing");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "69"
};
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: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
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
},
noCode: 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%2fmath.stackexchange.com%2fquestions%2f3145831%2frepresenting-iterations-in-math%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
$begingroup$
As @Mark S observes, this can be expressed as
$$
min_n {n mid (sum_{i=0}^n Z_i) ge A }.
$$
$endgroup$
$begingroup$
Thank you. Adding to the initial number and summing the values makes way more sense!
$endgroup$
– Richard Polson
Mar 13 at 0:15
add a comment |
$begingroup$
As @Mark S observes, this can be expressed as
$$
min_n {n mid (sum_{i=0}^n Z_i) ge A }.
$$
$endgroup$
$begingroup$
Thank you. Adding to the initial number and summing the values makes way more sense!
$endgroup$
– Richard Polson
Mar 13 at 0:15
add a comment |
$begingroup$
As @Mark S observes, this can be expressed as
$$
min_n {n mid (sum_{i=0}^n Z_i) ge A }.
$$
$endgroup$
As @Mark S observes, this can be expressed as
$$
min_n {n mid (sum_{i=0}^n Z_i) ge A }.
$$
answered Mar 12 at 23:50
community wiki
John Hughes
$begingroup$
Thank you. Adding to the initial number and summing the values makes way more sense!
$endgroup$
– Richard Polson
Mar 13 at 0:15
add a comment |
$begingroup$
Thank you. Adding to the initial number and summing the values makes way more sense!
$endgroup$
– Richard Polson
Mar 13 at 0:15
$begingroup$
Thank you. Adding to the initial number and summing the values makes way more sense!
$endgroup$
– Richard Polson
Mar 13 at 0:15
$begingroup$
Thank you. Adding to the initial number and summing the values makes way more sense!
$endgroup$
– Richard Polson
Mar 13 at 0:15
add a comment |
Thanks for contributing an answer to Mathematics 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.
Use MathJax to format equations. MathJax reference.
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%2fmath.stackexchange.com%2fquestions%2f3145831%2frepresenting-iterations-in-math%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
1
$begingroup$
Just to clarify your question, are you asking about the general ideas/notation/perspective? Or about this particular problem (only), in which my first reaction is "why start with $A$ and subtract when you could ask when the sum first reaches or exceeds $A$?"?
$endgroup$
– Mark S.
Mar 12 at 23:20
$begingroup$
@MarkS. Consider my mind blown. Thank you so much.
$endgroup$
– Richard Polson
Mar 13 at 0:15