Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(834)  |  Call(0)  |  Derive(0)  |  Import(834)
float(x) -> floating point number

Convert a string or number to a floating point number, if possible.

src/q/i/qit-0.11.0/qit/examples.py   qit(Download)
 
import numpy as np
from numpy import (asarray, array, diag, kron, prod, floor, ceil, sqrt, log2, exp, angle, arange, linspace,
    logical_not, sin, cos, arctan2, empty, zeros, ones, eye, sort, nonzero, pi, trace, dot, meshgrid, r_)
from numpy.linalg import eig, norm

src/c/h/chaco-HEAD/examples/demo/advanced/data_cube.py   chaco(Download)
 
# Major library imports
from numpy import arange, linspace, nanmin, nanmax, newaxis, pi, sin, cos
 
# Enthought library imports

src/p/y/PyAstronomy-HEAD/src/funcFit/TutorialExampleSanity.py   PyAstronomy(Download)
  def sanity_firstExample(self):
    # Import numpy and matplotlib
    from numpy import arange, sqrt, exp, pi, random, ones
    import matplotlib.pylab as mpl
    # ... and now the funcFit module
  def sanity_CombiningModels(self):
    # Import numpy and matplotlib
    from numpy import arange, sqrt, exp, pi, random, ones
    import matplotlib.pylab as mpl
    # ... and now the funcFit package
  def sanity_MCMCSampler(self):
    # Import some required modules
    from numpy import arange, sqrt, exp, pi, random, ones
    import matplotlib.pylab as mpl
    import pymc
  def sanity_Overbinning(self):
    # Import numpy and matplotlib
    from numpy import arange, sqrt, exp, pi, random, ones
    import matplotlib.pylab as mpl
    # ... and now the funcFit module

src/a/r/arraytool-HEAD/arraytool/src/other_examples/current_on_conicsection.py   arraytool(Download)
 
from __future__ import division
from numpy import sqrt, arange, pi, cos, sin, mgrid, ones_like, arccos, \
set_printoptions, nan, array, reshape, cross, hstack
from enthought.mayavi import mlab

src/a/r/arraytool-HEAD/arraytool/documentation/other_examples/current_on_conicsection.py   arraytool(Download)
 
from __future__ import division
from numpy import sqrt, arange, pi, cos, sin, mgrid, ones_like, arccos, \
set_printoptions, nan, array, reshape, cross, hstack
from enthought.mayavi import mlab

src/i/m/image_registration-0.2/image_registration/fft_tools/upsample.py   image_registration(Download)
    # it is matlab/pylab
    from numpy.fft import ifftshift,fftfreq
    from numpy import pi,newaxis,floor
 
    nr,nc=np.shape(inp);
    # it is matlab/pylab
    from numpy.fft import ifftshift,fftfreq
    from numpy import pi,newaxis,floor
 
    insize, = inp.shape
def odddftups(inp,nor=None,noc=None,usfac=1,roff=0,coff=0):
    from numpy.fft import ifftshift
    from numpy import pi,newaxis,floor
 
    nr,nc=np.shape(inp);
    # breakdown of the dft upsampling method
    from numpy.fft import ifftshift
    from numpy import pi,newaxis,floor
 
    from pylab import *

src/m/a/mayavi-4.3.1/examples/tvtk/animated_texture.py   mayavi(Download)
# License: BSD Style.
 
from numpy import arange, zeros, float32, float64, uint8, \
                  atleast_3d, exp, sqrt, pi
 

src/c/h/chaco-HEAD/examples/demo/logo.py   chaco(Download)
""" LOGO overlay """
 
from __future__ import with_statement
 
from numpy import array, cos, invert, isnan, nan, pi, sin, vstack

src/m/a/mayavi-HEAD/examples/tvtk/animated_texture.py   mayavi(Download)
# License: BSD Style.
 
from numpy import arange, zeros, float32, float64, uint8, \
                  atleast_3d, exp, sqrt, pi
 

src/m/a/mayavi-4.3.1/examples/mayavi/advanced_visualization/datasets.py   mayavi(Download)
# License: BSD style.
 
from numpy import array, random, linspace, pi, ravel, cos, sin, empty
from tvtk.api import tvtk
 

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next