Loading the draw package



Hi,

some weeks ago I reported problems to load the draw package in Maxima 5.31.2
under Windows 7. There was an issue with object files residing in the same
directory for different Maxima versions installed side by side. Removing the
object files from the user dir did not solve the problem with Maxima 5.31.2.
I was in fact mixing up versions during testing. It is very inconvenient in
our SMath plugin to change the Maxima version to be used (needs
improvement). 

In order to avoid similar chaos in the future, I removed all versions and
reinstalled just 5.31.2 (most recent for windows) -> could not load draw.
5.31.1-1, however, works. Maybe, someone is aware of changes introduced from
5.31.1-1 to 5-31.2 that might be candidate for causing load problems.

Just to mention: load problems occure when using maxima via tcp-ip socket.
In wxmaxima draw works fine even in 5.31.2.

Thus, for now I have to recommend Maxima 5.31.1-1 for those who want to use
it via SMath Studio.

Martin Kraska


> -----Urspr?ngliche Nachricht-----
> Von: maxima-bounces at math.utexas.edu [mailto:maxima-
> bounces at math.utexas.edu] Im Auftrag von maxima-request at math.utexas.edu
> Gesendet: Donnerstag, 28. November 2013 22:23
> An: maxima at math.utexas.edu
> Betreff: Maxima Digest, Vol 88, Issue 36
> 
> Send Maxima mailing list submissions to
> 	maxima at math.utexas.edu
> 
> To subscribe or unsubscribe via the World Wide Web, visit
> 	http://www.math.utexas.edu/mailman/listinfo/maxima
> or, via email, send a message with subject or body 'help' to
> 	maxima-request at math.utexas.edu
> 
> You can reach the person managing the list at
> 	maxima-owner at math.utexas.edu
> 
> When replying, please edit your Subject line so it is more specific than
"Re:
> Contents of Maxima digest..."
> 
> 
> Today's Topics:
> 
>    1. Re: matrix manipulation (Barton Willis)
>    2. Re: composing HTML documents with text + Maxima stuff
>       (Jaime Villate)
>    3. Re: Undo trigexpand of complex arguments ?? (Stavros Macrakis)
>    4. Re: composing HTML documents with text + Maxima stuff
>       (Robert Dodier)
>    5. Maxima 5.32 branch planned for Dec 15 (Robert Dodier)
>    6. hide local variables from substitution for a user defined
>       object (Litvinov Sergey)
> 
> 
> ----------------------------------------------------------------------
> 
> Message: 1
> Date: Thu, 28 Nov 2013 01:07:45 +0000
> From: Barton Willis <willisb at unk.edu>
> To: Stavros Macrakis <macrakis at alum.mit.edu>
> Cc: "maxima at math.utexas.edu" <maxima at math.utexas.edu>
> Subject: Re: [Maxima] matrix manipulation
> Message-ID:
> 	<342137904c2f4cdd99f8a7b62c971140 at CO1PR07MB345.namprd07.pr
> od.outlook.com>
> 
> Content-Type: text/plain; charset="us-ascii"
> 
> > I wasn't aware that Maxima looked at get(A,matrix);
> 
> 
> It doesn't---I was thinking that doing put(A,matrix) and get(A,matrix)
might be
> useful for building a function
> 
> that does something for symbolic matrix expressions. As for a specific
example,
> I don't have anything in mind.
> 
> But it is possible to do things like
> 
> 
>   (%i9) put(A,[11,27],matrix_size);
>   (%o9) [11,27]
> 
> 
>   (%i10) get(A,matrix_size);
>   (%o10) [11,27]
> 
> 
> 
> --Barton
> 
> 
> 
> -------------- next part --------------
> URL:
> <http://www.math.utexas.edu/pipermail/maxima/attachments/20131128/da53f
> d64/attachment-0001.html>
> 
> ------------------------------
> 
> Message: 2
> Date: Thu, 28 Nov 2013 11:38:30 +0000
> From: Jaime Villate <villate at fe.up.pt>
> To: Robert Dodier <robert.dodier at gmail.com>, maxima at math.utexas.edu
> Subject: Re: [Maxima] composing HTML documents with text + Maxima
> 	stuff
> Message-ID: <52972B36.6040807 at fe.up.pt>
> Content-Type: text/plain; charset=UTF-8; format=flowed
> 
> On 27-11-2013 19:44, Robert Dodier wrote:
> > For code, looks like a simple <pre>...</pre> is enough, although I
> > wouldn't mind colorization. Haven't figured that out.
> Hi Robert,
> I use LaTeX, rather than Texinfo, because I prefer the PDF files obtained
with
> Pdflatex. In the preamble I define a verbatim environment called "maxima",
> where I put the maxima commands. I have written a couple of PHP scripts.
The
> first one will find all the commands in the "maxima" environments, execute
> them with the current version of Maxima and put the update result into the
.tex
> file, introducing some basic coloring.
> 
> I use the second script to transform the .tex file into an UTF8 file
suitable for
> Mediawiki+Mathjax. I only have to do some minor adjustments before
> publishing the file in Mediawiki. You can see a simple example here:
> http://def.fe.up.pt/pt/Equa%C3%A7%C3%B5es_diferenciais
> At the top of the page there is a link to the PDF file created by
Pdflatex.
> 
> For each figure I create a PDF and a PNG version, for Pdflatex and
Mediawiki.
> The Mathjax in the HTML pages looks fine even in Android and the Raspberry
> Pi. The only problem is that with too many equations the browser takes a
long
> time to process them. Therefore, my script will try automatically to
convert
> equations into simple UTF8 HTML strings when possible. For instance, $x_1
\le
> y^2$ becomes <i>x</i><sub>1</sub> ?
> <i>y</i><sup>2</sup>.
> 
> If you're interested, I can send you my PHP scripts.
> Regards,
> Jaime
> 
> 
> 
> ------------------------------
> 
> Message: 3
> Date: Thu, 28 Nov 2013 12:27:25 -0500
> From: Stavros Macrakis <macrakis at alum.mit.edu>
> To: Aleksas Domarkas <aleksasd873 at gmail.com>
> Cc: maxima <maxima at math.utexas.edu>
> Subject: Re: [Maxima] Undo trigexpand of complex arguments ??
> Message-ID:
> 	<CACLVabUUge-zUx3VKcvKnY-oLsA00uy2u-
> 88ppEoKoCzCTQNaw at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
> 
> Thanks for contributing your trigcomb function.  A couple of minor
comments on
> the way it's written:
> 
> * defining a function within a function defines a global function; to make
it
> local, you need to write local(func)
> * load() shouldn't be used within a function -- the load will happen every
time
> the function is run. Best to use load() outside the function definition
> (unfortunately, Maxima doesn't have a standard 'require'
> function, and even checking whether a function is defined is ugly)
> * you should probably use a gensym instead of 'i' as the temporary name
for %i
> to avoid variable collisions
> 
> It seems to me that we should have standard built-in functions for
converting
> among trigonometric, hyperbolic, and exponential forms. Right now, we have
> trig,hyp -> exponential (using exponentialize) and complex exponential ->
trig
> (using demoivre), but the other cases aren't handled.
> 
>                   -s
> 
> 
> On Mon, Nov 25, 2013 at 4:00 PM, Aleksas Domarkas
> <aleksasd873 at gmail.com>wrote:
> 
> > On Mon, Nov 25, 2013 at 9:58 AM, Henry Baker <hbaker1 at
> > pipeline.com<http://www.math.utexas.edu/mailman/listinfo/maxima>>;
> > wrote:
> >
> > >What is the antidote for trigexpand with complex arguments?
> > >
> > >trigreduce doesn't seem to work here.
> > >
> > >Maxima 5.28.0-2 http://maxima.sourceforge.net using Lisp GNU Common
> > >Lisp (GCL) GCL 2.6.8 (a.k.a. GCL) Distributed under the GNU Public
> > >License. See the file COPYING.
> > >Dedicated to the memory of William Schelter.
> > >The function bug_report() provides bug reporting information.
> > >(%i1) cos(p+q*%i);
> > >(%o1)                            cos(%i q + p)
> > >(%i2) trigexpand(%);
> > >(%o2)                 cos(p) cosh(q) - %i sin(p) sinh(q)
> > >(%i3) trigreduce(%);
> > >(%o3)                 cos(p) cosh(q) - %i sin(p) sinh(q)
> > >(%i4)
> >
> >
> >
> >
> >  I define
> >
> > (%i1) trigcomb(r):=block([x,i,sinv,cosv,mi,mii,%iargs:false],
> > mi(x):=%i*x,
> > mii(x):=-%i*x,
> > load(to_poly_solve),
> > sinv:compose_functions([mii,sin,mi]),
> > tanv:compose_functions([mii,tan,mi]),
> > cosv:compose_functions([cos,mi]),
> > cotv:compose_functions([mi,cot,mi]),
> > subst([sinh=sinv,cosh=cosv,tanh=tanv,coth=cotv],r),
> > subst(%i=i,%%),
> > trigrat(%%),
> > trigreduce(%%),
> > subst(i=%i,%%)
> > )$
> >
> >  Examples:
> >  1.
> > (%i2) cos(p+q*%i);
> > (%o2) cos(%i*q+p)
> > (%i3) trigexpand(%);
> > (%o3) cos(p)*cosh(q)-%i*sin(p)*sinh(q)
> > (%i4) trigcomb(%);
> > Loading maxima-grobner $Revision: 1.6 $ $Date: 2009-06-02 07:49:49 $
> > (%o4) cos(%i*q+p)
> >
> >  2.
> > (%i5) sin(a+b*%i);
> > (%o5) sin(%i*b+a)
> > (%i6) trigexpand(%);
> > (%o6) %i*cos(a)*sinh(b)+sin(a)*cosh(b)
> > (%i7) trigcomb(%);
> > (%o7) sin(%i*b+a)
> >
> >  3.
> > (%i8) cos(a*%i+b*%i);
> > (%o8) cos(%i*b+%i*a)
> > (%i9) trigexpand(%);
> > (%o9) sinh(a)*sinh(b)+cosh(a)*cosh(b)
> > (%i10) trigcomb(%);
> > (%o10) cos(%i*b+%i*a)
> >
> >  4.
> > (%i11) tan(a+%i*b);
> > (%o11) tan(%i*b+a)
> > (%i12) trigexpand(%);
> > (%o12) (%i*tanh(b)+tan(a))/(1-%i*tan(a)*tanh(b))
> > (%i13) trigcomb(%);
> > (%o13) tan(%i*b+a)
> >
> >  5.
> > (%i14) cot(x+%i*y);
> > (%o14) cot(%i*y+x)
> > (%i15) trigexpand(%);
> > (%o15) (-%i*cot(x)*coth(y)-1)/(cot(x)-%i*coth(y))
> > (%i16) trigcomb(%);
> > (%o16) cot(%i*y+x)
> >
> > best
> >
> > Aleksas D
> >
> > _______________________________________________
> > Maxima mailing list
> > Maxima at math.utexas.edu
> > http://www.math.utexas.edu/mailman/listinfo/maxima
> >
> >
> -------------- next part --------------
> URL:
> <http://www.math.utexas.edu/pipermail/maxima/attachments/20131128/be1b
> ae3d/attachment-0001.html>
> 
> ------------------------------
> 
> Message: 4
> Date: Thu, 28 Nov 2013 18:28:10 +0000 (UTC)
> From: Robert Dodier <robert.dodier at gmail.com>
> To: maxima at math.utexas.edu
> Subject: Re: [Maxima] composing HTML documents with text + Maxima
> 	stuff
> Message-ID: <slrnl9f2q4.2f0.robert.dodier at freekbox.fglan>
> 
> On 2013-11-28, Jaime Villate <villate at fe.up.pt> wrote:
> 
> > I use LaTeX, rather than Texinfo, because I prefer the PDF files
> > obtained with Pdflatex. In the preamble I define a verbatim
> > environment called "maxima", where I put the maxima commands. I have
> > written a couple of PHP scripts. The first one will find all the
> > commands in the "maxima" environments, execute them with the current
> > version of Maxima and put the update result into the .tex file,
> > introducing some basic coloring.
> 
> Hmm, that sounds interesting. The results look really good. I'd be
interested to
> see the scripts.
> 
> best
> 
> Robert Dodier
> 
> 
> 
> ------------------------------
> 
> Message: 5
> Date: Thu, 28 Nov 2013 20:21:27 +0000 (UTC)
> From: Robert Dodier <robert.dodier at gmail.com>
> To: maxima at math.utexas.edu
> Subject: Maxima 5.32 branch planned for Dec 15
> Message-ID: <slrnl9f9ei.9s7.robert.dodier at freekbox.fglan>
> 
> Hi, I'm planning to make a release branch for Maxima 5.32 around Dec 15.
> 
> best
> 
> Robert Dodier
> 
> 
> 
> ------------------------------
> 
> Message: 6
> Date: Thu, 28 Nov 2013 22:22:13 +0100
> From: Litvinov Sergey <slitvinov at gmail.com>
> To: maxima at math.utexas.edu
> Subject: hide local variables from substitution for a user
> 	defined	object
> Message-ID: <87siugnrwa.fsf at gmail.com>
> Content-Type: text/plain
> 
> What is the best way to get this?
> 
> (%i1) my_subst(k, i, i*my_sum(i, [i]));
> (%o1)                  k my_sum(i, [i]))
> 
> (%i1) my_subst(k, j,  my_sum(j*i, [i]));
> (%o1)                    my_sum(k*i, [i]))
> 
> Here [i] is a list of variables local to `my_sum' and they should not be
> substituted.
> 
> 
> 
> ------------------------------
> 
> _______________________________________________
> Maxima mailing list
> Maxima at math.utexas.edu
> http://www.math.utexas.edu/mailman/listinfo/maxima
> 
> 
> End of Maxima Digest, Vol 88, Issue 36
> **************************************