[sage-support] euclidean vector ops

2010-09-20 Thread Enrico
Hi folks, I want to use Sage to do repeated calculations of simple euclidean geometry. I was using a library that used classes like this: class Vector2: __slots__ = ['x', 'y'] def __init__(self, x, y): self.x = x self.y = y I like to refer to x and y coords of a vector v, no

[sage-support] Re: Cannot upgrade from 4.5.2 to 4.5.3

2010-09-20 Thread samrat
Hi, The problem still persists. After following the solution that Jan provided i got errors; i am posting the last couple of lines: IOError: ('http error', 407, 'Proxy Authentication Required', ) Error getting new packages! On searching some more here i got some solution where Prof. Stein had me

[sage-support] Re: Arbitrary precision in Cython & NumPy?

2010-09-20 Thread Jason Grout
On 9/19/10 7:09 AM, KvS wrote: Alright, many thanks for the clear and extensive answer Thierry. Bottomline is thus that I'll have to live with it. On a sidenote, I must admit it surprises me. I'm only an amateur programmer, let alone that I know anything about the subtleties of how cpus interac

[sage-support] Re: installation problem

2010-09-20 Thread samrat
The 'readline hell' part is an annoying openSUSE problem. If you see the file spkg-install of the package readline, you will find that there is a provision for trying to recognize the system's readline package. But this is only useful for some versions of openSUSE. For example readline in sage-4.5.

[sage-support] plot3d without a web browser?

2010-09-20 Thread Dima Pasechnik
It's unclear to me whether plot3d, when started from (non-notebook) sage actually needs a browser running. The FAQ (http://www.sagemath.org/doc/faq/faq-usage.html) says one needs to install Java SDK (sic!) I understand one runs the jmol applet that does the actual work. Is a browser with a java plu

[sage-support] Re: Cannot upgrade from 4.5.2 to 4.5.3

2010-09-20 Thread Dima Pasechnik
Well, do a fresh install instead, if this does not work for you. -upgrade is known to misbehave now and then. Dima On Sep 20, 4:10 pm, samrat wrote: > Hi, > > The problem still persists. After following the solution that Jan > provided i got errors; i am posting the last couple of lines: > > IOEr

[sage-support] Re: plot3d without a web browser?

2010-09-20 Thread kcrisman
On Sep 20, 7:38 am, Dima Pasechnik wrote: > It's unclear to me whether plot3d, when started from (non-notebook) > sage actually needs a browser running. No, you should be able to view the plots with just Java (maybe with SDK? I don't know for sure on that). Also, if you use the viewer='tachyo

[sage-support] Using wavfile.write() in sage generates error message

2010-09-20 Thread j wade
Hello, I am attempting to create a .wav file from an array in sage using the package wavfile. I am importing a .wav file using the package wavfile, and then using the python wavelets package 'pywt' to create the array. Here are the commands: import pywt, scipy, numpy from scipy.io import wavfil

Re: [sage-support] Using wavfile.write() in sage generates error message

2010-09-20 Thread Mitesh Patel
On 09/20/2010 10:37 AM, j wade wrote: > I am attempting to create a .wav file from an array in sage using the > package wavfile. I am importing a .wav file using the package > wavfile, and then using the python wavelets package 'pywt' to create > the array. Here are the commands: > > import pywt

[sage-support] Re: Using wavfile.write() in sage generates error message

2010-09-20 Thread Marshall Hampton
I think the scipy wavefile function doesn't like Sage ints. So if your last line is: wavfile.write("./noisyholanew.wav",int(44100), xnew) there are no errors, although when I try to play it (with a input wav of two sine waves) I don't hear anything. -M. Hampton On Sep 20, 10:37 am, j wade wro

[sage-support] Re: Using wavfile.write() in sage generates error message

2010-09-20 Thread Marshall Hampton
Using the python wave module directly seems to work; once you have xnew as above you can do: import wave class SoundFile: def __init__(self, signal,outname=''): self.file = wave.open(outname, 'wb') self.signal = signal self.sr = 44100 def write(self): self.file

[sage-support] declaring integer variable in ODE

2010-09-20 Thread Oscar Gerardo Lazo Arjona
Hello! I'm trying to solve this ODE: var('t alpha beta n') x=function('x',t) eq=diff(x,t)^2==alpha-beta abs(x)^n assume(n,'integer') desolve(eq,x,ivar=t,contrib_ode=True) but I get: Traceback (click to the left of this block for traceback) ... Is n an integer? but I've already told sage that

[sage-support] bug in solving linear systems

2010-09-20 Thread Alex Raichev
Hi all: This looks like a bug in Sage 4.5.3 regarding solving linear systems. Alex -- | Sage Version 4.5.3, Release Date: 2010-09-04 | | Type notebook() for the GUI, and license() for information.|

Re: [sage-support] Re: Using wavfile.write() in sage generates error message

2010-09-20 Thread Mitesh Patel
On 09/20/2010 08:17 PM, Marshall Hampton wrote: > I think the scipy wavefile function doesn't like Sage ints. So if Oops. Thanks, Marshall! -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups

[sage-support] Re: plot3d without a web browser?

2010-09-20 Thread Dima Pasechnik
Why SDK (nowadays called JDK, apparently)? Would JRE be enough? But if so, what does "installed" mean? When you pull a jre6 distribution from Oracle/Sun, the instructions only talk about how to set up the web browser to use it, nothing more. Or an "applet viewer" only comes with JDK? In fact, I wo

[sage-support] Re: plot3d without a web browser?

2010-09-20 Thread Dima Pasechnik
On Sep 21, 12:49 pm, Dima Pasechnik wrote: > In fact, I would like to know as well what happens if Sage is run > remotely, via X11. > Does the Java (DK, or RE, whatever) need to be installed on the > server, and then one views it via X11? Indeed, that's how this works. By the way, in my case, Deb