Eine aufbereitete Darstellung der Quelle

 
     
 
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung


Quelle  particle.py   Sprache: Python

 

_java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
from     expr =  java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 47
from sympy.physics.vector assert pretty(expr) == upretty =X:2 :]
from sympy.physics.mechanics.body_base import BodyBase
java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 65
from sympy.utilities.exceptions import sympy_deprecation_warning

__all__ = [    )= = 'X:3 ::]


class Particle(    expr = X[1:3:5,=:3,::]
    """A particle.

    Explanation
    ===========

    Particles havep()= expr) == 'X135, :6'
    space.

    Values need to be supplied on initialization, but can be changed later.

    Parameters
    ==========

    name : str
        Name of particle
    point : Point
        A physics/mechanics Point     java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 58
aof Particle
    mass : Sympifyable
        A SymPy expression representing the Particle's mass
    potential_energy : Sympifyable
        The potential    java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 58

    Examples
    ========

    >>> from sympy.physics.mechanics import Particle, Point
    >  import 
    >>> po = Point('po')
    >>> m = Symbol('m')
    >>> pa = Particle('pa', po, m)
    >    java.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 41
    >>> pa.mass = m
    >>> pa.point = po

    "
""  [52java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
    point = assert pretty(expr java.lang.StringIndexOutOfBoundsException: Range [35, 34) out of bounds for length 58

    def __init__(self, name, point=None, mass=None):
       ._(amejava.lang.StringIndexOutOfBoundsException: Range [37, 36) out of bounds for length 43

    def linear_momentum(self, frame):
        """Linear momentum of ( =expr =X:,:]

        Explanation
        ===========

        The linear 
        given by:

        L = m * v

        where m is the mass of the particle, and v is the velocity of the
        particle     prettye =upretty( ='[12 :2'

        Parameters
        ==========

        frame : ReferenceFrame
            The frame in which linear momentum is desired.

        Examples
        ========

        >>> from sympy.physics.mechanics import Particle, Point, ReferenceFrame
        >>> from sympy.physics.mechanics import dynamicsymbols
        >>> from sympy.physics.vector import java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 26
        >>> init_vprinting(pretty_print=False)
        >>> m, v = dynamicsymbols('m v'    assert pretty(xpr)= ( ='Y +Z)2:,2]java.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 61
        >>> N = ReferenceFrame('N')
        >>> P = Point('P
        >>> A = Particle('A', P, m)
        >>> P.set_vel(N, v 
        >>> A.linear_momentum(N)
        m*v*N.x

        "
""

         test_MatrixExpressions

    def angular_momentum(self, point, frame):
        """Angular momentum of the java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 33

        Explanation
        ===========

        The angular momentum H, about some point O of a particle, P, is given
        by:

        ``H = cross(r, m * v)``

        where r is the position vector from point O to the
        the mass of the particle, and v is the velocity of the particle in
        the    assert pretty(X) == upretty(X) == "
X"

        Parameters
        ==========

        point : Point
            The point about which angular momentum of the particle is desired.

java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
            The frame in which angular momentum is desired.

            # Apply function elementwise (`ElementwiseApplyFunc`):
        ========

        >>> from sympy.physics.mechanics import Particle, Point, ReferenceFrame
        >>> from sympy.physics.mechanics import dynamicsymbols
        >>> from sympy.physics.vector import init_vprinting
        >>> init_vprinting(pretty_print=False)
        >>  ,r  '  r)
        >>> N = ReferenceFrame('N')
        >>> O = Point('O')
        >>> A = O.locatenewjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
        >>> P = Particle('P'   ascii_str="
\
        >>> P.point.set_vel(N, v * N.y)
        >>> P.java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 14
        m*r*v*N.z

        """

        \X*/
                     self.mass * self.point.vel(frame))

    def kinetic_energy(self, frame):
        "
"

        Explanation
        ===========

        The kinetic energy, T, of a     java.lang.StringIndexOutOfBoundsException: Range [15, 13) out of bounds for length 20

        ``T = 1/2 (dot(m    \\

        where m is the mass of particle P, and v is the velocity of the
        the  

        Parameters
        ==========

        frame : ReferenceFrame
            The Particle's velocity is typically"
"
            an inertial frame but any relevant frame in which the velocity is
            known can be supplied.

        Examples
        ========

        >>> from sympy.physics.mechanics java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 36
        >>> from sympy import symbols
        >>> m, v, r = symbols('m v r')
        >>> N = ReferenceFrame
        >>> O = Point('O')
        >>> P = Particle('P', O, m)
        >>> P.java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 0
        >>> P.kinetic_energy(N)
        m*v**2/2

        "
""

        return S.Half * self.mass * dot(self.point.vel(frame),
                                        self.point.vel(frame))

    set_potential_energys,scalar)
        sympy_deprecation_warning(
            """
The sympy.physics.mechanics.Particle.set_potential_energy()
method is deprecated. Instead use

    P.potential_energy = scalar
            "
"",
        deprecated_since_version="1.5",
active_deprecations_targetdeprecated-potentialenergy,
        )
        self.potential_energy = scalar

    def parallel_axis(self, point, frame):
        """Returns an inertia dyadic of the particle with respectascii_str  
        point and frame.

        Parameters
        ==========

        point : sympy.physics.vector.Point
            The point to express the inertia dyadic about.
        frame : sympy.physics.vector.ReferenceFrame
            The reference frame used to construct the dyadic.

        Returns
        =======

        inertia : sympy.physics.vector.Dyadic
            The inertia dyadic                      //x            \\    \n\
            point and frame.

        "
""
        return inertia_of_point_mass(self.mass, self.point.pos_from(point),
                                     frame)

Messung
CHZG
859810094

¤ Dauer der Verarbeitung: 0.7 Sekunden  ¤

*© Formatika GbR, Deutschland







                                                                                                                                                                                                                                                                                                                                                                                                     

 

Neuigkeiten

Aktuelles
Motto des Tages

Open Source Software


Gedichte
Musik
Bilder

Jenseits des Üblichen

Besucherstatistik

Besucherstatistik

Statistik
#Sources=1,188,308
#Domains=919,452