diff



Stavros Macrakis pisze:
> On Mon, May 26, 2008 at 5:04 PM, Adam Majewski <adammaj1 at o2.pl> wrote:
>> 1. compute 1 derivative with respect to z of function  F(n,z,c) defined
>> by recurence:
>> f(z,c):=z*z+c$
>> F(n, z, c) :=
>>        if n=1 then f(z,c)
>>         else f(F(n-1, c, z),c)$
>> diff(F(n,z,c),z);
> 
>> I can do first task but second not.
> 
> In what sense can you do this task?  Do you mean for a given n, e.g.
> diff(F(4,z,c),z)? I don't see how you could get Maxima to do it with
> symbolic n.  In fact, Maxima (unsurprisingly) gets into an infinite
> recursion when trying to evaluate F(n,z,c) -- nothing to do with the
> diff.
> 
>             -s

(Thx for post)


I will show you on examples:
n:1;
m(1,z,c):=2*z;

n:2;
m(2,z,c):=4*z^3+4*c*z;

n:3;
m(3,z,c):=8*z^7+24*c*z^5+24*c^2*z^3+8*c*z^3+8*c^3*z+8*c^2*z;

Above results are from:
for n thru 6 do block(display(expand(m(n,z,c))));

-----------------------
I want to use it as a function, it means for given  values(example):
z1:1;
c1:2;

compute:
m(3,z1,c1);


Adam