Camm Maguire | 21 Jul 19:07 2014

favicon

Greetings!  I have the following issue with the Debian maxima package:

E: maxima-doc: privacy-breach-logo usr/share/doc/maxima-doc/html/maxima.html http://maxima.sourceforge.net/favicon.ico
N:
N:   This package creates a potential privacy breach by fetching a logo at
N:   runtime.
N:   
N:   Before using a local copy you should check that the logo is suitable
N:   for main. You can get help with determining this by posting a link to
N:   the logo and a copy of, or a link to, the logo copyright and license
N:   information to the debian-legal mailing list.
N:   
N:   Please replace any scripts, images, or other remote resources with
N:   non-remote resources. It is preferable to replace them with text and
N:   links but local copies of the remote resources are also acceptable as
N:   long as they don't also make calls to remote services. Please ensure
N:   that the remote resources are suitable for Debian main before making
N:   local copies of them.
N:   
N:   Severity: serious, Certainty: possible
N:   
N:   Check: files, Type: binary, udeb
N:
E: maxima-doc: privacy-breach-logo usr/share/doc/maxima-doc/html/maxima_1.html http://maxima.sourceforge.net/favicon.ico
E: maxima-doc: privacy-breach-logo usr/share/doc/maxima-doc/html/maxima_10.html http://maxima.sourceforge.net/favicon.ico
E: maxima-doc: privacy-breach-logo usr/share/doc/maxima-doc/html/maxima_11.html http://maxima.sourceforge.net/favicon.ico
...

Furthermore, http://maxima.sourceforge.net/favicon.ico does not exist.
I tried briefly moving the texi2html init file out of the way, but have
(Continue reading)

Pankaj Sejwal | 21 Jul 15:05 2014
Picon

Re: convert list access to function

Hi,
Using Barton's suggestion I fixed it as,

ex(ll,x,f):=apply(substinpart,cons(apply(f,piece),cons(ll,x)))$
ex(ll,[3,3,4],fun) => [2,3,[a,b,[t,y,[u,i],fun(o,p),6,7]],8,8]

With this now one can get functionality similar to Mathematica's "MapAt" feature.
I am thankful to provided suggestions and help.
​>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>​

On Mon, Jul 21, 2014 at 4:59 PM, Barton Willis <willisb <at> unk.edu> wrote:
Try using either inpart or substinpart; example

    (%i12) substinpart(apply(f,piece), ll, 3,3,3);
    (%o12) [2,3,[a,b,[t,y,f(u,i),[o,p],6,7]],8,8]

--bw

________________________________________

I want to access list elements based on their position but I don't
intend to extract the elements out of list but instead keep my curosr
there to apply some function on it, say,

ll:[2,3,[a,b,[t,y,[u,i],[o,p],6,7]],8,8]

I can reachout to various elements using,

a) Using substitution,
subst(apply(f,ll[3][3][3]),ll[3][3][3],ll)

b) Or using positions directly as,
ll[3][3][4]:apply(f,ll[3][3][4]);

Showing the combined result of above two expressions,
ll now, [2,3,[a,b,[t,y,f(u,i),f(o,p),6,7]],8,8]

I want to create a function say,
map_at_position(ll,[3,3,4],f) that shall give me
[2,3,[a,b,[t,y,[u,i],f(o,p),6,7]],8,8]

Function definition needs to be like,

map_at_position(ll,a,f):=block([],ll[a1][a2]a[3]...[an]:apply(f,ll[a1],[a2],[a3]...[an]),ll)
where a = [a1,a2,a3...an] representing the positions

I am not able to figure out how to convert [3,3,3] to ll[3][3][3] kind
of expression. I mean there can't be consed/joined/appended etc
without comma.

--


--
Regards,
Pankaj Sejwal
_______________________________________________
"The more I read, the more I acquire, the more certain I am that I know nothing.” -
 Voltaire
------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
Maxima-discuss mailing list
Maxima-discuss <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/maxima-discuss
Pankaj Sejwal | 21 Jul 05:06 2014
Picon

convert list access to function

Hi,
I want to access list elements based on their position but I don't
intend to extract the elements out of list but instead keep my curosr
there to apply some function on it, say,

ll:[2,3,[a,b,[t,y,[u,i],[o,p],6,7]],8,8]

I can reachout to various elements using,

a) Using substitution,
subst(apply(f,ll[3][3][3]),ll[3][3][3],ll)

b) Or using positions directly as,
ll[3][3][4]:apply(f,ll[3][3][4]);

Showing the combined result of above two expressions,
ll now, [2,3,[a,b,[t,y,f(u,i),f(o,p),6,7]],8,8]

I want to create a function say,
map_at_position(ll,[3,3,4],f) that shall give me
[2,3,[a,b,[t,y,[u,i],f(o,p),6,7]],8,8]

Function definition needs to be like,

map_at_position(ll,a,f):=block([],ll[a1][a2]a[3]...[an]:apply(f,ll[a1],[a2],[a3]...[an]),ll)
where a = [a1,a2,a3...an] representing the positions

