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 Kommentar

Del
Del am 18 Mai 2013
I just tried log instead of ln, and it is working

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Symbolic Math Toolbox finden Sie in Hilfe-Center und File Exchange

Gefragt:

Del
am 18 Mai 2013

Community Treasure Hunt

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

Start Hunting!

Translated by