Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
函数“求解”适用于多项式,但当我输入时
syms x solve ('x*ln(x)=3', x)
我得到 3/lambertw (0,3)
我知道我可以向后工作,但变量 x 在一个方程中出现了 4 次,这使得它相当不方便。感谢帮助
如果您想要一个数字解决方案,则无需先走符号路线:
x*ln(x)-3=0您可以使用fzero(从零开始足够远以避免负数的对数)简单地求解方程:
x*ln(x)-3=0
fzero
x = fzero(@(x)x*log(x)-3, 10)