exp and log not being evaluated

I have a function in matlab that is defined as :
syms y b
f(b,y) = (exp(b)^y)/(exp(b))
I have a variable bucket that stores repeated multiplication of this function. Everytime, the function is evaluated at a different value of y, equal to the loop counter.
for counter = 1:10
bucket = bucket * f(counter,b)
newFunction = log(bucket) %thus the new function has only one parameter b
Then, based on certain manipulations, i find the value of b that should be used in the bucket. So, I do
subs(newFunction,b,foundValForB)
However, the answer has terms like exp(constant). Why doesnt matlab evaluate the exp terms?

답변 (0개)

카테고리

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

태그

질문:

AM
2014년 11월 10일

편집:

AM
2014년 11월 10일

Community Treasure Hunt

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

Start Hunting!

Translated by