This is the mail archive of the gsl-discuss@sources.redhat.com mailing list for the GSL project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Python Interface: first results


You can find my first results under:

http://www.zaik.uni-koeln.de/~achim/gsl

about 200 special functions are available....
Exceptions are supported...

Example:

>>> from gsl.sf import *     
this is a pre-alpha-version, no guarantee for anything!
>>> print erf(1)
(0.84270079294971489, 4.7994624969578439e-16)
>>> print exp(2000000)
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
gsl.errors.gsl_Error: overflow in gsl_sf_exp_e
>>>

For a full function contents enter:
>>> import gsl.sf
>>> dir(gsl.sf)
['Chi', 'Ci', 'Shi', 'Si', '__doc__', '__file__', '__name__', 'airy_Ai',
'airy_Ai_deriv', 'airy_Ai_deriv_scaled', 'airy_Ai_scaled', 'airy_Bi',
'airy_Bi_deriv', 'airy_Bi_deriv_scaled', 'airy_Bi_scaled', 'airy_zero_Ai',
'airy_zero_Ai_deriv', 'airy_zero_Bi', 'airy_zero_Bi_deriv', 'atanint',
'bessel_I0', 'bessel_I0_scaled'

and so on...

Requirements:
=============

gsl-0.7 or better
python2.0 or better

Retriving the Interface:
========================

http://www.zpr.uni-koeln.de/~achim/gsl/gsl-0.0.1.tar.gz

Installing GSL interface:
=========================

gsl-config must be on your path:

gzip -d -c gsl-x.y.z.tar.gz|tar xvf-
cd gsl-x.y.z
#do this with your prefered python version
python setup.py build
# change to a id, that is allowed to do installation
python setup.py install

Ready....


Achim Gaedke, ZPR
Weyertal 80, 50931 Köln
Tel: +49 221 470 6021



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]