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}
pstricks pst-plot pstricks-add
add a comment |
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}
pstricks pst-plot pstricks-add
add a comment |
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}
pstricks pst-plot pstricks-add
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}
pstricks pst-plot pstricks-add
pstricks pst-plot pstricks-add
asked 4 mins ago
Artificial Stupidity
4,7391832
4,7391832
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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