#2777 get lost socket connection - and otherwise takes too long

None
wont-fix
nobody
None
5
2014-08-25
2014-07-05
dan hayes
No

When n>14 get lost socket connection message and otherwise when it is less than 13 still takes too long when it should not.

(n:15,vs:makelist(2^(-n/2),i,1,2^n),t:copylist(vs),
t1:copylist(vs),ang:float(asin(1/2^(n/2))), k:floor(float(((log(%pi)-log(2)-log(ang))/log(3)))),
for i thru k+1 do(t[1]:-t[1],t:2*t1.t.t1-t,
t1:copylist(t),ldisp(["i",i,"t[1]^2",float(t[1]^2),
"angle/(%pi/2)",float(round(100*float(2*asin(t[1])/%pi))/100),
"multiple of orig",float(round(100*float(asin(t[1])/ang))/100)])));

Related

Bugs: #2777

Discussion

  • dan hayes
    dan hayes
    2014-07-05

    wxMaxima version: 13.4.0
    Maxima version: 5.31.1
    Maxima build date: 2013-09-24 09:49:12
    Host type: i686-pc-mingw32
    Lisp implementation type: GNU Common Lisp (GCL)
    Lisp implementation version: GCL 2.6.8

    NOte even when simplify it to:

    (n:16,vs:makelist(2^(-n/2),i,1,2^n),t:float(copylist(vs)),t1:float(copylist(vs)),ang:float(asin(1/2^(n/2))), k:floor(float(((log(%pi)-log(2)-log(ang))/log(3)))),for i thru k+1 do(t[1]:-t[1],t:2*t1.t.t1-t,t1:copylist(t)) );

    For the above n=16 still get lost socket connection

     
  • dan hayes
    dan hayes
    2014-07-05

    wxMaxima version: 13.4.0
    Maxima version: 5.31.1
    Maxima build date: 2013-09-24 09:49:12
    Host type: i686-pc-mingw32
    Lisp implementation type: GNU Common Lisp (GCL)
    Lisp implementation version: GCL 2.6.8

    Even simpler:
    (n:16,vs:makelist(2^(-n/2),i,1,2^n),t:float(copylist(vs)),t1:float(copylist(vs)),ang:float(asin(1/2^(n/2))), k:floor(float(((log(%pi)-log(2)
    -log(ang))/log(3)))),t[1]:-t[1],t:2*t1.t.t1-t,t1:copylist(t) );

    get lost socket connection

     
    • dan hayes
      dan hayes
      2014-07-21

      perhaps it could be an out of memory or memory allocation error as the array or list gets too large but if so should get a message to that effect rather than just loosing connection

      On Saturday, July 5, 2014 1:57 AM, dan hayes zmth@users.sf.net wrote:

      wxMaxima version: 13.4.0
      Maxima version: 5.31.1
      Maxima build date: 2013-09-24 09:49:12
      Host type: i686-pc-mingw32
      Lisp implementation type: GNU Common Lisp (GCL)
      Lisp implementation version: GCL 2.6.8
      Even simpler:
      (n:16,vs:makelist(2^(-n/2),i,1,2^n),t:float(copylist(vs)),t1:float(copylist(vs)),ang:float(asin(1/2^(n/2))), k:floor(float(((log(%pi)-log(2)
      -log(ang))/log(3)))),t[1]:-t[1],t:2*t1.t.t1-t,t1:copylist(t) );
      get lost socket connection


      [bugs:#2777] get lost socket connection - and otherwise takes too long
      Status: open
      Group: None
      Created: Sat Jul 05, 2014 05:13 AM UTC by dan hayes
      Last Updated: Sat Jul 05, 2014 06:08 AM UTC
      Owner: nobody
      When n>14 get lost socket connection message and otherwise when it is less than 13 still takes too long when it should not.
      (n:15,vs:makelist(2^(-n/2),i,1,2^n),t:copylist(vs),t1:copylist(vs),ang:float(asin(1/2^(n/2))), k:floor(float(((log(%pi)-log(2)-log(ang))/log(3))))
      ,for i thru k+1 do(t[1]:-t[1],t:2t1.t.t1-t,t1:copylist(t),ldisp(["i",i,"t[1]^2",float(t[1]^2),"angle/(%pi/2)",float(round(100float(2asin(t[1])/%pi))/100)
      ,"multiple of orig",float(round(100float(asin(t[1])/ang))/100)]) ));


      Sent from sourceforge.net because maxima-bugs@lists.sourceforge.net is subscribed to https://sourceforge.net/p/maxima/bugs/
      To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/maxima/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.


      Open source business process management suite built on Java and Eclipse
      Turn processes into business applications with Bonita BPM Community Edition
      Quickly connect people, data, and systems into organized workflows
      Winner of BOSSIE, CODIE, OW2 and Gartner awards
      http://p.sf.net/sfu/Bonitasoft


      Maxima-bugs mailing list
      Maxima-bugs@lists.sourceforge.net
      https://lists.sourceforge.net/lists/listinfo/maxima-bugs

       

      Related

      Bugs: #2777

      Attachments
  • Robert Dodier
    Robert Dodier
    2014-07-29

    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,5 +1,10 @@
     When n>14 get lost socket connection message and otherwise when it is less than 13 still takes too long when it should not.
    
    -(n:15,vs:makelist(2^(-n/2),i,1,2^n),t:copylist(vs),t1:copylist(vs),ang:float(asin(1/2^(n/2))), k:floor(float(((log(%pi)-log(2)-log(ang))/log(3))))   
    -,for i thru k+1 do(t[1]:-t[1],t:2*t1.t.t1-t,t1:copylist(t),ldisp(["i",i,"t[1]^2",float(t[1]^2),"angle/(%pi/2)",float(round(100*float(2*asin(t[1])/%pi))/100)
    -,"multiple of orig",float(round(100*float(asin(t[1])/ang))/100)])   ));
    +~~~~
    +(n:15,vs:makelist(2^(-n/2),i,1,2^n),t:copylist(vs),
    +t1:copylist(vs),ang:float(asin(1/2^(n/2))), k:floor(float(((log(%pi)-log(2)-log(ang))/log(3)))),
    +for i thru k+1 do(t[1]:-t[1],t:2*t1.t.t1-t,
    +t1:copylist(t),ldisp(["i",i,"t[1]^2",float(t[1]^2),
    +"angle/(%pi/2)",float(round(100*float(2*asin(t[1])/%pi))/100),
    +"multiple of orig",float(round(100*float(asin(t[1])/ang))/100)])));
    +~~~~
    
     
  • Robert Dodier
    Robert Dodier
    2014-07-29

    (1) About execution speed: makelist(2^((-n)/2), ...) is creating a list with an exact value, and arithmetic on such values is relatively slow. Try myval:float(2^((-n)/2)), makelist(myval, ...), ... instead to work with floats, which should be faster.

    (2) About the lost connection error: try executing your program in command line Maxima and see what error you get. As it stands, there is no information in the bug report so far which could enable others to figure out what is going on.

     
    • dan hayes
      dan hayes
      2014-07-30

      ok, I am still trying to figure out how to use command line maxima - not straightforward how to do that. As seems that is what i was already doing - will try to figure out what the difference is.

      On Tuesday, July 29, 2014 5:14 PM, Robert Dodier robert_dodier@users.sf.net wrote:

      (1) About execution speed: makelist(2^((-n)/2), ...) is creating a list with an exact value, and arithmetic on such values is relatively slow. Try myval:float(2^((-n)/2)), makelist(myval, ...), ... instead to work with floats, which should be faster.
      (2) About the lost connection error: try executing your program in command line Maxima and see what error you get. As it stands, there is no information in the bug report so far which could enable others to figure out what is going on.


      [bugs:#2777] get lost socket connection - and otherwise takes too long
      Status: open
      Group: None
      Created: Sat Jul 05, 2014 05:13 AM UTC by dan hayes
      Last Updated: Tue Jul 29, 2014 09:49 PM UTC

      Owner: nobody
      When n>14 get lost socket connection message and otherwise when it is less than 13 still takes too long when it should not.
      (n:15,vs:makelist(2^(-n/2),i,1,2^n),t:copylist(vs), t1:copylist(vs),ang:float(asin(1/2^(n/2))), k:floor(float(((log(%pi)-log(2)-log(ang))/log(3)))), for i thru k+1 do(t[1]:-t[1],t:2t1.t.t1-t, t1:copylist(t),ldisp(["i",i,"t[1]^2",float(t[1]^2), "angle/(%pi/2)",float(round(100float(2asin(t[1])/%pi))/100), "multiple of orig",float(round(100float(asin(t[1])/ang))/100)])));


      Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/maxima/bugs/2777/
      To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

       

      Related

      Bugs: #2777

      Attachments
  • Robert Dodier
    Robert Dodier
    2014-08-25

    • status: open --> wont-fix
     
  • Robert Dodier
    Robert Dodier
    2014-08-25

    This is probably an out of memory error, causing Maxima to crash. It appears wxMaxima is not handling that gracefully -- if so, it's a bug in wxMaxima and should be reported to their issue tracker: https://github.com/andrejv/wxmaxima/issues

    I'm guessing the Lisp implementation is GCL. It is probably also a bug in GCL, since GCL should catch the error and not crash.

    Closing this report as won't-fix since there isn't anything for Maxima to fix here.