Prove that in a floating point system with truncation the number of significant digits is $n$.











up vote
0
down vote

favorite












I was requested to prove that in a floating point system $text{F}(beta, n, m, M)$ with truncation the number of significant digits is $n$. (where $n$ is the number of digits and $m < text{exponent} < M$.



I tried using the definition that the number of significant digits is the maximum natural $d$ for which the relative error of $x$ is $leqbeta^{1-d}$, and so:



$$ x = b_1b_2ldots b_ncdotbeta^e,$$



$$ fl(x) = b_1b_2ldots b_{n-1}cdotbeta^e.$$



Therefore:



$$dfrac{|x-fl(x)|}{|x|} = dfrac{|b_1b_2ldots b_ncdotbeta^e - b_1b_2ldots b_{n-1}cdotbeta^e}{|b_1b_2ldots b_ncdotbeta^e|} = dfrac{b_n}{b_1b_2ldots b_n} leq beta^{1-d}.$$



And I'm stuck here because I need to prove $d = n$ but I have no idea how to advance. Any suggestions?



Thanks.










share|cite|improve this question




























    up vote
    0
    down vote

    favorite












    I was requested to prove that in a floating point system $text{F}(beta, n, m, M)$ with truncation the number of significant digits is $n$. (where $n$ is the number of digits and $m < text{exponent} < M$.



    I tried using the definition that the number of significant digits is the maximum natural $d$ for which the relative error of $x$ is $leqbeta^{1-d}$, and so:



    $$ x = b_1b_2ldots b_ncdotbeta^e,$$



    $$ fl(x) = b_1b_2ldots b_{n-1}cdotbeta^e.$$



    Therefore:



    $$dfrac{|x-fl(x)|}{|x|} = dfrac{|b_1b_2ldots b_ncdotbeta^e - b_1b_2ldots b_{n-1}cdotbeta^e}{|b_1b_2ldots b_ncdotbeta^e|} = dfrac{b_n}{b_1b_2ldots b_n} leq beta^{1-d}.$$



    And I'm stuck here because I need to prove $d = n$ but I have no idea how to advance. Any suggestions?



    Thanks.










    share|cite|improve this question


























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I was requested to prove that in a floating point system $text{F}(beta, n, m, M)$ with truncation the number of significant digits is $n$. (where $n$ is the number of digits and $m < text{exponent} < M$.



      I tried using the definition that the number of significant digits is the maximum natural $d$ for which the relative error of $x$ is $leqbeta^{1-d}$, and so:



      $$ x = b_1b_2ldots b_ncdotbeta^e,$$



      $$ fl(x) = b_1b_2ldots b_{n-1}cdotbeta^e.$$



      Therefore:



      $$dfrac{|x-fl(x)|}{|x|} = dfrac{|b_1b_2ldots b_ncdotbeta^e - b_1b_2ldots b_{n-1}cdotbeta^e}{|b_1b_2ldots b_ncdotbeta^e|} = dfrac{b_n}{b_1b_2ldots b_n} leq beta^{1-d}.$$



      And I'm stuck here because I need to prove $d = n$ but I have no idea how to advance. Any suggestions?



      Thanks.










      share|cite|improve this question















      I was requested to prove that in a floating point system $text{F}(beta, n, m, M)$ with truncation the number of significant digits is $n$. (where $n$ is the number of digits and $m < text{exponent} < M$.



      I tried using the definition that the number of significant digits is the maximum natural $d$ for which the relative error of $x$ is $leqbeta^{1-d}$, and so:



      $$ x = b_1b_2ldots b_ncdotbeta^e,$$



      $$ fl(x) = b_1b_2ldots b_{n-1}cdotbeta^e.$$



      Therefore:



      $$dfrac{|x-fl(x)|}{|x|} = dfrac{|b_1b_2ldots b_ncdotbeta^e - b_1b_2ldots b_{n-1}cdotbeta^e}{|b_1b_2ldots b_ncdotbeta^e|} = dfrac{b_n}{b_1b_2ldots b_n} leq beta^{1-d}.$$



      And I'm stuck here because I need to prove $d = n$ but I have no idea how to advance. Any suggestions?



      Thanks.







      numerical-methods floating-point significant-figures






      share|cite|improve this question















      share|cite|improve this question













      share|cite|improve this question




      share|cite|improve this question








      edited Nov 13 at 14:45









      Snookie

      2558




      2558










      asked Nov 13 at 11:13









      Barak B

      224




      224






















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote













          Figured out the solution:



          $b_n <= beta^{1-n}$ and $b_1b_2…b_n$ is a normalized number therefore bounded by $beta$



          so we get: $dfrac{b_n}{b_1b_2…b_n} <= beta^{1-n} =>$ the number of significant digits is $n$.






          share|cite|improve this answer





















            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',
            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%2f2996607%2fprove-that-in-a-floating-point-system-with-truncation-the-number-of-significant%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








            up vote
            0
            down vote













            Figured out the solution:



            $b_n <= beta^{1-n}$ and $b_1b_2…b_n$ is a normalized number therefore bounded by $beta$



            so we get: $dfrac{b_n}{b_1b_2…b_n} <= beta^{1-n} =>$ the number of significant digits is $n$.






            share|cite|improve this answer

























              up vote
              0
              down vote













              Figured out the solution:



              $b_n <= beta^{1-n}$ and $b_1b_2…b_n$ is a normalized number therefore bounded by $beta$



              so we get: $dfrac{b_n}{b_1b_2…b_n} <= beta^{1-n} =>$ the number of significant digits is $n$.






              share|cite|improve this answer























                up vote
                0
                down vote










                up vote
                0
                down vote









                Figured out the solution:



                $b_n <= beta^{1-n}$ and $b_1b_2…b_n$ is a normalized number therefore bounded by $beta$



                so we get: $dfrac{b_n}{b_1b_2…b_n} <= beta^{1-n} =>$ the number of significant digits is $n$.






                share|cite|improve this answer












                Figured out the solution:



                $b_n <= beta^{1-n}$ and $b_1b_2…b_n$ is a normalized number therefore bounded by $beta$



                so we get: $dfrac{b_n}{b_1b_2…b_n} <= beta^{1-n} =>$ the number of significant digits is $n$.







                share|cite|improve this answer












                share|cite|improve this answer



                share|cite|improve this answer










                answered Nov 13 at 19:02









                Barak B

                224




                224






























                     

                    draft saved


                    draft discarded



















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2996607%2fprove-that-in-a-floating-point-system-with-truncation-the-number-of-significant%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

                    How do I know what Microsoft account the skydrive app is syncing to?

                    When does type information flow backwards in C++?

                    Grease: Live!