How to solve $(…((a - b) cdot y - b) cdot y ldots) cdot y geq 0$ if there are $n$ subtractions and...












1












$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?










share|cite|improve this question











$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
















1












$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?










share|cite|improve this question











$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














1












1








1





$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?










share|cite|improve this question











$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






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








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


















  • $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










1 Answer
1






active

oldest

votes


















1












$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.






share|cite|improve this answer









$endgroup$













    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
    });


    }
    });














    draft saved

    draft discarded


















    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









    1












    $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.






    share|cite|improve this answer









    $endgroup$


















      1












      $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.






      share|cite|improve this answer









      $endgroup$
















        1












        1








        1





        $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.






        share|cite|improve this answer









        $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.







        share|cite|improve this answer












        share|cite|improve this answer



        share|cite|improve this answer










        answered Jan 22 at 20:54









        Ross MillikanRoss Millikan

        298k23198371




        298k23198371






























            draft saved

            draft discarded




















































            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.




            draft saved


            draft discarded














            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





















































            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

            Mario Kart Wii

            What does “Dominus providebit” mean?

            Antonio Litta Visconti Arese