Cody

10 Reputation

4 Badges

12 years, 314 days

MaplePrimes Activity


These are replies submitted by Cody

I have this given to me in my notes, is there a way to change it to work for the same question?

 

>PSeries:=proc(cfn,var,minreg::integer,maxreg::interger)

  local r,imaxreg,iminreg;

 

    if minreg>maxreg then

      imaxreg:=minreg;

      iminreg:=maxreg;

    else

      imaxreg:=maxreg;

      iminreg:=minreg;

    end if;

 

     sum(cfn(r)*var^r,r=iminreg..imaxreg);

    end proc:

>PSeries(i->1/i!,x,2,0);

       1+x+(1/2)*x^2

 

Is there a way to make it work for the partial sum of the alternating series

1-(1/4)+(1/9)-(1/16)+..+((-1)^(n-1))*(1/n^2)   ?

Thanks! You were right about those bugs.

 

Now with Newton's Method, the idea is that you are finding f(x)=0 correct?

So the question is asking for a local extrema, so instead of f(x) am I putting in the derivative of f(x)?

Thanks! You were right about those bugs.

 

Now with Newton's Method, the idea is that you are finding f(x)=0 correct?

So the question is asking for a local extrema, so instead of f(x) am I putting in the derivative of f(x)?

@Markiyan Hirnyk Thank you!!!

@Markiyan Hirnyk Thank you!!!

That helped a lot, thanks! But what about for the list? I need to put out 2 lists, one for the minimas and one for the maximas in (x,y) format

That helped a lot, thanks! But what about for the list? I need to put out 2 lists, one for the minimas and one for the maximas in (x,y) format

Yes you are right. It is ,f0(x)

I typed it wrong here, but that is what maple printed out (for some reason i have to retype everything because i can't copy and paste)

Yes you are right. It is ,f0(x)

I typed it wrong here, but that is what maple printed out (for some reason i have to retype everything because i can't copy and paste)

Thanks! The first one still gave me an error, but the second one worked!

Thanks! The first one still gave me an error, but the second one worked!

1 2 Page 2 of 2