I am not able to figure out how to convert [3,3,3] to ll[3][3][3] kind
of expression. I mean there can't be consed/joined/appended etc
without comma.

--

-- 
Regards,
Pankaj Sejwal
_______________________________________________
"The more I read, the more I acquire, the more certain I am that I know
nothing.” - Voltaire

------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
Maxima-discuss mailing list
Maxima-discuss <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/maxima-discuss
Dimiter Prodanov | 21 Jul 00:21 2014
Picon

bug in graphs

package graph does not load in Maxima 33.0 Win XP

build_info(version="5.33.0",timestamp="2014-04-06 06:26:49",host=
"i686-pc-mingw32",lisp_name="GNU Common Lisp (GCL)",lisp_version="GCL 2.6.8")

Loading C:/Documents and Settings/adminprodanov/My Documents/maxima/binary/binary-gcl/share/contrib/graphs/graph_core.o
loadfile: failed to load C:/PROGRA~1/MAXIMA~1.0/share/maxima/5.33.0/share/graphs/load-graphs.lisp
 -- an error. To debug this try: debugmode(true);
------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
Maxima-discuss mailing list
Maxima-discuss <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/maxima-discuss
Dimiter Prodanov | 20 Jul 15:16 2014
Picon

fatal bug map

Dear all,

The following simple command kills Maxima very scucesfully

map ("<", 3 , 4 )
Maxima encountered a Lisp error:
 Error in PROGN [or a callee]: Caught fatal error [memory may be damaged]
Automatically continuing.
To enable the Lisp debugger set *debugger-hook* to nil.

and more generally

map (f, 3 , 4 )

best regards,

Dimiter
------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
Maxima-discuss mailing list
Maxima-discuss <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/maxima-discuss
Henry Baker | 19 Jul 23:52 2014
Picon

Re: "stringout" to the console?

Yes, thanks!  Both "grind()" and "string()" do variations on what I want.

Is there any way to update the documentation on "grind" and "string" to mention considering "stringout"
and vice versa ?

This kind of documentation would be helpful for newbies (and some oldie newbies like me).

At 02:38 PM 7/19/2014, Richard Fateman wrote:
>maybe grind()  will do what you want?
>
>remember grindef?
>
>RJF
>On 7/19/2014 2:06 PM, Henry Baker wrote:
>>I hope this is a trivial problem, but how do I do "stringout" to the console?
>>
>>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) x+y;
>>(%o1)                                y + x
>>(%i2) stringout("d:\\foo.mac",%);
>>(%o2)                             d:/foo.mac
>>(%i3)
>>
>>I can go into the ascii file foo.mac to find the string "y+x;", but is there an easier way to simply display
it on the console as a string like this: "y+x;" ?

------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
Henry Baker | 19 Jul 23:06 2014
Picon

"stringout" to the console?

I hope this is a trivial problem, but how do I do "stringout" to the console?

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) x+y;
(%o1)                                y + x
(%i2) stringout("d:\\foo.mac",%);
(%o2)                             d:/foo.mac
(%i3)

I can go into the ascii file foo.mac to find the string "y+x;", but is there an easier way to simply display it
on the console as a string like this: "y+x;" ?

------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
本田康晃 | 19 Jul 16:58 2014
Picon

bug in dynamics package

Dear all,

I have found bugs in dynamics package. 
Four functions in the package, evolution(), evolution2d(), orbits() and staircase() fails to plot when [plot_format,gnuplot] is specified using set_plot_option(). 

These four functions internally generate xlabel / ylabel from its expression. However, generated values' types are atom, not string. This makes generated maxout.gnuplot malformed and gnuplot later fails to treat such a file.

The fix is to convert atom to string using sconcat / string functions. See details in the attached patch. rtest_dynamic.mac is also updated.

