Robert Dodier | 2 Mar 08:22 2015
Picon

SBCL unsaveable string, was: [Maxima-commits] [git] Maxima CAS branch, master, updated. branch-5_35-base-192-ga26196b

On Sun, 3/1/15, Raymond Toy <toy.raymond <at> gmail.com> wrote:

> On 2/28/15 10:16 PM, Robert Dodier wrote:

>>     Work around SBCL bug:
>> SIMPLE-BASE-STRING is not readably printable.

> Probably because simple-string and simple-base-string are
> different. 

Well. that's not really the problem. The problem is that base
strings are not readably printable, which seems pretty unreasonable;
it is certainly an unpleasant surprise.

> I suspect that if you coerced lisp_name (or whatever is
> causing the problem) to be a simple-string instead of a
> simple-base-string, the printing issue will go away.

Well, there is no way to know which strings are going to
cause trouble. The string in question is the result of calling
LISP-IMPLEMENTATION-NAME (via build_info).
How could anyone even guess that it can't be printed readably? 

SBCL's behavior is probably CLHS conforming (I didn't 
investigate this question myself, I'm guessing on this point).
That doesn't make it any less inconvenient and incomprehensible.

best,

Robert Dodier
(Continue reading)

Gunter Königsmann | 1 Mar 15:10 2015
Picon

simultaneous plotting with two maxima instances


Dear all,

I frequently run into the problem that when trying to run two
instances of wxmaxima at the same time one instance steals the image
files or image gnuplot descriptions from the other. The first one was
easy to solve. But the maxout.gnuplot or maxout.gnuplot_pipes files
are still shared between two maxima instances.
To avoid that I thought about setting gnuplot_file_name to a random
value by wxMaxima. But I am not completely sure if this is a good idea
or if the hardcoded name that makes using two maxima instances
concurrently can be seen as a maxma bug.  It seems that this variable
is ignored by draw, implicit_plot and the gnuplot_pipes plot option
which use their own hardcoded value as default file name.

If this won't be fixed on maxima's side would anything stand against
replacing "maxout.gnuplot" by:

	             (if (boundp gnuplot_data_file)
		         (gnuplot_data_file)
		         ("maxout.gnuplot")
		     )

in draw?

Since the default value of the gnuplot_data_file entry of the draw
options isn't documented that doesn't change the documentation and the
user can still change it to his own value...
...but this would mean that wxMaxima doesn't have to play with the
internals of the terminal description draw uses if I want it to do
(Continue reading)

Jorge Barros de Abreu | 1 Mar 08:48 2015
Picon

Project management situation about pt_BR directory

I request that *pt_BR* directory be deleted due to my personal situation
at this time do not allow to keep it and due to *pt* directory fill the
language at suitable form.
This also aplies to my project access.

Thanks.
Long life to Maxima project.

--

-- 
Data Estelar 2457082,823345
http://sites.google.com/site/ficmatinf
Desejo-lhe Paz, Vida Longa e Prosperidade.
São Bem Vindas Mensagens no Formato texto UTF-8 com Acentos.

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
Henry Baker | 1 Mar 01:02 2015
Picon

Re: Online Maxima server with instant messaging access

You should be aware that if you have Maxima, you also have Lisp.  When you have Lisp, you have easy access to
file systems and the Internet.  Lisp is incredibly easy to hack.

I'm not sure how you could protect your server, but I would be extremely careful.

The same thing happened a long time ago with Postscript on printers.  Standard Postscript is a complete
programming language which offered easy access to everything.  Only later did people realize how to
curtail this power.

At 02:48 PM 2/28/2015, Enric Cervera Mateu wrote:
>Dear all,
>
>I have set up a dedicated Maxima server, which can be used by anyone with an instant messaging application (Telegram).
>
>See instructions at:
>
><http://telemaxima.altervista.org/>http://telemaxima.altervista.org/
>
>It's still experimental, and not heavily tested. Any feedback or comment is absolutely welcome.
>
>Please take into account that each message starts a new session, and saving and restoring previous
sessions is not supported yet. But you can send multi-line messages, though.
>
>Hope you like it.
>
>Best,
>
>Enric

