create_list makelist possible bugs



Try:

  mtb(expr,v) := block([a : inpart(v,1), b : inpart(v,2)],create_list
  (expr,a,1,b));


Barton

-----maxima-bounces at math.utexas.edu wrote: -----

>To:?maxima at math.utexas.edu
>From:?John?Lapeyre?<pdl at johnlapeyre.com>
>Sent?by:?maxima-bounces at math.utexas.edu
>Date:?09/08/2008?04:16PM
>Subject:?Re:?[Maxima]?create_list?makelist??possible?bugs
>
>rrrrg...?I?mistyped?the?first?examples,?they?should?read:
>
>(%i1)?mta(expr,v)?:=????makelist(expr,inpart(v,1),1,inpart(v,2))$
>(%i2)?mtb(expr,v)?:=?create_list(expr,inpart(v,1),1,inpart(v,2))$
>(%i3)?mtc(expr,v)?:=?apply('create_list,
>[expr,inpart(v,1),1,inpart(v,2)]);
>
>(%i4)?mta(x,[x,2]);
>(%o4)?[x,x]
>(%i5)?mtb(x,[x,2]);
>(($INPART)?$V?1)?not?a?symbol
>#0:?mtb(expr=x,v=[x,2])
>?--?an?error.??To?debug?this?try?debugmode(true);
>(%i6)?mtc(x,[x,2]);
>(%o6)?[1,2]
>
>John
>
>
>_______________________________________________
>Maxima?mailing?list
>Maxima at math.utexas.edu
>http://www.math.utexas.edu/mailman/listinfo/maxima