Rewrite a symbolic function in terms of a defined function
Show older comments
How can I rewrite a symbolic expression or function in terms of another defined function? Specifically, I want to rewrite df in terms of f:
syms z
f=1/(1+exp(-z))
df=diff(f)
The result should be
f(1-f)
1 Comment
Amin Yahyaabadi
on 3 Nov 2018
Answers (1)
madhan ravi
on 3 Nov 2018
Edited: madhan ravi
on 3 Nov 2018
syms z
f=1/(1+exp(-z))
df=diff(f)
isolate(df==1,f)
4 Comments
madhan ravi
on 3 Nov 2018
madhan ravi
on 3 Nov 2018
Edited: madhan ravi
on 3 Nov 2018
if something is not clear let know with an example to get a clear picture
Amin Yahyaabadi
on 3 Nov 2018
madhan ravi
on 3 Nov 2018
As far as I know ,I don't think there is a command to do that
Categories
Find more on Symbolic Math Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!