------------------------------------------------------------------------------
(Continue reading)

Enric Cervera Mateu | 28 Feb 23:48 2015
Picon

Online Maxima server with instant messaging access

Dear all,

I have set up a dedicated Maxima server, which can be used by anyone with an instant messaging application (Telegram).

See instructions at:


It's still experimental, and not heavily tested. Any feedback or comment is absolutely welcome.

Please take into account that each message starts a new session, and saving and restoring previous sessions is not supported yet. But you can send multi-line messages, though.

Hope you like it.

Best,

Enric
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Maxima-discuss mailing list
Maxima-discuss <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/maxima-discuss
michael xue | 28 Feb 00:13 2015

Maxima Bug

I've installed maxima-5.27.0 on Raspberry PI. When I run 
the following script:

describe(sin);
1+2;
describe(cos);

the output  is:

 
 -- Function: sin (<x>)
     - Sine.

  There are also some inexact matches for `sin'.
  Try `?? sin' to see them.

                                     true

The output is obtained from typing

     maxima --very-quiet<mast.mac >xxx

at the command prompt.
As you can see, there is no output of '1+2' and 
'describe(cos)' after 'describe(sin)'.

This also occurs on OS X post maxima-5.21.0 
(As I was told by a colleague)

Any idea of how to fix this?

Thanks!

Thanks!

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
Barton Willis | 26 Feb 22:59 2015

newton polynomials

Here is some code I wrote for Newton polynomials--maybe somebody will correct, enjoy, improve, complete, use, ... it.


(%i1) newton_table(l,f) := block([p : map(f,l), lt : l, M : [], listarith : true] ,
   while l # [] do (
     push(p,M),
     l : rest(l),
     lt : rest(lt,-1),
     p : map("/", rest(p) - rest(p,-1), l-lt)),
  reverse(M))$


(%i2) make_newton_polys(l) := block([k : 0, p : 1,x],  
   while l # [] do (
      concat(N,k) :: buildq([p], lambda([x], p)),
      k : k + 1,
      p : p * (x - pop(l))))$


(%i3) load(basic)$


(%i4) knots : [1,2,3,4];
(%o4) [1,2,3,4]


(%i5) make_newton_polys(knots);
(%o5) done


(%i6) newton_table(knots, lambda([s],s^3+ 42*s + 2015));
(%o6) [[2058,2107,2168,2247],[49,61,79],[6,9],[1]]


