用Octave计算导数基本公式(9)
广告
{{v.name}}
三角函数求导公式(5)
\( ({\rm sec} x )'={\rm sec} x {\rm tan} x \)
程序代码如下
function [text_result, numeric_result] = func26()
    pkg load symbolic;
    x = sym('x');
    question = sec(x);
    lim = diff(question, x);
    text_result = ["\n", disp(lim)];
    numeric_result = eval(lim);
endfunction
计算结果如下
>> [text_result, numeric_result] = func26()
text_result =
    tan(x)⋅sec(x)

numeric_result = (sym) tan(x)⋅sec(x)
友链