求matlab中符号函数的递归运算,给程序!s(t+1)=m*n+3*m*s(t)+n^s(t)m ,n为符号,已知s(1)=m^2求s(100)给出递归调用函数求s(100)或者给出递归调用函数
来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/21 19:45:02
求matlab中符号函数的递归运算,给程序!s(t+1)=m*n+3*m*s(t)+n^s(t)m ,n为符号,已知s(1)=m^2求s(100)给出递归调用函数求s(100)或者给出递归调用函数
求matlab中符号函数的递归运算,给程序!
s(t+1)=m*n+3*m*s(t)+n^s(t)
m ,n为符号,已知s(1)=m^2
求s(100)给出递归调用函数
求s(100)或者给出递归调用函数
求matlab中符号函数的递归运算,给程序!s(t+1)=m*n+3*m*s(t)+n^s(t)m ,n为符号,已知s(1)=m^2求s(100)给出递归调用函数求s(100)或者给出递归调用函数
>> syms m n
s=m^2;
for t=1:9
s=m*n+3*m*s+n^s;
end
s % s(10)已经很复杂了,s(100)肯定更复杂,运行时间很长,要耐心的等待
s =
m*n+3*m*(m*n+3*m*(m*n+3*m*(m*n+3*m*(m*n+3*m*(m*n+3*m*(m*n+3*m*(m*n+3*m*(m*n+3*m^3+n^(m^2))+n^(m*n+3*m^3+n^(m^2)))+n^(m*n+3*m*(m*n+3*m^3+n^(m^2))+n^(m*n+3*m^3+n^(m^2))))+n^(m*n+3*m*(m*n+3*m*(m*n+3*m^3+n^(m^2))+n^(m*n+3*m^3+n^(m^2)))+n^(m*n+3*m*(m*n+3*m^3+n^(m^2))+n^(m*n+3*m^3+n^(m^2)))))+n^(m*n+3*m*(m*n+3*m*(m*n+3*m*(m*n+3*m^3+n^(m^2))+n^(m*n+3*m^3+n^(m^2)))+n^(m*n+3*m*(m*n+3*m^3+n^(m^2))+n^(m*n+3*m^3+n^(m^2))))+n^(m*n+3*m*(m*n+3*m*(m*n+3*m^3+n^(m^2))+n^(m*n+3*m^3+n^(m^2)))+n^(m*n+3*m*(m*n+3*m^3+n^(m^2))+n^(m*n+3*m^3+n^(m^2))))))+n^(m*n+3*m*(m*n+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