用Octave计算不定式极限(6)
广告
{{v.name}}
其他不定式(3) \( \infty ^0 \)型
计算\( \displaystyle\lim_{x \to 0^+ } \left ( \frac{1}{ \sqrt{x} } \right )^{ {\rm tan}x} \)
程序代码如下
function [text_result, numeric_result] = func12(x_value)
    pkg load symbolic;
    x = sym('x');
    unit_1 = 1 / sqrt(x);
    unit_2 = tan(x);
    question = power(unit_1, unit_2);
    lim = limit(question, x, x_value);
    text_result = ["\n", disp(lim)];
    numeric_result = eval(lim);
endfunction
令\(x \to 0^+ \),计算结果如下
>> [text_result, numeric_result] = func12(eps)
warning: passing floating-point values to sym is dangerous, see "help sym"
warning: called from
    double_to_sym_heuristic at line 50 column 7
    sym at line 384 column 13
    limit at line 92 column 5
    func12 at line 7 column 9

text_result =
     26⋅tan(1/4503599627370496)
    2

numeric_result = 1.0000
友链