[Maxima] two questions: A) list length of solve result, B) 0^0
andre maute
andre.maute at gmx.de
Sun Jun 8 08:07:29 CDT 2008
On Sunday 08 June 2008, Robert Dodier wrote:
> On 6/7/08, Stavros Macrakis <macrakis at alum.mit.edu> wrote:
> > I suggest you call algsys directly rather than via solve for uniform
> > result format.
>
> Or linsolve, if the equations in question are linear.
>
> The inconsistent return value of solve seems like a bug to me.
>
> > If youb want to force 0^0 to simplify to 1, I believe you can do this
> > using tellsimp, though at some cost in efficiency.
>
> That seems to work as expected.
>
> simp : false;
> tellsimp (0^0, 1);
> simp : true;
> 0^0;
> => 1
> my_bernstein(n,k,x):=binomial(n,k)*(x+1)^k*(1-x)^(n-k);
> my_bernstein(0,0,1);
> => 1
>
> best
>
> Robert
Thanks Stavros, Thanks Robert, both suggestions work
Andre
More information about the Maxima
mailing list