I also created a ticket in the bug report (#2785). I will commit fix within a day unless I see any comments here.

Thanks and best regards,
Yasuaki Honda, Chiba, Japan

Attachment (dynamic.patch): application/octet-stream, 6723 bytes
------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
Maxima-discuss mailing list
Maxima-discuss <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/maxima-discuss
VicTT | 19 Jul 11:22 2014
Picon

Polynomial enumeration problem

Let P(x) be a polynomial of degree n with real distinct roots x_1,x_2,...,x_n.
Let S denote the set of these roots, card(S)=n
Let Q denote the set of coefficients of P(x), card(Q)=n+1
We are looking to enumerate all P(x) for arbitrary n such that the set S is included in Q.
Could this be done in Maxima, and if so, how?
Thank you in advance,
Pirvu Paul Daniel
------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
Maxima-discuss mailing list
Maxima-discuss <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/maxima-discuss
Dimiter Prodanov | 18 Jul 12:19 2014
Picon

Re: numerical issue division

Dear all,

I have written  continued fraction calculation routines but there are some unexpected results.

cf1(x, k, N):=block([ _ret:  [fix(x)]],
local ( errormsg ),
errormsg:false,
if k<N then 
errcatch (
_ret: cons (_ret , cf1(1/(x- fix(x)), k+1, N) )
),
flatten(_ret)
)$


cf2(x, k, N):=block([ _ret: [ fix(x)], d: x - fix(x) ],
if k<N then 
if d>0.0 then (
_ret: cons (_ret, cf2(1/d , k+1, N) )
), 
flatten(_ret)
)$

In my Maxima 33.0 (Win XP GCL 2.6.8) the behaviour of the routined is differenent

cf1(%e, 0, 100);

>> [2,1,2,1,1,4,1,1,6,1,1,8,1,1,10,1,1,12,1,1,14,1,1,16,1,1
,18,1,1,floor(1/(1/(1/(1/(1/(1/(1/(1/(1/(1/(1/(1/(1/(1/(1/(1/(1/(1/(1/(1/(1/(1/(1/(1/(1/(1/(1/(1/(1/(%e-2)-1)-2)-1)-1)-4)-1)-1)-6)-1)-1)-8)-1)-1)-10)-1)-1)-12)-1)-1)-14)-1)-1)-16)-1)-1)-18)-1)-1))

cf2(%e, 0, 100);

>> [2,1,2,1,1,4,1,1,6,1,1,8,1,1,10,1,1,12,1,1,14]

while 
cf2(1.0/30.3, 0, 100);

gives a Lisp error

Maxima encountered a Lisp error:
 Error in PROGN [or a callee]: Bind stack overflow.
Automatically continuing.
To enable the Lisp debugger set *debugger-hook* to nil.

cf2(1.0/30.3, 0, 100);

cf1(1.0/30.3, 0, 100); totally kills the system.

best regards,

Dimiter


------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
Maxima-discuss mailing list
Maxima-discuss <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/maxima-discuss
有坂富雄 | 17 Jul 12:52 2014

Re: Bug in implicit_plot, julia, mandelbrot and transform_xy

Hi,

I would like to set both wxjulia() and wxmandelbrot() to be automatically loaded.
So that I made the patch for the file max_ext.lisp as follows:

$ diff -u ./maxima-code-467964e61ac0a952235ae25424410f1ebdb71c0f/src/max_ext.lisp ./max_ext.lisp
--- ./maxima-code-467964e61ac0a952235ae25424410f1ebdb71c0f/src/max_ext.lisp 2014-07-17 05:09:04.000000000 +0900
+++ ./max_ext.lisp 2014-07-17 12:22:19.000000000 +0900
<at> <at> -307,6 +307,8 <at> <at>
 (dolist (f
   '($julia
     $mandelbrot
+    $wxjulia
+    $wxmandelbrot
     $plotdf
     $ploteq))
   (setf (get f 'autoload) "dynamics"))

Regards,
Tomio Arisaka


On 2014-7-9, 有坂富雄 wrote:

Hi Jaime,

I am using wxMaxima and I like your mandelbrot() and julia().
So that I made two functions which are $wxmandelbrot and $wxjulia for wxMaxima.
The patch for complex_dynamics.lisp is attached to this mail.

Please try using the wxmandelbrot() and the wxjulia() with wxMaxima.

Regards,
Tomio Arisaka


P.S.
Examples for my test:

    load("~/Downloads/maxima/dynamics_wx/complex_dynamics.lisp");

    wxjulia (-0.55, 0.6, [iterations, 36], [x, -0.3, 0.2], [y, 0.3, 0.9],
           [grid, 400, 400], [color_bar_tics, 0, 6, 36]);

    wxmandelbrot ([iterations, 30], [x, -2, 1], [y, -1.2, 1.2], [grid,400,400]);

    wxplot_size : [500,500];
    wxjulia (-0.55, 0.6, [iterations, 36], [x, -0.3, 0.2], [y, 0.3, 0.9],
           [grid, 400, 400], [color_bar_tics, 0, 6, 36]);

    wxplot_size : [600,400];
    wxmandelbrot ([iterations, 30], [x, -2, 1], [y, -1.2, 1.2], [grid,400,400]);

    wxplot_size : [500,300];


My environment:
  Maxima version: "5.33.0"
  Maxima build date: "2014-04-20 04:11:32"
  Host type: "x86_64-apple-darwin10.8.0"
  Lisp implementation type: "SBCL"
  Lisp implementation version: "1.1.17"
  gnuplot --version: gnuplot 4.6 patchlevel 5
  wxMaxima 13.04.2


On 2014-6-2, Jaime Villate wrote:

Hi Tomio,

On 02-06-2014 12:26, 有坂富雄 wrote:
       > I hoped this patch would help you.
Yes it helps a lot. You're absolutely right. I will fix it today. Thanks
for all your help!

Jaime

Attachment (complex_dynamics.lisp.diff): application/octet-stream, 2726 bytes
------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
Maxima-discuss mailing list
Maxima-discuss <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/maxima-discuss

Gmane