Re: [sage-support] Server connection problems - which are likely linked to enclosed code.
Looks like you downloaded a 10.6 binary and are trying to use it on your 10.5.8 machine. You (probably) want the first item in this list: http://boxen.math.washington.edu/sage/osx/intel/index.html On Thu, Feb 24, 2011 at 10:14 PM, amandachan2...@yahoo.com wrote: > Essentially, I'm having problems understanding this "unknown required > load command" code. I'm unable to connect to the server, or even > access sage through terminal. I'm confused, and would really > appreciate some enlightment? > I'm running a Mac OSX, version 10.5.8, duo intel processor, after > downloading, I dragged the file into my applications and ran it from > there. > > -- > | Sage Version 4.6.1, Release Date: 2011-01-11 | > | Type notebook() for the GUI, and license() for information. | > -- > > dyld: unknown required load command 0x8022 > /Volumes/sage-4.6.1-OSX-64bit-10.6-i386-Darwin/sage/local/bin/sage- > sage: line 253: 40748 Trace/BPT trap "$SAGE_ROOT/local/ > bin/"sage-location > logout > > [Process completed] > > > There were some complications with the installation, but I can't > figure it out. After dragging it in, I double clicked the sage icon(as > indicated), then it started running with terminal anyways, step number > 4(below) was ignored because of this. Could this be a reason? If so, > how would I go about fixing it? > > 4) Select to run it with "Terminal": > Choose Applications, then select "All Applications" in the > "Enable:" drop down. Change the "Applications" drop down > to "Utilities". On the left, scroll and select "Terminal". > Click "Open", then in the next dialog select "Update". > > Whenever I try to start sage server, this shows up in my terminal: > Last login: Fri Feb 25 01:12:03 on ttys000 > STUDENT-achan:~ achan$ '/Volumes/sage-4.6.1-OSX-64bit-10.6-i386-Darwin/ > sage/'/sage --notebook > Detected SAGE64 flag > Building Sage on OS X in 64-bit mode > dyld: unknown required load command 0x8022 > /Volumes/sage-4.6.1-OSX-64bit-10.6-i386-Darwin/sage/local/bin/sage- > sage: line 608: 78729 Trace/BPT trap sage-cleaner >&/dev/null > /Volumes/sage-4.6.1-OSX-64bit-10.6-i386-Darwin/sage/local/bin/sage- > sage: line 608: 78730 Trace/BPT trap sage-notebook "$@" > > > > > > Thank you! > > -- > To post to this group, send email to sage-support@googlegroups.com > To unsubscribe from this group, send email to > sage-support+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/sage-support > URL: http://www.sagemath.org > -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Server connection problems - which are likely linked to enclosed code.
Essentially, I'm having problems understanding this "unknown required load command" code. I'm unable to connect to the server, or even access sage through terminal. I'm confused, and would really appreciate some enlightment? I'm running a Mac OSX, version 10.5.8, duo intel processor, after downloading, I dragged the file into my applications and ran it from there. -- | Sage Version 4.6.1, Release Date: 2011-01-11 | | Type notebook() for the GUI, and license() for information.| -- dyld: unknown required load command 0x8022 /Volumes/sage-4.6.1-OSX-64bit-10.6-i386-Darwin/sage/local/bin/sage- sage: line 253: 40748 Trace/BPT trap "$SAGE_ROOT/local/ bin/"sage-location logout [Process completed] There were some complications with the installation, but I can't figure it out. After dragging it in, I double clicked the sage icon(as indicated), then it started running with terminal anyways, step number 4(below) was ignored because of this. Could this be a reason? If so, how would I go about fixing it? 4) Select to run it with "Terminal": Choose Applications, then select "All Applications" in the "Enable:" drop down. Change the "Applications" drop down to "Utilities". On the left, scroll and select "Terminal". Click "Open", then in the next dialog select "Update". Whenever I try to start sage server, this shows up in my terminal: Last login: Fri Feb 25 01:12:03 on ttys000 STUDENT-achan:~ achan$ '/Volumes/sage-4.6.1-OSX-64bit-10.6-i386-Darwin/ sage/'/sage --notebook Detected SAGE64 flag Building Sage on OS X in 64-bit mode dyld: unknown required load command 0x8022 /Volumes/sage-4.6.1-OSX-64bit-10.6-i386-Darwin/sage/local/bin/sage- sage: line 608: 78729 Trace/BPT trap sage-cleaner >&/dev/null /Volumes/sage-4.6.1-OSX-64bit-10.6-i386-Darwin/sage/local/bin/sage- sage: line 608: 78730 Trace/BPT trap sage-notebook "$@" Thank you! -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
Re: [sage-support] Re: In ' while ' or ' for ' loop in Sage, can one use ' { ' and ' } ' like C program?
On Wed, Feb 23, 2011 at 10:54 PM, Jason Grout wrote: > On 2/24/11 12:49 AM, Santanu Sarkar wrote: > > >> In ' while ' or ' for ' loop in Sage, can one use ' { ' and ' } ' like C >> program? > > No. In Python (the language you are using when you write Sage code) use > indentation to indicate blocks of code. > > for i in range(100): > print i > print i^2 > > See > http://docs.python.org/tutorial/introduction.html?highlight=indentation#first-steps-towards-programming > for a longer introduction. > You an also use comments if you want to have some sort of explicit end marker. for i in range(100): print i print i^2 # end for I used to do that when I was first learning Python. William -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Re: Checking for convexity of Lattice Polytopes
On Thursday, February 24, 2011 6:29:11 PM UTC, Dmitri wrote: > > I think my problem is actually doing the comparison. So I have this > chosen set of points which I don't know is convex. I compute its > convex hull. Now how do I compare these two objects? > Assuming that we are still talking about lattice polytopes: check that LatticePolytope(points).npoints() is the same as the number of points you started with. -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
Re: [sage-support] Problem integrating piecewise linear function (breaks with constant piece)
OK; thanks! Ron Rivest -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Re: Checking for convexity of Lattice Polytopes
> A chosen set of points is convex if it is equal to its convex hull. So all > you have to do is compute the hull and compare with it. I think my problem is actually doing the comparison. So I have this chosen set of points which I don't know is convex. I compute its convex hull. Now how do I compare these two objects? Dmitri On Feb 23, 4:29 pm, Volker Braun wrote: > On Thursday, February 24, 2011 12:12:12 AM UTC, Dmitri wrote: > > > [...] The intersection of all these equations forms a lattice > > polytope (finite and bounded). I want to know if that polytope is > > convex or not. > > I'm confused. Intersections of convex sets are convex. > > > [...] One question that I'm > > interested is what results when we take the union of two tops. One > > obvious question to ask is whether it's convex or not. > > A chosen set of points is convex if it is equal to its convex hull. So all > you have to do is compute the hull and compare with it. > > Volker -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Re: notebook does not leave enough vertical space
On 2/24/11 12:08 PM, kbriggs wrote: I find that the notebook often cuts off the top half of output formulas (with "Typeset" ticked), and does not provide a scrollbar to allow it all to be seen. For example, with this input: integrate(x/a2*exp(-x2/2/a2)*exp(-(x-mu)2/sigma2/2)/sqrt(2*pi)/ sigma,x,0,z); Here is working code for someone that wants to try that example: var('x,a,mu,sigma,z') assume(z>0) y=integrate(x/a^2*exp(-x^2/2/a^2)*exp(-(x-mu)^2/sigma^2/2)/sqrt(2*pi)/ sigma,x,0,z) y My guess off the top of my head is that it is because jsmath doesn't give the browser good feedback on how high the output region should be. A work-around could be adding a vertical scroll-bar (but I'm not sure that would work). Another thing to try is moving to mathjax. Jason -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] notebook does not leave enough vertical space
I find that the notebook often cuts off the top half of output formulas (with "Typeset" ticked), and does not provide a scrollbar to allow it all to be seen. For example, with this input: integrate(x/a^2*exp(-x^2/2/a^2)*exp(-(x-mu)^2/sigma^2/2)/sqrt(2*pi)/ sigma,x,0,z); Keith -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
Re: [sage-support] Problem integrating piecewise linear function (breaks with constant piece)
On Thu, Feb 24, 2011 at 1:52 PM, Ronald L. Rivest wrote: > Is posting this bug here on this list sufficient to report it so that it > will (eventually) get fixed, or is there some other process for doing so > that needs to be done next? I think in general you open a ticket on trac. http://trac.sagemath.org/sage_trac/ I find http://trac.sagemath.org/sage_trac/report/33 [recent activity] the most useful front page. In this case I think I see what the problem is, so I've opened a ticket and put up a patch, #10841. Doug -- Department of Earth Sciences University of Hong Kong -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org