怎么用matlab解指数方程,
问题描述:
怎么用matlab解指数方程,
用matlab写的这行程序 x=solve('300*1.08^(-3)+6*[1.08^(-1)+1.08^(-2)+1.08^(-3)]-x=0','x');
出现这个错误:Warning:Explicit solution could not be found.是 哪里错了
答
错误在于,你错用了括号,不能使用中括号和大括号.
>> x=solve('300*1.08^(-3)+6*(1.08^(-1)+1.08^(-2)+1.08^(-3))-x=0','x');
>> x
x =
253.61225422953818015546410608139