Representing rectangular function using divided differences.












0












$begingroup$


I was reading the chapter 9 of A practical guide to splines (de Boor, C.) were the autor defines a B-spline of order 1, basically a rectangular function i.e. a function taking value $1$ if the variable $x$ is contained in the interval $(t_j, t_{j+1})$ and $0$ elsewhere using divided differences as follows:



$B_1(x)=(t_{j+1}-t_j)[t_j,t_{j+1}](cdot -x)^0_+$



where $[t_j,...,t_{j+k}]f$ indicates the k-th divided difference of the function $f$ and $(cdot)_+$ indicates the positive part of the argument (if the argument is negative then the function returns as result $0$).



This definition is okey to me, basically we have that $B_1(x)=1$ if $t_j<x<t_{j+1}$.



Then the autor says that another way to write it following the definition of divided differences is:



$B_1(x)=(cdot-t_{j+1})_+^0-(cdot-t_{j})_+^0$



Following this definition I obtain that, assuming (as the autor makes) $t_j<t_{j+1}$, the first term will be $1$ if $x>t_{j+1}$ and given our assumption also the second term will be $1$ leading to a result of $0$.
If instead $t_j<x<t_{j+1}$ the first term will be $0$ and the second term will be $1$, but this is a rectangular function with a minus in front.



Am I missing something?










share|cite|improve this question











$endgroup$

















    0












    $begingroup$


    I was reading the chapter 9 of A practical guide to splines (de Boor, C.) were the autor defines a B-spline of order 1, basically a rectangular function i.e. a function taking value $1$ if the variable $x$ is contained in the interval $(t_j, t_{j+1})$ and $0$ elsewhere using divided differences as follows:



    $B_1(x)=(t_{j+1}-t_j)[t_j,t_{j+1}](cdot -x)^0_+$



    where $[t_j,...,t_{j+k}]f$ indicates the k-th divided difference of the function $f$ and $(cdot)_+$ indicates the positive part of the argument (if the argument is negative then the function returns as result $0$).



    This definition is okey to me, basically we have that $B_1(x)=1$ if $t_j<x<t_{j+1}$.



    Then the autor says that another way to write it following the definition of divided differences is:



    $B_1(x)=(cdot-t_{j+1})_+^0-(cdot-t_{j})_+^0$



    Following this definition I obtain that, assuming (as the autor makes) $t_j<t_{j+1}$, the first term will be $1$ if $x>t_{j+1}$ and given our assumption also the second term will be $1$ leading to a result of $0$.
    If instead $t_j<x<t_{j+1}$ the first term will be $0$ and the second term will be $1$, but this is a rectangular function with a minus in front.



    Am I missing something?










    share|cite|improve this question











    $endgroup$















      0












      0








      0





      $begingroup$


      I was reading the chapter 9 of A practical guide to splines (de Boor, C.) were the autor defines a B-spline of order 1, basically a rectangular function i.e. a function taking value $1$ if the variable $x$ is contained in the interval $(t_j, t_{j+1})$ and $0$ elsewhere using divided differences as follows:



      $B_1(x)=(t_{j+1}-t_j)[t_j,t_{j+1}](cdot -x)^0_+$



      where $[t_j,...,t_{j+k}]f$ indicates the k-th divided difference of the function $f$ and $(cdot)_+$ indicates the positive part of the argument (if the argument is negative then the function returns as result $0$).



      This definition is okey to me, basically we have that $B_1(x)=1$ if $t_j<x<t_{j+1}$.



      Then the autor says that another way to write it following the definition of divided differences is:



      $B_1(x)=(cdot-t_{j+1})_+^0-(cdot-t_{j})_+^0$



      Following this definition I obtain that, assuming (as the autor makes) $t_j<t_{j+1}$, the first term will be $1$ if $x>t_{j+1}$ and given our assumption also the second term will be $1$ leading to a result of $0$.
      If instead $t_j<x<t_{j+1}$ the first term will be $0$ and the second term will be $1$, but this is a rectangular function with a minus in front.



      Am I missing something?










      share|cite|improve this question











      $endgroup$




      I was reading the chapter 9 of A practical guide to splines (de Boor, C.) were the autor defines a B-spline of order 1, basically a rectangular function i.e. a function taking value $1$ if the variable $x$ is contained in the interval $(t_j, t_{j+1})$ and $0$ elsewhere using divided differences as follows:



      $B_1(x)=(t_{j+1}-t_j)[t_j,t_{j+1}](cdot -x)^0_+$



      where $[t_j,...,t_{j+k}]f$ indicates the k-th divided difference of the function $f$ and $(cdot)_+$ indicates the positive part of the argument (if the argument is negative then the function returns as result $0$).



      This definition is okey to me, basically we have that $B_1(x)=1$ if $t_j<x<t_{j+1}$.



      Then the autor says that another way to write it following the definition of divided differences is:



      $B_1(x)=(cdot-t_{j+1})_+^0-(cdot-t_{j})_+^0$



      Following this definition I obtain that, assuming (as the autor makes) $t_j<t_{j+1}$, the first term will be $1$ if $x>t_{j+1}$ and given our assumption also the second term will be $1$ leading to a result of $0$.
      If instead $t_j<x<t_{j+1}$ the first term will be $0$ and the second term will be $1$, but this is a rectangular function with a minus in front.



      Am I missing something?







      recurrence-relations spline






      share|cite|improve this question















      share|cite|improve this question













      share|cite|improve this question




      share|cite|improve this question








      edited Dec 6 '18 at 16:17







      Ramiro Scorolli

















      asked Dec 6 '18 at 16:11









      Ramiro ScorolliRamiro Scorolli

      655113




      655113






















          0






          active

          oldest

          votes











          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%2f3028690%2frepresenting-rectangular-function-using-divided-differences%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          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%2f3028690%2frepresenting-rectangular-function-using-divided-differences%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

          Berounka

          Sphinx de Gizeh

          Fiat S.p.A.