문제

I want to take the derivative the a function that includes the number e (exp(1)). How can I solve symbolically using e (i.e., not decimal numbers). For example:

syms x
e=exp(1)
diff(e^-x)
도움이 되었습니까?

해결책 2

What if you do

 syms x;
 e=exp(sym(1));

다른 팁

It's rarely a good idea to assign predefined constants to variables when using the symbolic toolbox:

diff(exp(-x))
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top