用Octave计算导数基本公式(1)
广告
{{v.name}}
\( (C)'=0 \)
程序代码如下
function [text_result, numeric_result] = func18()
    pkg load symbolic;
    x = sym('x');
    C = sym('C');
    question = C;
    lim = diff(question, x);
    text_result = ["\n", disp(lim)];
    numeric_result = eval(lim);
endfunction
计算结果如下
>> [text_result, numeric_result] = func18()
text_result =
    0

numeric_result = 0
友链