matlab : R2018a 64bit
OS : Windows 10 x64
typesetting : Markdown
blog : my.oschina.net/zhichengjiu
gitee : gitee.com/zhichengjiu
code
clear
clc
syms x;
f=sin(x)
g=x*x
h=compose(g,f) % 函数组合,将f作为g的自变量
i=diff(h)
result
f =
sin(x)
g =
x^2
h =
sin(x)^2
i =
2*cos(x)*sin(x)
>>
resource
- [文档] ww2.mathworks.cn/help/ma