
Scientific Python
@SciPyTip
Followers
209K
Following
28
Media
207
Statuses
9K
Tweets about SciPy (Scientific Python) and related topics from @JohnDCook.
Houston
Joined February 2011
Gamma and related functions in SciPy
johndcook.com
Summary of how to compute the gamma function and related functions in Python using SciPy
0
2
16
scipy.integrate.odeint solves (systems of) ordinary differential equations
0
2
8
The Python math module has asin, acos, and atan methods. NumPy has arcsin, arccos, and arctan.
0
0
11
Overview of Bessel functions in SciPy
johndcook.com
Overview of the support for Bessel functions in the SciPy Python library
0
1
13
Save a figure to file using plt.savefig with filename. File format is inferred from name. E.g. plt.savefig('foo.png') saves as PNG.
0
0
9
Can use scipy.integrate.quad(f, a, b) to integrate f(x) from a to b. Limits could be infinite, e.g. quad(f, -inf, inf).
1
1
10
numpy.linspace(a, b, c) creates an array of c evenly spaced points starting with a and ending with b.
0
1
10
NumPy arrays have methods sum(), mean(), var(), and std() for simple statistics.
1
1
14
Matplotlib labels can take TeX strings, e.g. plt.xlabel(r'$\sqrt{x}$')
2
0
30
Using SymPy to find integers pairs (a, b) such that no triangle with sides a and b can have a rational third side and rational area. https://t.co/eYAoSkcA0j
johndcook.com
Are there integers a and b such that no rational triangle can have sides of length a and b?
0
0
5
SciPy has optimized versions of Bessel functions of order 0 and 1. For example, j0(z) & j1(z) are faster versions of jn(0, z) & jn(1,z).
1
1
20
Can read strings like files with StringIO https://t.co/dLOzI43nSv // very useful for testing
docs.python.org
Source code: Lib/io.py Overview: The io module provides Python’s main facilities for dealing with various types of I/O. There are three main types of I/O: text I/O, binary I/O and raw I/O. These ar...
0
2
12
Special functions (Bessel functions, Gamma function, etc.) are located in scipy.special.
0
1
9