[sage-support] Re: Problems Installing Python Libraries

2010-03-01 Thread Ahmed Fasih
running a 64 bit or 32 bit version of linux? I'm > running a 64 bit archlinux. I'm wondering if my cuda libraries are > compatible with the sandboxed python. > > On 3/1/2010 2:09 PM, Ahmed Fasih wrote: > > Ignoring the oft-considered and oft-rejected suggestion that Sag

[sage-support] Re: Problems Installing Python Libraries

2010-03-01 Thread Ahmed Fasih
Ignoring the oft-considered and oft-rejected suggestion that Sage integrate with its host system, I take it that you couldn't get PyCUDA 0.9.3 working. I just got it working with Sage, Fedora 11, etc. When installing Boost 1.4.2, I made sure to "./bootstrap.sh --help" and see how to provide the co

[sage-support] Re: leastsq problem: array cannot be safely cast to required type.

2009-07-27 Thread Ahmed Fasih
Jose, I just tried this in a Notebook for a Sage having applied the patch as described in http://groups.google.com/group/sage-support/msg/00d0b4c724473e3c and it works: <<< import numpy as np from scipy.optimize import leastsq x = np.arange(0,3.0,0.25) y = np.array ([0.0,0.3066,1.2263,2.7591,4.90

[sage-support] Re: scipy binomial pmf

2009-07-09 Thread Ahmed Fasih
Jason, Robert, I'm trying to understand the patch, but it looks like this is a fix for *all* Numpy/Scipy-Sage type issues? If so---oh happy day! On Jul 9, 5:53 am, Jason Grout wrote: > Ahmed Fasih wrote: > > Writing your own is a good way to understand the implementation issu

[sage-support] Re: questions (complex function and Poncare sums)

2009-07-07 Thread Ahmed Fasih
Hi, I don't know what a modular group is but Python has some default support for complex numbers (e.g., you can type in 1+2j in just your standard Python interpreter and it will work), but all kinds of nice things are available in Sage: sage: z=1+2j sage: type(z) sage: C=ComplexField(256) sage:

[sage-support] Re: scipy binomial pmf

2009-07-06 Thread Ahmed Fasih
errors you are getting. On Jul 6, 3:57 pm, Mikie wrote: > Ahmed, > > Looks good, but I am creating a function in python that is called. > And 1r, .56r ,etc. does not pass.  I am taking these parameters from a > form and then using the function. > Is there a work-a-round? > Thank

[sage-support] Re: a question about the plotting in sage

2009-07-03 Thread Ahmed Fasih
If you can give a minimal example generating X, Y, and Stress_Z in Sage or Numpy, we'll be in a better position to reproduce the Matlab output. Also, check these fine 3d plotting examples for Matplotlib: http://www.scipy.org/Cookbook/Matplotlib/mplot3D all the examples will work in Sage since sag

[sage-support] Re: scipy binomial pmf

2009-07-03 Thread Ahmed Fasih
This is also an excellent resource: "How To Ask Questions The Smart Way," by the peerless Eric Steven Raymond: http://catb.org/esr/faqs/smart-questions.html On Jul 3, 8:17 pm, Ahmed Fasih wrote: > Writing your own is a good way to understand the implementation issues > t

[sage-support] Re: scipy binomial pmf

2009-07-03 Thread Ahmed Fasih
Writing your own is a good way to understand the implementation issues that we sometimes unthinkingly rely on, but for production code, it's always a good idea to default to the pre-packaged implementation. In this case, I think it's the standard issue with Scipy not understanding Sage types. Thi

[sage-support] Re: numpy.random

2009-06-29 Thread Ahmed Fasih
On Jun 29, 8:37 pm, Kevin Horton wrote: > It would be nice if that wiki FAQ mentioned the option of using an "r"   > suffix.  I didn't know about that possibility until now. > > I tried to set up a wiki account so I could edit the page, but that   > didn't seem to work. Took the liberty of doing

[sage-support] Re: Notebook do not work

2009-06-29 Thread Ahmed Fasih
Adam, try posting your error message. On Jun 26, 10:20 am, adam mohamed wrote: > Dear All, > >  I am having the same problem as the one below on a windows machine and I > tried: notebook(open_viewer=False) >  in vain. What I should do? Thanks >  Adam > > > > On Fri, Jun 26, 2009 at 2:06 PM, Will

[sage-support] Re: numpy.random

2009-06-29 Thread Ahmed Fasih
Giovanni, try this instead: sage: numpy.random.multinomial(10, [.5,.5], size=20r) The only difference is the "r" suffix to the size argument. When you type in numbers into sage, the pre-processor converts them to a base ring, which you can see by doing: sage: preparse('numpy.random.multinomial(

[sage-support] Re: DSage on Amazon EC2

2009-04-27 Thread Ahmed Fasih
As Sage continues to replace commercial and/or hand-rolled distributed numerical applications, this question becomes more and more important. I have neither EC2-specific nor general cloud-oriented comments---my use of Sage on a cluster was limited to very dumb file-based data- sharing. I'm hoping

[sage-support] Re: Importing modules and packages from gobal python install

2009-03-16 Thread Ahmed Fasih
Flavio, I will defer to a more expert Sage user on importing global python libraries into Sage but I will offer my own experiences in installing libraries into Sage. Since Sage has a complete Python installation in it (accessible through "sage -python"), I have been able to install the few Python