Using ln function with symbolic variables

조회 수: 3 (최근 30일)
Del
Del 2013년 5월 18일
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개)

카테고리

Help CenterFile Exchange에서 Assumptions에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by