Main Page | Report this Page
 
   
Science Forum Index  »  Math - Symbolic Forum  »  maxima newbie usage question
Page 1 of 1    
Author Message
Jim
Posted: Mon Mar 31, 2008 10:01 am
Guest
I am attempting to do partial derivatives of a function in wxMaxima.
The function is:
e(x,y,ybar,m,s):=sum(ybar[l]*product(exp(-1/2*(x-m[k])^2/s[k]^2),k,
1,p),l,1,M)/sum(product(exp(-1/2*(x-m[k])^2/s[k]^2),k,1,p),l,1,M)-y;

I tried
diff(e(x,y,ybar,m,s), m[k])
and many variations with no luck.

I also looked through the documentation with no luck.
rjf
Posted: Wed Apr 02, 2008 5:04 am
Guest
On Mar 31, 1:01 pm, Jim <james.n.rec...@lmco.com> wrote:
Quote:
I am attempting to do partial derivatives of a function in wxMaxima.
The function is:
e(x,y,ybar,m,s):=sum(ybar[l]*product(exp(-1/2*(x-m[k])^2/s[k]^2),k,
1,p),l,1,M)/sum(product(exp(-1/2*(x-m[k])^2/s[k]^2),k,1,p),l,1,M)-y;

I tried
diff(e(x,y,ybar,m,s), m[k])
and many variations with no luck.

I also looked through the documentation with no luck.

1. try simplifying your problem.
2. try stating what response you got.
3. try stating what response you hoped to get.

It appears that you believe that m[k] occurs somewhere in sum(m[k],k,
1,p).
m[k] does not, because k is a logically bound variable inside the sum.

to illustrate, sum(m[k],k,1,3) = m[1]+m[2]+m[3]. No k in there at
all.
If I have misunderstood your problem, restate it according to 1,2,3
above.
 
Page 1 of 1       All times are GMT - 5 Hours
The time now is Mon Sep 08, 2008 1:40 am