How can I be sure that a partial sum is accurate to some number of decimal places?












0












$begingroup$


In a homework assignment, I am asked how many terms of a series are needed to obtain four decimal places (chopped) of accuracy.



There are certain tricks that I am supposed to use, where I can determine an upper limit of the error and select the number of terms to make it small enough. However, it seems to me like there are some special cases where this will not work.



If the number that the series approaches is, for example, $0.123400005$, the error term being less than $10^{-4}$ is not enough to guarantee that the first four digits are correct. If a finite sum gives $0.12339999$, the error is $1.5*10^{-8}$, which is way more accurate than my textbook tells me I need. But, the first four digits are not correct.



So, if I am not given what the number that the series converges to is, how can I be sure that this kind of scenario will not happen?










share|cite|improve this question









$endgroup$








  • 1




    $begingroup$
    The problem may in your use of the word "chopped". If you're just going to truncate digits, then the problem you demonstrate can happen. But usually, "4 decimal places" means "rounded", not "chopped". Both your numbers round to 4 correct decimal places.
    $endgroup$
    – B. Goddard
    Jan 24 at 22:49






  • 1




    $begingroup$
    Further to @B.Goddard's comment: there is a difference between "chopping" the number and "chopping" the series. Generally I think one would "chop" the series, so one is left with a finite computation, then round the value that gives.
    $endgroup$
    – Will R
    Jan 24 at 23:43










  • $begingroup$
    The problem point isn:t $1.234000005$. It's $1.234999999 $ (round down to $1.23$) versus $1.235000000$ (round up to $1.24$).
    $endgroup$
    – timtfj
    Jan 25 at 0:14
















0












$begingroup$


In a homework assignment, I am asked how many terms of a series are needed to obtain four decimal places (chopped) of accuracy.



There are certain tricks that I am supposed to use, where I can determine an upper limit of the error and select the number of terms to make it small enough. However, it seems to me like there are some special cases where this will not work.



If the number that the series approaches is, for example, $0.123400005$, the error term being less than $10^{-4}$ is not enough to guarantee that the first four digits are correct. If a finite sum gives $0.12339999$, the error is $1.5*10^{-8}$, which is way more accurate than my textbook tells me I need. But, the first four digits are not correct.



So, if I am not given what the number that the series converges to is, how can I be sure that this kind of scenario will not happen?










share|cite|improve this question









$endgroup$








  • 1




    $begingroup$
    The problem may in your use of the word "chopped". If you're just going to truncate digits, then the problem you demonstrate can happen. But usually, "4 decimal places" means "rounded", not "chopped". Both your numbers round to 4 correct decimal places.
    $endgroup$
    – B. Goddard
    Jan 24 at 22:49






  • 1




    $begingroup$
    Further to @B.Goddard's comment: there is a difference between "chopping" the number and "chopping" the series. Generally I think one would "chop" the series, so one is left with a finite computation, then round the value that gives.
    $endgroup$
    – Will R
    Jan 24 at 23:43










  • $begingroup$
    The problem point isn:t $1.234000005$. It's $1.234999999 $ (round down to $1.23$) versus $1.235000000$ (round up to $1.24$).
    $endgroup$
    – timtfj
    Jan 25 at 0:14














0












0








0





$begingroup$


In a homework assignment, I am asked how many terms of a series are needed to obtain four decimal places (chopped) of accuracy.



There are certain tricks that I am supposed to use, where I can determine an upper limit of the error and select the number of terms to make it small enough. However, it seems to me like there are some special cases where this will not work.



If the number that the series approaches is, for example, $0.123400005$, the error term being less than $10^{-4}$ is not enough to guarantee that the first four digits are correct. If a finite sum gives $0.12339999$, the error is $1.5*10^{-8}$, which is way more accurate than my textbook tells me I need. But, the first four digits are not correct.



So, if I am not given what the number that the series converges to is, how can I be sure that this kind of scenario will not happen?










share|cite|improve this question









$endgroup$




In a homework assignment, I am asked how many terms of a series are needed to obtain four decimal places (chopped) of accuracy.



There are certain tricks that I am supposed to use, where I can determine an upper limit of the error and select the number of terms to make it small enough. However, it seems to me like there are some special cases where this will not work.



