Minpack vs autoload of $jacobian
- Subject: Minpack vs autoload of $jacobian
- From: Barton Willis
- Date: Wed, 21 Jan 2009 16:59:51 -0600
Wild guess: Do you have a compiled linearalgebra.mac? If so, try deleting
the
compiled version.
Barton
-----maxima-bounces at math.utexas.edu wrote: -----
>This?works?nicely?from?a?clean?maxima:
>
>(%i1)?load(minpack);
>(%o1)????/apps/public/src/toy/maxima-colnew/share/minpack/minpack.mac
>(%i2)?jacobian([10*(x[1]-x[2]^2),1-x[2]],[x[1],x[2]]);
>????????????????????????????????[?10??-?20?x??]
>(%o2)???????????????????????????[???????????2?]
>????????????????????????????????[?????????????]
>????????????????????????????????[?0?????-?1???]
>(%i3)?minpack_lsquares([10*(x[1]-x[2]^2),1-x[2]],[x[1],x[2]],[-1.2,-1]);
>(%o3)????????????????????????[[1.0,?1.0],?0.0,?4]
>
>
>But?from?a?clean?maxima,?try?this:
>
>(%i1)?load(minpack);
>(%o1)????/apps/public/src/toy/maxima-colnew/share/minpack/minpack.mac
>(%i2)?minpack_lsquares([10*(x[1]-x[2]^2),1-x[2]],[x[1],x[2]],[-1.2,-1]);
>
>put:?atom?must?be?a?symbol?or?a?string:
>'linearalgebra
>?--?an?error.??To?debug?this?try?debugmode(true);
>
>Why?the?difference???In?both?cases?I?see?maxima?automatically?loading
>the?files?from?linearalgebra,?but?in?the?former,?I?don't?get?a?problem
>with?PUT,?but?the?later?dies.??The?arguments?being?passed?to?$PUT?are
>definitely?wrong.??In?the?working?case,?we?have
>
>????($PUT?$LINEARALGEBRA?1?$VERSION)
>
>but?the?broken?one?says
>
>($PUT?'((MQUOTE
>???? ?(18
>???? ??"path"
>???? ??SRC))
>???? $LINEARALGEBRA)
>??????1
>??????((MQUOTE
>???? (18
>???? ?"path"
>???? ?SRC))
>???????$VERSION))
>
>Does?anyone?know?what's?going?on?
>
>It's?easy?enough?to?compute?the?jacobian?manually?in?minpack,?but?I
>thought?I'd?use?the?real?jacobian?function?that?maxima?already?has.
>
>Ray
>_______________________________________________
>Maxima?mailing?list
>Maxima at math.utexas.edu
>http://www.math.utexas.edu/mailman/listinfo/maxima