(%i7) map('first,%);
(%o7) [2058,49,6,1]


(%i8) %. makelist(concat(N,k)(x),k,0,length(knots)-1);
(%o8) (x-3)*(x-2)*(x-1)+6*(x-2)*(x-1)+49*(x-1)+2058


(%i9) expand(%);
(%o9) x^3+42*x+2015


(%i10) knots : [x1,x2,x3];
(%o10) [x1,x2,x3]


(%i11) make_newton_polys(knots);
(%o11) done


(%i12) N1(x);
(%o12) x-x1


(%i13) newton_table(knots, lambda([s],gg(s)));
(%o13) [[gg(x1),gg(x2),gg(x3)],[(gg(x2)-gg(x1))/(x2-x1),(gg(x3)-gg(x2))/(x3-x2)],[((gg(x3)-gg(x2))/(x3-x2)-(gg(x2)-gg(x1))/(x2-x1))/(x3-x1)]]


(%i14) map('first,%);
(%o14) [gg(x1),(gg(x2)-gg(x1))/(x2-x1),((gg(x3)-gg(x2))/(x3-x2)-(gg(x2)-gg(x1))/(x2-x1))/(x3-x1)]





------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Maxima-discuss mailing list
Maxima-discuss <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/maxima-discuss
Christian Stengg | 26 Feb 20:13 2015
Picon
Picon

testing for equivalence

Dear all,

why do I get the result "unknown" and not "false"?

f:4*x/(x^2+1);
is(equal(f,subst(-x,x,f)));

Thanks a lot,
Christian

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
Robert Dodier | 26 Feb 19:35 2015
Picon

Image dump / float format strange interaction; was: Plotting broken [...]

David, I've taken the liberty of forwarding your message.
I don't know why dumping the image causes this problem --
maybe one of the developers knows??

best,

Robert Dodier

---------- Forwarded message ----------
From: David Scherfgen <d.scherfgen <at> googlemail.com>
Date: Thu, Feb 26, 2015 at 10:19 AM
Subject: Re: [Maxima-discuss] Plotting broken in latest Git version
due to strange number notation?
To: Robert Dodier <robert.dodier <at> gmail.com>

Thanks a lot, Robert.

Setting the float format manually to double worked! It also fixed the
crash with (x^0.5)^2.

I played around a bit and made an interesting discovery: It all works
perfectly when I do (load "maxima-build.lisp") (maxima-load)
(cl-user::run). But as soon as I do (maxima-dump) and run Maxima from
the .core file (as it is done by the maxima.bat file), the bug
appears. Maybe that information helps shed some light on the issue.

Best regards,
David

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
Robert Dodier | 26 Feb 18:25 2015
Picon

Re: Plotting broken in latest Git version due to strange number notation?

On Thu, Feb 26, 2015 at 5:55 AM, David Scherfgen
<d.scherfgen <at> googlemail.com> wrote:

> :lisp *read-default-float-format*
> prints:
> SINGLE-FLOAT

OK, this is the problem. I wonder how that happened;
it's supposed to be DOUBLE-FLOAT.

A possible work around is for you to set that by hand.
If you enter this:

:lisp (setq *read-default-float-format* 'double-float)

does it make the plotting error go away?

To developers: the code to set the float format seems
to be at line 394 in src/clmacs.lisp:

(eval-when (:compile-toplevel :load-toplevel :execute)
  (setq *read-default-float-format* 'double-float))

Can anyone see why that might not have the expected effect?

> I'll try with a different LISP implementation. Unfortunately, SBCL seems to
> be the only one where you can easily get a Windows binary without compiling
> it yourself.

Oh, no need to try a different Lisp; I think we can sort it out with SBCL.

best,

Robert Dodier

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
Gunter Königsmann | 25 Feb 22:16 2015
Picon

Re: Plotting broken in latest Git version due to strange number notation?


One of the advantages of maxima is that it is always possible to
switch to a different lisp if one doesn't work.

Another idea, even if a bit far-fetched, this time, and not a thing I
believe to be the cause of the phenomenons you experience: In
c:/users/≤yourusername>/maxima/binary there is a compiled version of draw.

If the binaries that are kept there no longer match your installation
you can get all sort of weird behavior.

Kind regards,

   Gunter.

On 25.02.2015 22:07, David Scherfgen wrote:
> Hi Gunter,
> 
> this is my build info:
> 
> build_info(version="5.35post",timestamp="2015-02-25 
> 09:19:54",host="unknown",lisp_name="SBCL",lisp_version="1.2.7")
> 
> Windows 8.1 64-bit, SBCL 1.2.7 64-bit, Latest Maxima from Git
> 
> However, there is another strange problem I encountered with my
> build:
> 
> (%i1) (x^0.5)^2; Maxima encountered a Lisp error: The value $X is
> not of type LIST. Automatically continuing. To enable the Lisp
> debugger set *debugger-hook* to nil.
> 
> I don't trust this any more, maybe I should try a different LISP 
> implementation?
> 
> Best regards, David
> 
> 2015-02-25 21:52 GMT+01:00 Gunter Königsmann <gunter <at> peterpall.de 
> <mailto:gunter <at> peterpall.de>>:
> 
> On my build (Linux/64 Bit/sbcl/current git head of maxima) I don't
> get numbers with a "d" and the plot is fine.
> 
> What is the output of build_info() on your machine? Not that the 
> problem is specific to a certain lisp.
> 
> Kind regards,
> 
> Gunter.
> 
> On 25.02.2015 21 <tel:25.02.2015%2021>:15, Brian Gregory wrote:
>> Use of d rather than e for exponent probably means, or is
>> intended to mean, that the constant is a double length floating
>> point variable.
> 
>> I've seen it before somewhere.
> 
>> --
> 
>> Brian Gregory. bdgregory <at> gmail.com <mailto:bdgregory <at> gmail.com>
> <mailto:bdgregory <at> gmail.com <mailto:bdgregory <at> gmail.com>>
>> www.Brian-Gregory.me.uk <http://www.Brian-Gregory.me.uk>
> <http://www.Brian-Gregory.me.uk>
> 
> 
>> On 25 Feb 2015 20:05, "David Scherfgen" 
>> <d.scherfgen <at> googlemail.com <mailto:d.scherfgen <at> googlemail.com>
> <mailto:d.scherfgen <at> googlemail.com
> <mailto:d.scherfgen <at> googlemail.com>>>
>> wrote:
> 
>> It's me again ;-)
> 
>> I'm running the latest Git version on Windows, and when I plot a 
>> simple expression like x^2, the graph shows strange spikes, as 
>> seen here:
> 
>> https://dl.dropboxusercontent.com/u/845597/PlottingBroken.png
> 
>> The reason is that maxout.gnuplot file contains strange numbers 
>> like:
> 
>> -8.6206896551724200d-2 7.4316290130796770000d-3
> 
>> I guess that gnuplot can't handle the d notation. In fact, I
>> have never seen it before. Shouldn't it be e?
> 
>> Before I submit a bug report, can you please try it, too? Maybe
>> it is my custom build that breaks it. I know that the bug
>> doesn't appear with the latest stable version.
> 
>> Best regards, David
> 
>> ------------------------------------------------------------------------------
>
>> 
> 
> Dive into the World of Parallel Programming The Go Parallel
> Website,
>> sponsored by Intel and developed in partnership with Slashdot 
>> Media, is your hub for all things parallel software development, 
>> from weekly thought leadership blogs to news, videos, case
>> studies, tutorials and more. Take a look and join the
>> conversation now. http://goparallel.sourceforge.net/ 
>> _______________________________________________ Maxima-discuss 
>> mailing list Maxima-discuss <at> lists.sourceforge.net
> <mailto:Maxima-discuss <at> lists.sourceforge.net>
>> <mailto:Maxima-discuss <at> lists.sourceforge.net
> <mailto:Maxima-discuss <at> lists.sourceforge.net>>
>> https://lists.sourceforge.net/lists/listinfo/maxima-discuss
> 
> 
> 
>> ------------------------------------------------------------------------------
>
>> 
> 
> Dive into the World of Parallel Programming The Go Parallel
> Website, sponsored
>> by Intel and developed in partnership with Slashdot Media, is
>> your hub for all things parallel software development, from
>> weekly thought leadership blogs to news, videos, case studies,
>> tutorials and more. Take a look and join the conversation now. 
>> http://goparallel.sourceforge.net/
> 
> 
> 
>> _______________________________________________ Maxima-discuss 
>> mailing list Maxima-discuss <at> lists.sourceforge.net
> <mailto:Maxima-discuss <at> lists.sourceforge.net>
>> https://lists.sourceforge.net/lists/listinfo/maxima-discuss
> 
> 
> ------------------------------------------------------------------------------
>
> 
Dive into the World of Parallel Programming The Go Parallel Website,
> sponsored by Intel and developed in partnership with Slashdot
> Media, is your hub for all things parallel software development,
> from weekly thought leadership blogs to news, videos, case studies,
> tutorials and more. Take a look and join the conversation now.
> http://goparallel.sourceforge.net/ 
> _______________________________________________ Maxima-discuss
> mailing list Maxima-discuss <at> lists.sourceforge.net 
> <mailto:Maxima-discuss <at> lists.sourceforge.net> 
> https://lists.sourceforge.net/lists/listinfo/maxima-discuss
> 
> 

Gmane