If the number that the series approaches is, for example, $0.123400005$, the error term being less than $10^{-4}$ is not enough to guarantee that the first four digits are correct. If a finite sum gives $0.12339999$, the error is $1.5*10^{-8}$, which is way more accurate than my textbook tells me I need. But, the first four digits are not correct.



So, if I am not given what the number that the series converges to is, how can I be sure that this kind of scenario will not happen?







sequences-and-series truncation-error






share|cite|improve this question













share|cite|improve this question











share|cite|improve this question




share|cite|improve this question










asked Jan 24 at 22:44









PolygonPolygon

628211




628211








  • 1




    $begingroup$
    The problem may in your use of the word "chopped". If you're just going to truncate digits, then the problem you demonstrate can happen. But usually, "4 decimal places" means "rounded", not "chopped". Both your numbers round to 4 correct decimal places.
    $endgroup$
    – B. Goddard
    Jan 24 at 22:49






  • 1




    $begingroup$
    Further to @B.Goddard's comment: there is a difference between "chopping" the number and "chopping" the series. Generally I think one would "chop" the series, so one is left with a finite computation, then round the value that gives.
    $endgroup$
    – Will R
    Jan 24 at 23:43










  • $begingroup$
    The problem point isn:t $1.234000005$. It's $1.234999999 $ (round down to $1.23$) versus $1.235000000$ (round up to $1.24$).
    $endgroup$
    – timtfj
    Jan 25 at 0:14














  • 1




    $begingroup$
    The problem may in your use of the word "chopped". If you're just going to truncate digits, then the problem you demonstrate can happen. But usually, "4 decimal places" means "rounded", not "chopped". Both your numbers round to 4 correct decimal places.
    $endgroup$
    – B. Goddard
    Jan 24 at 22:49






  • 1




    $begingroup$
    Further to @B.Goddard's comment: there is a difference between "chopping" the number and "chopping" the series. Generally I think one would "chop" the series, so one is left with a finite computation, then round the value that gives.
    $endgroup$
    – Will R
    Jan 24 at 23:43










  • $begingroup$
    The problem point isn:t $1.234000005$. It's $1.234999999 $ (round down to $1.23$) versus $1.235000000$ (round up to $1.24$).
    $endgroup$
    – timtfj
    Jan 25 at 0:14








1




1




$begingroup$
The problem may in your use of the word "chopped". If you're just going to truncate digits, then the problem you demonstrate can happen. But usually, "4 decimal places" means "rounded", not "chopped". Both your numbers round to 4 correct decimal places.
$endgroup$
– B. Goddard
Jan 24 at 22:49




$begingroup$
The problem may in your use of the word "chopped". If you're just going to truncate digits, then the problem you demonstrate can happen. But usually, "4 decimal places" means "rounded", not "chopped". Both your numbers round to 4 correct decimal places.
$endgroup$
– B. Goddard
Jan 24 at 22:49




1




1




$begingroup$
Further to @B.Goddard's comment: there is a difference between "chopping" the number and "chopping" the series. Generally I think one would "chop" the series, so one is left with a finite computation, then round the value that gives.
$endgroup$
– Will R
Jan 24 at 23:43




$begingroup$
Further to @B.Goddard's comment: there is a difference between "chopping" the number and "chopping" the series. Generally I think one would "chop" the series, so one is left with a finite computation, then round the value that gives.
$endgroup$
– Will R
Jan 24 at 23:43












$begingroup$
The problem point isn:t $1.234000005$. It's $1.234999999 $ (round down to $1.23$) versus $1.235000000$ (round up to $1.24$).
$endgroup$
– timtfj
Jan 25 at 0:14




$begingroup$
The problem point isn:t $1.234000005$. It's $1.234999999 $ (round down to $1.23$) versus $1.235000000$ (round up to $1.24$).
$endgroup$
– timtfj
Jan 25 at 0:14










1 Answer
1






active

oldest

votes


















2












$begingroup$

I think the way to handle this is to treat "accurate to $n$ decimal places" as meaning "differing from the correct value by no more than $0.5 × 10^{-n}$", or "having an error of no more than $5$ in the $n+1$th decimal place".



