I fixed a missing semicolon (somewhere) and removed an extra "]" in
matrix([z^2+y^2,-sin(theta)*u*x*y,-sin(theta)*u*y^2,-sin(theta)*u*y*z,-sin(theta)*u*x*z,-sin(theta)*u*y*z,-sin(theta)*u*z^2],[-sin(theta)*u*x*y,-sin(theta)*u*y^2,-sin(theta)*u*y*z,z^2+sin(theta)^2*u^2*x^2,z^2+sin(theta)^2*u^2*y^2,(sin(theta)^2*u^2+1)*z^2,-y*z],[-sin(theta)*u*x*z,-sin(theta)*u*y*z,-sin(theta)*u*z^2,-y*z,y^2+sin(theta)^2*u^2*x^2,(sin(theta)^2*u^2+1)*y^2,sin(theta)^2*u^2*z^2+y^2]);
Instead of mat_unblocker, I think you need to apply 'flatten' to nc or
maybe something like
xreduce('append, nc). The function mat_unblocker only works on block
matrices, I think.
Barton
maxima-bounces at math.utexas.edu wrote on 11/13/2009 11:44:15 AM:
> [image removed]
>
> [Maxima] mat_unblocker not working
>
> Julie Sandberg
>
> to:
>
> maxima
>
> 11/13/2009 01:16 PM
>
> Sent by:
>
> maxima-bounces at math.utexas.edu
>
> Hi,
>
> I am working on a dynamaics assigment using Maxima. I need to
> ultimately solve for forces and moments, but throughout my script
> Maxima creates nested lists with excessive [ and ]'s where I should
> have simple matrices. For instance, in the attached code, I
> calculate a MOI integrand using
>
> /*MOI Integrand*/
> integ:(r.r)*ident(3)-transpose(r).r;
>
> Then, I would like to convert these values to cylindrical coordinates:
>
> /*Use Clyindrical Coordinates*/
> integ2:ev(integ,x=u*r*sin(theta),y=h,z=u*r*cos
> (theta)),expand,ratsimp,trigsimp;
>
> Because integ is a nested list, ev cannot evaluate at these values.
> Is there any way to "un-nest" integ? I have this same problem
> through my code.
>
> Thank you for your time.
>
> --
> Julie Sandberg
> M.S. Aerospace Engineering
> Dynamics and Control
> Texas A&M University
> [attachment "Prob7_62.mac" deleted by Barton Willis/MATH/UNK/UNEBR]
> _______________________________________________
> Maxima mailing list
> Maxima at math.utexas.edu
> http://www.math.utexas.edu/mailman/listinfo/maxima