Using ln function with symbolic variables

I am using symbolic variables, and I would like to use an ln function. But I keep getting an error. Is it possible at all to involve a logarithmic function with symbolic variables?
I have
syms x1 x2
f=ln(x1+x2);
and I am gettingthe error: Undefined function 'ln' for input arguments of type 'sym'.

댓글 수: 1

Del
Del 2013년 5월 18일
I just tried log instead of ln, and it is working

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

도움말 센터File Exchange에서 Symbolic Math Toolbox에 대해 자세히 알아보기

질문:

Del
2013년 5월 18일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by