Bilal <email@example.com> wrote in message <firstname.lastname@example.org>... > On Wednesday, July 25, 2012 3:31:28 AM UTC+9, Sargondjani wrote: > > > by the way, to me it seems there is a one-to-one mapping between p and tau,which would make it a one variable problem... which shouldnt be to difficult for any solver to analyze. > > > > sorry i didnt mean 1-to1 mapping, but i meant that you can get an explicit expression of p in terms of tau > > Thanks Sargondjani and Torsten, > Finally, I understand it. Actually, the last statement result=tau - 2*(1-2*p) ./ ( (1-2*p)*(W+1)+(p*W).*(1-(2*p).^m)); was a bit confusing for me. I thought function returns 'result' but it is ,in fact, returning 'tau' which is my required answer. > --
well not exactly. the function returns the value for 'return'. and solve tries to set this value to 0. when return = 0 your system is solved... so it is solve that returns 'tau' as the solution to 'return = 0'