• Facebook
  • Twitter
  • Reddit
  • StumbleUpon
  • Digg
  • email

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

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

src/p/y/pyjamas-0.7/examples/libtest/RandomModuleTest.py   Pyjamas(Download)
from UnitTest import UnitTest
 
import random
from math import log, exp, sqrt, pi
try:
    from math import fsum as msum
except:

src/h/e/hedge-0.91/examples/maxwell/analytic_solutions.py   hedge(Download)
from hedge.tools import \
        cyl_bessel_j, \
        cyl_bessel_j_prime
from math import sqrt, pi, sin, cos, atan2
import cmath
 
 

src/h/e/hedge-0.91/examples/advection/advection.py   hedge(Download)
def main() :
    from hedge.timestep import RK4TimeStepper
    from hedge.visualization import VtkVisualizer, SiloVisualizer
    from hedge.tools import mem_checkpoint
    from math import sin, cos, pi, sqrt
    from hedge.parallel import \
            guess_parallelization_context, \

src/h/e/hedge-0.91/examples/wave/wave.py   hedge(Download)
    from hedge.timestep import RK4TimeStepper, AdamsBashforthTimeStepper
    from hedge.visualization import SiloVisualizer, VtkVisualizer
    from pytools.stopwatch import Job
    from math import sin, cos, pi, exp, sqrt
    from hedge.parallel import guess_parallelization_context
 
    pcon = guess_parallelization_context()

src/p/y/pydy-HEAD/examples/bicycle/bicycle_lib_hand.py   pydy(Download)
from sympy import var
from math import sin, cos, tan, pi
 
def dependent_qdot(_x, _params):
    """Linear mapping from lean rate, steer rate, front wheel rate to yaw rate, rear
    wheel rate, pitch rate, rear wheel contact point velocity in N[1] and N[2]
    directions.

src/p/y/pydy-HEAD/examples/bicycle/bicycle_lib.py   pydy(Download)
from __future__ import division
from math import sin, cos, tan, pi
 
def dependent_qdot(_x, _params):
    """Linear mapping from lean rate, steer rate, front wheel rate to yaw rate, rear
    wheel rate, pitch rate, rear wheel contact point velocity in N[1] and N[2]
    directions.

src/s/h/shedskin-HEAD/examples/ml/surfacepoint.py   shedskin(Download)
#  MiniLight Python : minimal global illumination renderer
#
#  Copyright (c) 2007-2008, Harrison Ainsworth / HXA7241 and Juraj Sukop.
#  http://www.hxa7241.org/
 
 
from math import cos, pi, sin, sqrt

src/h/e/hedge-0.91/examples/heat/heat.py   hedge(Download)
def main() :
    from hedge.element import TriangularElement, TetrahedralElement
    from hedge.timestep import RK4TimeStepper
    from hedge.visualization import SiloVisualizer, VtkVisualizer
    from math import sin, cos, pi, exp, sqrt
    from hedge.parallel import guess_parallelization_context
    from hedge.data import TimeConstantGivenFunction, \

src/s/h/shedskin-HEAD/examples/fysphun.py   shedskin(Download)
# (c) Alex P-B (chozabu@gmail.com) 
# license: http://creativecommons.org/licenses/by-nc-sa/2.5/
 
from math import sin, cos, pi, hypot
from random import random
 
def setup(w, h):

src/p/y/pyobjc-framework-Cocoa-2.3/Examples/AppKit/CocoaBindings/GraphicsBindings/JoystickView.py   pyobjc-framework-Cocoa(Download)
from Foundation import *
from AppKit import *
from objc import ivar
from math import sin, cos, sqrt, atan2, pi
 
class JoystickView(NSView):
    AngleObservationContext = 2091

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