How to solve $(…((a - b) cdot y - b) cdot y ldots) cdot y geq 0$ if there are $n$ subtractions and...
$begingroup$
It's a programming task, but I'd like to know if there is a way to solve it mathematically.
I need to check $(...((a - b) cdot y - b) cdot y ldots) cdot y geq 0$ if we subtract $b$ and multiply on $y$, $n$ times.
I tried to represent it as
$$a cdot y^n geq b cdot frac{y^n - 1}{y - 1},$$
but I would like to get rid of big numbers such as $y^n$, because these are incomparable in terms of programming if $n leq 1 times 10^{18}$ and $y leq 1 times 10^{2}$. Do you have any idea how can it be represented differently?
inequality
$endgroup$
add a comment |
$begingroup$
It's a programming task, but I'd like to know if there is a way to solve it mathematically.
I need to check $(...((a - b) cdot y - b) cdot y ldots) cdot y geq 0$ if we subtract $b$ and multiply on $y$, $n$ times.
I tried to represent it as
$$a cdot y^n geq b cdot frac{y^n - 1}{y - 1},$$
but I would like to get rid of big numbers such as $y^n$, because these are incomparable in terms of programming if $n leq 1 times 10^{18}$ and $y leq 1 times 10^{2}$. Do you have any idea how can it be represented differently?
inequality
$endgroup$
$begingroup$
Well, if $y>0$, divide both sides by $y^n$ and approximate $1/y^n to 0$…
$endgroup$
– Macavity
Jan 22 at 20:04
$begingroup$
the equation corresponds to a continous (even differentiable) function being less or equal zero. you could try to calculate the boundary (=0) and either by between value or by differential calculus check which side of a point on the boundary is inner/outer of your solution set.
$endgroup$
– Max
Jan 22 at 20:16
add a comment |
$begingroup$
It's a programming task, but I'd like to know if there is a way to solve it mathematically.
I need to check $(...((a - b) cdot y - b) cdot y ldots) cdot y geq 0$ if we subtract $b$ and multiply on $y$, $n$ times.
I tried to represent it as
$$a cdot y^n geq b cdot frac{y^n - 1}{y - 1},$$
but I would like to get rid of big numbers such as $y^n$, because these are incomparable in terms of programming if $n leq 1 times 10^{18}$ and $y leq 1 times 10^{2}$. Do you have any idea how can it be represented differently?
inequality
$endgroup$
It's a programming task, but I'd like to know if there is a way to solve it mathematically.
I need to check $(...((a - b) cdot y - b) cdot y ldots) cdot y geq 0$ if we subtract $b$ and multiply on $y$, $n$ times.
I tried to represent it as
$$a cdot y^n geq b cdot frac{y^n - 1}{y - 1},$$
but I would like to get rid of big numbers such as $y^n$, because these are incomparable in terms of programming if $n leq 1 times 10^{18}$ and $y leq 1 times 10^{2}$. Do you have any idea how can it be represented differently?
inequality
inequality
edited Jan 22 at 20:07
EdOverflow
25119
25119
asked Jan 22 at 19:14
Aut RerumAut Rerum
61
61
$begingroup$
Well, if $y>0$, divide both sides by $y^n$ and approximate $1/y^n to 0$…
$endgroup$
– Macavity
Jan 22 at 20:04
$begingroup$
the equation corresponds to a continous (even differentiable) function being less or equal zero. you could try to calculate the boundary (=0) and either by between value or by differential calculus check which side of a point on the boundary is inner/outer of your solution set.
$endgroup$
– Max
Jan 22 at 20:16
add a comment |
$begingroup$
Well, if $y>0$, divide both sides by $y^n$ and approximate $1/y^n to 0$…
$endgroup$
– Macavity
Jan 22 at 20:04
$begingroup$
the equation corresponds to a continous (even differentiable) function being less or equal zero. you could try to calculate the boundary (=0) and either by between value or by differential calculus check which side of a point on the boundary is inner/outer of your solution set.
$endgroup$
– Max
Jan 22 at 20:16
$begingroup$
Well, if $y>0$, divide both sides by $y^n$ and approximate $1/y^n to 0$…
$endgroup$
– Macavity
Jan 22 at 20:04
$begingroup$
Well, if $y>0$, divide both sides by $y^n$ and approximate $1/y^n to 0$…
$endgroup$
– Macavity
Jan 22 at 20:04
$begingroup$
the equation corresponds to a continous (even differentiable) function being less or equal zero. you could try to calculate the boundary (=0) and either by between value or by differential calculus check which side of a point on the boundary is inner/outer of your solution set.
$endgroup$
– Max
Jan 22 at 20:16
$begingroup$
the equation corresponds to a continous (even differentiable) function being less or equal zero. you could try to calculate the boundary (=0) and either by between value or by differential calculus check which side of a point on the boundary is inner/outer of your solution set.
$endgroup$
– Max
Jan 22 at 20:16
add a comment |
1 Answer
1
active
oldest
votes
$begingroup$
Your correct expression is $ay^n ge byfrac {y^{n}-1}{y-1}$ because the first term of the geometric series is $by$ and the common ratio is $y$. Now if $n$ is large and $y gt 1$, $y^n$ will be huge, so we should divide it out and get
$$a ge byfrac {1-y^{-n}}{y-1}$$
If you ignore $y^{-n}$ because it is so small compared to $1$, you get
$$a ge byfrac {1}{y-1}$$
which has no especially large terms.
$endgroup$
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%2f3083578%2fhow-to-solve-a-b-cdot-y-b-cdot-y-ldots-cdot-y-geq-0-if-there%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$
Your correct expression is $ay^n ge byfrac {y^{n}-1}{y-1}$ because the first term of the geometric series is $by$ and the common ratio is $y$. Now if $n$ is large and $y gt 1$, $y^n$ will be huge, so we should divide it out and get
$$a ge byfrac {1-y^{-n}}{y-1}$$
If you ignore $y^{-n}$ because it is so small compared to $1$, you get
$$a ge byfrac {1}{y-1}$$
which has no especially large terms.
$endgroup$
add a comment |
$begingroup$
Your correct expression is $ay^n ge byfrac {y^{n}-1}{y-1}$ because the first term of the geometric series is $by$ and the common ratio is $y$. Now if $n$ is large and $y gt 1$, $y^n$ will be huge, so we should divide it out and get
$$a ge byfrac {1-y^{-n}}{y-1}$$
If you ignore $y^{-n}$ because it is so small compared to $1$, you get
$$a ge byfrac {1}{y-1}$$
which has no especially large terms.
$endgroup$
add a comment |
$begingroup$
Your correct expression is $ay^n ge byfrac {y^{n}-1}{y-1}$ because the first term of the geometric series is $by$ and the common ratio is $y$. Now if $n$ is large and $y gt 1$, $y^n$ will be huge, so we should divide it out and get
$$a ge byfrac {1-y^{-n}}{y-1}$$
If you ignore $y^{-n}$ because it is so small compared to $1$, you get
$$a ge byfrac {1}{y-1}$$
which has no especially large terms.
$endgroup$
Your correct expression is $ay^n ge byfrac {y^{n}-1}{y-1}$ because the first term of the geometric series is $by$ and the common ratio is $y$. Now if $n$ is large and $y gt 1$, $y^n$ will be huge, so we should divide it out and get
$$a ge byfrac {1-y^{-n}}{y-1}$$
If you ignore $y^{-n}$ because it is so small compared to $1$, you get
$$a ge byfrac {1}{y-1}$$
which has no especially large terms.
answered Jan 22 at 20:54
Ross MillikanRoss Millikan
298k23198371
298k23198371
add a comment |
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%2f3083578%2fhow-to-solve-a-b-cdot-y-b-cdot-y-ldots-cdot-y-geq-0-if-there%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
$begingroup$
Well, if $y>0$, divide both sides by $y^n$ and approximate $1/y^n to 0$…
$endgroup$
– Macavity
Jan 22 at 20:04
$begingroup$
the equation corresponds to a continous (even differentiable) function being less or equal zero. you could try to calculate the boundary (=0) and either by between value or by differential calculus check which side of a point on the boundary is inner/outer of your solution set.
$endgroup$
– Max
Jan 22 at 20:16