Otherwise there will be tuncation/rounding issues at certain points. For example, consider $1.234999999$ and $1.235000000$. If we round them to two decimal places, we get 1.23 and 1.24. If we truncate them to three decimal places, we get $1.234$ and $1.235$.



So you're right that in some instances, getting the specified number of correct digits can need much greater precision in the calculation. I don't see that you can guarantee it doesn't happen.



So I say the correct course of action is to define a maximum permitted error, and say you're using that as the criterion.






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%2f3086461%2fhow-can-i-be-sure-that-a-partial-sum-is-accurate-to-some-number-of-decimal-place%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









    2












    $begingroup$

    I think the way to handle this is to treat "accurate to $n$ decimal places" as meaning "differing from the correct value by no more than $0.5 × 10^{-n}$", or "having an error of no more than $5$ in the $n+1$th decimal place".



    Otherwise there will be tuncation/rounding issues at certain points. For example, consider $1.234999999$ and $1.235000000$. If we round them to two decimal places, we get 1.23 and 1.24. If we truncate them to three decimal places, we get $1.234$ and $1.235$.



    So you're right that in some instances, getting the specified number of correct digits can need much greater precision in the calculation. I don't see that you can guarantee it doesn't happen.



    So I say the correct course of action is to define a maximum permitted error, and say you're using that as the criterion.






    share|cite|improve this answer











    $endgroup$


















      2












      $begingroup$

      I think the way to handle this is to treat "accurate to $n$ decimal places" as meaning "differing from the correct value by no more than $0.5 × 10^{-n}$", or "having an error of no more than $5$ in the $n+1$th decimal place".



      Otherwise there will be tuncation/rounding issues at certain points. For example, consider $1.234999999$ and $1.235000000$. If we round them to two decimal places, we get 1.23 and 1.24. If we truncate them to three decimal places, we get $1.234$ and $1.235$.



      So you're right that in some instances, getting the specified number of correct digits can need much greater precision in the calculation. I don't see that you can guarantee it doesn't happen.



      So I say the correct course of action is to define a maximum permitted error, and say you're using that as the criterion.






      share|cite|improve this answer











      $endgroup$
















        2












        2








        2





        $begingroup$

        I think the way to handle this is to treat "accurate to $n$ decimal places" as meaning "differing from the correct value by no more than $0.5 × 10^{-n}$", or "having an error of no more than $5$ in the $n+1$th decimal place".



        Otherwise there will be tuncation/rounding issues at certain points. For example, consider $1.234999999$ and $1.235000000$. If we round them to two decimal places, we get 1.23 and 1.24. If we truncate them to three decimal places, we get $1.234$ and $1.235$.



        So you're right that in some instances, getting the specified number of correct digits can need much greater precision in the calculation. I don't see that you can guarantee it doesn't happen.



        So I say the correct course of action is to define a maximum permitted error, and say you're using that as the criterion.






        share|cite|improve this answer











        $endgroup$



        I think the way to handle this is to treat "accurate to $n$ decimal places" as meaning "differing from the correct value by no more than $0.5 × 10^{-n}$", or "having an error of no more than $5$ in the $n+1$th decimal place".



        Otherwise there will be tuncation/rounding issues at certain points. For example, consider $1.234999999$ and $1.235000000$. If we round them to two decimal places, we get 1.23 and 1.24. If we truncate them to three decimal places, we get $1.234$ and $1.235$.



        So you're right that in some instances, getting the specified number of correct digits can need much greater precision in the calculation. I don't see that you can guarantee it doesn't happen.



        So I say the correct course of action is to define a maximum permitted error, and say you're using that as the criterion.







        share|cite|improve this answer














        share|cite|improve this answer



        share|cite|improve this answer








        edited Jan 25 at 0:56

























        answered Jan 25 at 0:45









        timtfjtimtfj

        2,468420




        2,468420






























            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%2f3086461%2fhow-can-i-be-sure-that-a-partial-sum-is-accurate-to-some-number-of-decimal-place%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

            MongoDB - Not Authorized To Execute Command

            How to fix TextFormField cause rebuild widget in Flutter

            in spring boot 2.1 many test slices are not allowed anymore due to multiple @BootstrapWith