用Octave求不定积分基本公式(1)
广告
{{v.name}}
不定积分基本公式(1) \(\int{k}{\rm d}x=kx+C\)
求\(\int{1}{\rm d}x\).
程序代码如下
function [text_result, numeric_result] = func55()
    pkg load symbolic;
    x = sym('x');
    f = int(1, x);
    text_result = ["\n", disp(f)];
    numeric_result = eval(f);
endfunction
结果如下
>> [text_result, numeric_result] = func55()
text_result =
    x

numeric_result = (sym) x
友链