[sage-support] Re: Sage in other classes, importing data

2009-04-07 Thread Stan Schymanski
I managed to open .txt files without uploading them first. The spaces in your directory names could cause problems, but I'm guessing here. On my mac, I did: pathname = '/Users/sschym/Documents/papers/WRR_budyko/data/CT45bigleafmultisoil8n_12_scl_30yr/' data = numpy.loadtxt(pathname + 'yearly.t

[sage-support] Re: Sage in other classes, importing data

2009-04-07 Thread William Stein
On Tue, Apr 7, 2009 at 8:30 PM, hou.andrew wrote: > > I tried > > import numpy > metdata = numpy.loadtxt('C:\Users\Andrew\Documents\BIOEN 301\Lab 1\AH > \' + 'base.txt',dtype='S17') > metdata.std(axis=None, dtype=None) > > Syntax error? > You must upload your data to the notebook first using

[sage-support] Re: Sage in other classes, importing data

2009-04-07 Thread hou.andrew
I tried import numpy metdata = numpy.loadtxt('C:\Users\Andrew\Documents\BIOEN 301\Lab 1\AH \' + 'base.txt',dtype='S17') metdata.std(axis=None, dtype=None) Syntax error? ~Andrew On Apr 7, 4:49 pm, William Stein wrote: > On Tue, Apr 7, 2009 at 5:13 AM, Stan Schymanski wrote: > > > Dear Andrew,

[sage-support] A small error on sagemath

2009-04-07 Thread Alasdair
From http://www.sagemath.org/doc/reference/sage/calculus/wester.html: sage: # (YES) Taylor expansion of Ln(x)^a*Exp(-b*x) at x=1. E= EllipticCurve([1,2,3/4,7,19]); E (The answer given is correct, though) Clearly the command should be taylor(ln(x)^a*exp(-b*x),x,1,10) -Alasdair --~--~-~

[sage-support] Re: sage tutorial on amazon

2009-04-07 Thread David Joyner
On Tue, Apr 7, 2009 at 5:41 PM, John H Palmieri wrote: > > On Apr 7, 12:11 pm, David Joyner wrote: >> On Mon, Apr 6, 2009 at 12:59 AM, John H Palmieri >> wrote: >> >> >> >> > This may be overkill, but the manual documentclass sets some options >> > and then passes everything else to report.cls

[sage-support] Re: Sage in other classes, importing data

2009-04-07 Thread William Stein
On Tue, Apr 7, 2009 at 5:13 AM, Stan Schymanski wrote: > > Dear Andrew, > > Perhaps this may help: > > sage: import numpy > sage: metdata = numpy.loadtxt(pathname + 'filename.txt',dtype='S17') > > where pathname is a text string with the path to the file and > 'filename.txt' needs to be replaced

[sage-support] Re: Python Extensions

2009-04-07 Thread William Stein
On Tue, Apr 7, 2009 at 11:19 AM, Robert Bradshaw wrote: > > On Apr 7, 2009, at 10:52 AM, Todd wrote: > >> >> Hi, >> >> I understand the design decisions for the monolothic design of Sage. >> However,  I'd like to carve out some pieces of it to use as a regular >> python extensions without the sag

[sage-support] Re: can't integrate a piecewise-defined function

2009-04-07 Thread William Stein
On Tue, Apr 7, 2009 at 3:02 PM, Greg Marks wrote: > > SAGE gave me this strange result when attempting to integrate a > piecewise-defined function: > The following is the only thing SAge has for piecewise functions: sage: f = Piecewise([[(0,pi/2),x],[(pi/2,pi),sin(x)]]) sage: f.integral() Piece

[sage-support] Re: Linux CentOS sage install problem

2009-04-07 Thread mabshoff
On Apr 7, 2:20 pm, William Stein wrote: > On Tue, Apr 7, 2009 at 12:14 PM, Timothy Clemans > > > Are you trying to build from source or use a binary? You're on > > Bluehost right trying to use Sage? > > I don't think there's a binary for CentOS > > There are CentOS binaries: > >    http://sagem

[sage-support] can't integrate a piecewise-defined function

2009-04-07 Thread Greg Marks
SAGE gave me this strange result when attempting to integrate a piecewise-defined function: sage: v,x=var('v,x') sage: def chi_squared_pdf(x,v): : if x > 0: : return 1/( 2^(v/2) * gamma(v/2) ) * x^(v/2 - 1) * exp(- x/2) : else: : return 0

[sage-support] Re: sage tutorial on amazon

2009-04-07 Thread John H Palmieri
On Apr 7, 12:11 pm, David Joyner wrote: > On Mon, Apr 6, 2009 at 12:59 AM, John H Palmieri > wrote: > > > > > This may be overkill, but the manual documentclass sets some options > > and then passes everything else to report.cls.  So you can make a copy > > of report.cls, say in > > Do you mean

[sage-support] Re: Linux CentOS sage install problem

2009-04-07 Thread William Stein
On Tue, Apr 7, 2009 at 12:14 PM, Timothy Clemans wrote: > > Are you trying to build from source or use a binary? You're on > Bluehost right trying to use Sage? > I don't think there's a binary for CentOS There are CentOS binaries: http://sagemath.org/bin/linux/ William > and you're just n

[sage-support] Re: Python Extensions

2009-04-07 Thread Robert Bradshaw
On Apr 7, 2009, at 10:52 AM, Todd wrote: > > Hi, > > I understand the design decisions for the monolothic design of Sage. > However, I'd like to carve out some pieces of it to use as a regular > python extensions without the sage preprocessor, specifically the > Basic algebra and calculus. Curr

[sage-support] Re: Linux CentOS sage install problem

2009-04-07 Thread Timothy Clemans
Are you trying to build from source or use a binary? You're on Bluehost right trying to use Sage? I don't think there's a binary for CentOS and you're just not going to be able to build Sage on their server. On Tue, Apr 7, 2009 at 6:07 AM, Mikie wrote: > > I get the following error after ./sage

[sage-support] Re: Printing a worksheet with plots does not work

2009-04-07 Thread adrian
I was reading some newsgroops and apparently it happens for a second user, not for the regular user. I switched to opera and now everything works. Sage is not at fault. Plus, the jmol applet now works in ubuntu64! I ran sage with export SAGE_BROWSER=opera I can print now. Even pages with plo

[sage-support] Re: %r in notebook

2009-04-07 Thread William Stein
On Tue, Apr 7, 2009 at 6:34 AM, Flavio Coelho wrote: > > Another manifestation of the same bug: > > http://groups.google.com/group/sage-support/browse_thread/thread/3440b5303fb7585e/5d3f7e31381c1647?lnk=gst&q=Flavio+Coelho#5d3f7e31381c1647 > Patch up -- please review it: http://trac.sagemath.or

[sage-support] Re: new cpu flag in 3.4 x86_64 binaries: sse4_1?

2009-04-07 Thread niessner
Since the other person has not gotten around to answering you I gave it a spin on my x86_64 that seems to be hours old as well. There are failures but it is not easy to tell if these are significant or not. However, I always figure any and all failures are a bad thing. The following tests failed

[sage-support] Re: How to test?

2009-04-07 Thread Timothy Clemans
Mikie virtual private server offerings (slicehost.com and linenode.com) are a lot less expensive and more flexible then dedicated solutions. On Tue, Apr 7, 2009 at 11:47 AM, Mikie wrote: > > BlueHost is a non-dedicated server,  something like Godaddy only > better.  So are you running Sage on a

[sage-support] Re: sage tutorial on amazon

2009-04-07 Thread David Joyner
On Mon, Apr 6, 2009 at 12:59 AM, John H Palmieri wrote: > ... > > This may be overkill, but the manual documentclass sets some options > and then passes everything else to report.cls.  So you can make a copy > of report.cls, say in Do you mean manual.cls? > > SAGE_ROOT/devel/sage/doc/output

[sage-support] Re: How to test?

2009-04-07 Thread Mikie
BlueHost is a non-dedicated server, something like Godaddy only better. So are you running Sage on a Non-dedicated server? Dedicated servers typically cost about $90/month. On Apr 6, 9:46 am, Jaap Spies wrote: > Mikie wrote: > > Hi Jaap, > > > Are you using Sage on a server like BlueHost? > >

[sage-support] Python Extensions

2009-04-07 Thread Todd
Hi, I understand the design decisions for the monolothic design of Sage. However, I'd like to carve out some pieces of it to use as a regular python extensions without the sage preprocessor, specifically the Basic algebra and calculus. So the root question is: how do I go about finding maxima

[sage-support] Re: Typecasting issue

2009-04-07 Thread William Stein
On Tue, Apr 7, 2009 at 9:34 AM, Flavio Coelho wrote: > > Hi, > > I am having a problem with some python code which runs perfectly in > straight python, bout fails inside sage, with the following error > message: Does it run fine in Sage's Python? sage -python >BIP is a package which is in PyP

[sage-support] Typecasting issue

2009-04-07 Thread Flavio Coelho
Hi, I am having a problem with some python code which runs perfectly in straight python, bout fails inside sage, with the following error message: Traceback (click to the left for traceback) ... TypeError: array cannot be safely cast to required type Traceback (most recent call last): File

[sage-support] Re: feature request

2009-04-07 Thread Flavio Coelho
Thanks, I think I'll do both: ask for an account, so that I can report bugs, and post about my feature request here (I'll open a new thread, so that the subject will be informative) Flávio On 7 abr, 16:20, davidloeffler wrote: > Hi Flavio, > > You can have a trac account if you like -- it's on

[sage-support] Re: feature request

2009-04-07 Thread davidloeffler
Hi Flavio, You can have a trac account if you like -- it's only as an anti-spam measure that we require a login. Just email Michael Abshoff (address on the trac front page). It's possible to create new tickets for feature requests; these should be allocated to the milestone "sage- wishlist". Tha

[sage-support] Re: %r in notebook

2009-04-07 Thread Flavio Coelho
Another manifestation of the same bug: http://groups.google.com/group/sage-support/browse_thread/thread/3440b5303fb7585e/5d3f7e31381c1647?lnk=gst&q=Flavio+Coelho#5d3f7e31381c1647 On 6 abr, 20:55, gerhard wrote: > Something appears broken in the notebook r interface > > From the command line >  

[sage-support] feature request

2009-04-07 Thread Flavio Coelho
Hi, what is the official channel for feature requests? I checked the trac site but the ticket system doesn't allow anonymous users to create new tickets. thanks, --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscrib

[sage-support] Linux CentOS sage install problem

2009-04-07 Thread Mikie
I get the following error after ./sage "sage:bin: error while loading shared lib:requires glibc 2.5 or later dynamic linker" Any help would be appreciated. --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe fro

[sage-support] Re: Installing on Ubuntu8.10

2009-04-07 Thread Marshall Hampton
Did you download the binary or the source? To compile the source, take a look at http://www.sagemath.org/doc/installation/source.html#steps-to-install-from-source As it says, you need some packages that aren't installed in Ubuntu by default. You can do the following from the command line or inst

[sage-support] Re: Sage in other classes, importing data

2009-04-07 Thread Stan Schymanski
Dear Andrew, Perhaps this may help: sage: import numpy sage: metdata = numpy.loadtxt(pathname + 'filename.txt',dtype='S17') where pathname is a text string with the path to the file and 'filename.txt' needs to be replaced with the file name. dtype='S17' means that you expect up to 17 characte

[sage-support] Sage in other classes, importing data

2009-04-07 Thread hou.andrew
Good Afternoon, Prof. Stein In an effort to move away from a program in which I either have to be present in a computer lab or buy, I am attempting to use Sage instead of MATLAB for my Bioengineering class where I have to analyze data acquired from an EMG. I have a waveform of time vs. voltage sa

[sage-support] Installing on Ubuntu8.10

2009-04-07 Thread moparak
hi I am trying to run Sage on Ubuntu8.10. I have just extracted it using tar xvzf *.tar.gz to a directory in my home folder but when I try to run it using ./sage, I get the following error message: Error setting environment variables by running */sage-3.4-linux- Ubuntu_8.10-i686-Linux/local/bin/

[sage-support] Re: removal of sage in ubuntu

2009-04-07 Thread Jason Grout
Dan Drake wrote: > On Mon, 06 Apr 2009 at 08:08PM -0700, vanny wrote: >> everything works fine, but i want to remove it entirely from my >> computer because i don't really use it. how do i do this without >> messing anything up? do i just delete my entire Sage directory? > > Yes. Just delete the