AngularAcceleration¶
- class AngularAcceleration(value: float | int, unit: str)¶
Bases:
UnitBaseAngularAccelerationobject.Attributes¶
Methods¶
to()It converts actual
valueto a new value computed usingtarget_unitas the reference unit of measurement.
- to(target_unit: str, inplace: bool = False) AngularAcceleration¶
It converts actual
valueto a new value computed usingtarget_unitas the reference unit of measurement.If
inplaceisTrue, it overrides actualvalueandunit, otherwise it returns a new instance with the convertedvalueand thetarget_unitasunit.Parameters¶
Returns¶
AngularAccelerationConverted angular acceleration.
Raises
Examples
AngularAccelerationinstantiation.>>> from gearpy.units import AngularAcceleration >>> a = AngularAcceleration(180, 'deg/s^2') >>> a ... 180 deg/s^2
Conversion from degree per second squared to radian per second squared with
inplace = Falseby default, so it does not override the current value.>>> a.to('rad/s^2') ... 3.141592653589793 rad/s^2 >>> a ... 180 deg/s^2
Conversion from degree per second squared to radian per second squared with
inplace = True, in order to override the current value.>>> a.to('rad/s^2', inplace = True) ... 3.141592653589793 rad/s^2 >>> a ... 3.141592653589793 rad/s^2
- property unit: str¶
Symbol of the unit of measurement for angular acceleration. It must be a
str. Available units are:'rad/s^2'for radian per second squared,'deg/s^2'for degree per second squared,'rot/s^2'for rotation per second squared.
Returns¶
strSymbol of the unit of measurement for angular acceleration.