scipy

Scientific libraries for Lua?

Are there any scientific packages for Lua comparable to Scipy? Thanks for your time and help :) ...

Is there a way to install the scipy special module without the rest of scipy?

I'm writing some Python numerical code and would like to use some functions from the special module. So far, my code only depends on numpy, which I've found very easy to install in a variety of Python environments. Installing scipy, on the other hand, has generally been an exercise in frustration. Is there a way to get just the special ...

Java Scientific Packages similar to SciPy?

I've been looking around the internet for a Java scientific package that is "similar" to Scipy. The only thing I have really found is JScience but it seems not to offer plotting and such. Does anyone know of a good scientific package for Java? ...

Does anyone have example code of using scipy.stats.distributions?

I am strggling to figure out how to use the scipy.distributions package and wondered if anyone can post some example code for me. It appears to do everything I need, I just can't figure out how to use it. I need to generate two distributions, one log-normal and one poisson. I know the variance and lambda for each. Links to resources ...

Best way to write a Python function that integrates a gaussian?

In attempting to use scipy's quad method to integrate a gaussian (lets say there's a gaussian method named gauss), I was having problems passing needed parameters to gauss and leaving quad to do the integration over the correct variable. Does anyone have a good example of how to use quad w/ a multidimensional function? But this led me t...

Has anyone used SciPy with IronPython?

I've been able to use the standard Python modules from IronPython, but I haven't gotten SciPy to work yet. Has anyone been able to use SciPy from IronPython? What did you have to do to make it work? Update: See Numerical computing in IronPython with Ironclad Update: Microsoft is partnering with Enthought to make SciPy for .NET. ...

Can someone explain why scipy.integrate.quad gives different results for equally long ranges while integrating sin(X)?

I am trying to numerically integrate an arbitrary (known when I code) function in my program using numerical integration methods. I am using Python 2.5.2 along with SciPy's numerical integration package. In order to get a feel for it, i decided to try integrating sin(x) and observed this behavior- >>> from math import pi >>> from scipy....

Installing SciPy on Linux Debian

I'm a Linux n00b, and I want to install SciPy to help me on a homework asignment. This page has confused me more than helped me. I have been guiding myself on the INSTALL.txt file I got from sourceforge, which says PREREQUISITES ============= SciPy requires the following software installed: 1) Python__ 2.4.x or newer Debian pac...

Is there a way to reduce scipy/numpy precision to reduce memory consumption ?

On my 64-bit Debian/Lenny system (4GByte RAM + 4GByte swap partition) I can successfully do: v=array(10000*random([512,512,512]),dtype=np.int16) f=fftn(v) but with f being a np.complex128 the memory consumption is shocking, and I can't do much more with the result (e.g modulate the coefficients and then f=ifftn(f) ) without a MemoryEr...

Anything like SciPy in Ruby?

Looking further into the differences between Python and Ruby, is there a Ruby equivalent to SciPy, or what other scientific math gems are available for Ruby? ...

Can I compile numpy & scipy as eggs for free on Windows32?

I've been asked to provide Numpy & Scipy as python egg files. Unfortunately Numpy and Scipy do not make official releases of their product in .egg form for a Win32 platform - that means if I want eggs then I have to compile them myself. At the moment my employer provides Visual Studio.Net 2003, which will compile no version of Numpy lat...

C# Nmath to Python SciPy

Hello everyone! I need to port some functions from C# to Python, but i can't implement next code right: [SqlFunction(IsDeterministic = true, DataAccess = DataAccessKind.None)] public static SqlDouble LogNormDist(double probability, double mean, double stddev) { LognormalDistribution lnd = new LognormalDistribution(mean,stddev); ...

numpy linear algebra basic help

This is what I need to do- I have this equation- Ax = y Where A is a rational m*n matrix (m<=n), and x and y are vectors of the right size. I know A and y, I don't know what x is equal to. I also know that there is no x where Ax equals exactly y. I want to find the vector x' such that Ax' is as close as possible to y. Meaning that (Ax...

How do you make this code more pythonic?

Could you guys please tell me how I can make the following code more pythonic? The code is correct. Full disclosure - it's problem 1b in Handout #4 of this machine learning course. I'm supposed to use newton's algorithm on the two data sets for fitting a logistic hypothesis. But they use matlab & I'm using scipy Eg one question i have...

Interpolation in SciPy: Finding X that produces Y

Is there a better way to find which X gives me the Y I am looking for in SciPy? I just began using SciPy and I am not too familiar with each function. import numpy as np import matplotlib.pyplot as plt from scipy import interpolate x = [70, 80, 90, 100, 110] y = [49.7, 80.6, 122.5, 153.8, 163.0] tck = interpolate.splrep(x,y,s=0) xnew =...

wavelet plot with python libraries

I know that scipy has some signal processing tools for wavelets in scipy.signal.wavelets and a chart can be drawn using matplotlib, but it seems I can't get it right. I have tried plotting a daub wavelet against a linspace, but it's not what I am looking for. I am highly unskilled about wavelets and math in general . :) ...

Using python scipy.weave inline with ctype variables?

I am trying to pass a ctype variable to inline c code using scipy.weave.inline. One would think this would be simple. Documentation is good when doing it with normal python object types, however, they have a lot more features than I need, and It makes more sense to me to use ctypes when working with C. I am unsure, however, where my erro...

Unable to build SciPy on OS X 10.5.7

Hi, I am trying to install SciPy following these instructions: http://www.scipy.org/Download And constantly getting error to build them for OS X Lepeord 10.5.7: dyld: lazy symbol binding failed: Symbol not found: _iconv_open Referenced from: /usr/lib/libaprutil-1.0.dylib Expected in: /opt/local/lib/libiconv.2.dylib dyld: Symbol n...

Multiple regression in Python

Hello, I am currently using scipy's linregress function for single regression. I am unable to find if the same library, or another, is able to do multiple regression, that is, one dependent variable and more than one independent variable. I'd like to avoid R if possible. If you're wondering, I am doing FX market analysis with the goal ...

How to run statistics Cumulative Distribution Function and Probablity Density Function using SciPy?

Hi Everybody, I am new to Python and new to SciPy libraries. I wanted to take some ques from the experts here on the list before dive into SciPy world. I was wondering if some one could provide a rough guide about how to run two stats functions: Cumulative Distribution Function (CDF) and Probability Distribution Function (PDF). My use...