How to evaluate df(x)/dx at x=c rather than df(c)/dx?











up vote
0
down vote

favorite












The following macros define f[#1] and its derivative fp[#1].



deff[#1]{((#1)*(#1-1)*(#1-2)*(#1-3)*(#1-5)/10+1.5)}
edeffp[#1]{Derive(1,f[#1])}


Question



How to evaluate fp[0.8] that means the value of df/dx at x=0.8 rather than df[0.8]/dx that always equals to zero?



MWE



documentclass[pstricks]{standalone}
usepackage{pstricks-add}

deff[#1]{((#1)*(#1-1)*(#1-2)*(#1-3)*(#1-5)/10+1.5)}
edeffp[#1]{Derive(1,f[#1])}
edefg[#1]#2{(fp[#2]*((#1)-(#2))+f[#2])}

psset{algebraic,plotpoints=200,unit=2cm}
begin{document}
begin{pspicture}(-.75,-2)(5.75,3)
psplot[linecolor=red]{-.25}{5}{f[x]}
psplot[linecolor=green]{-.25}{5}{g[x]{.8}}
end{pspicture}
end{document}


enter image description here










share|improve this question


























    up vote
    0
    down vote

    favorite












    The following macros define f[#1] and its derivative fp[#1].



    deff[#1]{((#1)*(#1-1)*(#1-2)*(#1-3)*(#1-5)/10+1.5)}
    edeffp[#1]{Derive(1,f[#1])}


    Question



    How to evaluate fp[0.8] that means the value of df/dx at x=0.8 rather than df[0.8]/dx that always equals to zero?



    MWE



    documentclass[pstricks]{standalone}
    usepackage{pstricks-add}

    deff[#1]{((#1)*(#1-1)*(#1-2)*(#1-3)*(#1-5)/10+1.5)}
    edeffp[#1]{Derive(1,f[#1])}
    edefg[#1]#2{(fp[#2]*((#1)-(#2))+f[#2])}

    psset{algebraic,plotpoints=200,unit=2cm}
    begin{document}
    begin{pspicture}(-.75,-2)(5.75,3)
    psplot[linecolor=red]{-.25}{5}{f[x]}
    psplot[linecolor=green]{-.25}{5}{g[x]{.8}}
    end{pspicture}
    end{document}


    enter image description here










    share|improve this question
























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      The following macros define f[#1] and its derivative fp[#1].



      deff[#1]{((#1)*(#1-1)*(#1-2)*(#1-3)*(#1-5)/10+1.5)}
      edeffp[#1]{Derive(1,f[#1])}


      Question



      How to evaluate fp[0.8] that means the value of df/dx at x=0.8 rather than df[0.8]/dx that always equals to zero?



      MWE



      documentclass[pstricks]{standalone}
      usepackage{pstricks-add}

      deff[#1]{((#1)*(#1-1)*(#1-2)*(#1-3)*(#1-5)/10+1.5)}
      edeffp[#1]{Derive(1,f[#1])}
      edefg[#1]#2{(fp[#2]*((#1)-(#2))+f[#2])}

      psset{algebraic,plotpoints=200,unit=2cm}
      begin{document}
      begin{pspicture}(-.75,-2)(5.75,3)
      psplot[linecolor=red]{-.25}{5}{f[x]}
      psplot[linecolor=green]{-.25}{5}{g[x]{.8}}
      end{pspicture}
      end{document}


      enter image description here










      share|improve this question













      The following macros define f[#1] and its derivative fp[#1].



      deff[#1]{((#1)*(#1-1)*(#1-2)*(#1-3)*(#1-5)/10+1.5)}
      edeffp[#1]{Derive(1,f[#1])}


      Question



      How to evaluate fp[0.8] that means the value of df/dx at x=0.8 rather than df[0.8]/dx that always equals to zero?



      MWE



      documentclass[pstricks]{standalone}
      usepackage{pstricks-add}

      deff[#1]{((#1)*(#1-1)*(#1-2)*(#1-3)*(#1-5)/10+1.5)}
      edeffp[#1]{Derive(1,f[#1])}
      edefg[#1]#2{(fp[#2]*((#1)-(#2))+f[#2])}

      psset{algebraic,plotpoints=200,unit=2cm}
      begin{document}
      begin{pspicture}(-.75,-2)(5.75,3)
      psplot[linecolor=red]{-.25}{5}{f[x]}
      psplot[linecolor=green]{-.25}{5}{g[x]{.8}}
      end{pspicture}
      end{document}


      enter image description here







      pstricks pst-plot pstricks-add






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 22 hours ago









      Artificial Stupidity

      4,8191832




      4,8191832



























          active

          oldest

          votes











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "85"
          };
          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: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          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
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














           

          draft saved


          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f461653%2fhow-to-evaluate-dfx-dx-at-x-c-rather-than-dfc-dx%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown






























          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















           

          draft saved


          draft discarded



















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f461653%2fhow-to-evaluate-dfx-dx-at-x-c-rather-than-dfc-dx%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

          Accessing regular linux commands in Huawei's Dopra Linux

          Can't connect RFCOMM socket: Host is down

          Kernel panic - not syncing: Fatal Exception in Interrupt