如何用matlab求函数的原函数?

如题,给输入f(x)=1/x如何用matlab求出F(x)=lnx?
请给出代码吧,谢谢!!!!!!

第1个回答  2009-12-08
>> syms x
>> f1=1/x;
>> int(f1,x)

ans =

log(x)本回答被提问者和网友采纳