Extra
- gas_dynamics.extra.degrees(theta: float) float
Convert from radians to degrees
- Parameters
theta (float) – The angle in radians
Examples
>>> import gas_dynamics as gd >>> rad = gd.degrees(theta=3.14159) >>> rad 179.99984796050427 >>>
- gas_dynamics.extra.radians(theta: float) float
Convert from degrees to radians
- Parameters
theta (float) – The angle in degrees
Examples
>>> import gas_dynamics as gd >>> deg = gd.radians(theta=180) >>> deg 3.141592653589793 >>>
- gas_dynamics.extra.sind(theta: float) float
Sine given degrees
- Parameters
theta (float) – The angle in degrees
Examples
>>> import gas_dynamics as gd >>> sine = gd.sind(theta=45) >>> sine 0.7071067811865476 >>>
- gas_dynamics.extra.arcsind(sin: float) float
Return the arcsine in degrees
- Parameters
sin (float) – The sine of theta
Examples
>>> import gas_dynamics as gd >>> theta = gd.arcsind(sin = .7071) >>> theta 44.99945053347443 >>>
- gas_dynamics.extra.cosd(theta: float) float
Cosine given degrees
- Parameters
theta (float) – The angle in degrees
Examples
>>> import gas_dynamics as gd >>> cosine = gd.cosd(theta=45) >>> cosine 0.7071067811865476 >>>
- gas_dynamics.extra.arccosd(cos: float) float
Return the arccosine in degrees
- Parameters
cos (float) – The cosine of theta
Examples
>>> import gas_dynamics as gd >>> theta = gd.arccosd(.7071) >>> theta 45.00054946652557 >>>
- gas_dynamics.extra.tand(theta: float) float
Tangent given degrees
- Parameters
theta (float) – The angle in degrees
Examples
>>> tan = gd.tand(theta=45) >>> tan 0.9999999999999999 >>>
- gas_dynamics.extra.arctand(tan: float) float
Return the arctangent in degrees
- Parameters
tan (float) – The tangent of theta
Examples
>>> theta = gd.arctand(1) >>> theta 45.0 >>>
- gas_dynamics.extra.area_dia(dia=[], area=[])
Notes
Given area or diameter, return the unknown
- Parameters
dia (Diameter) –
area (Area) –
Examples
>>> import gas_dynamics as gd >>> area = gd.area_dia(dia=1) >>> area 0.7853981633974483 >>> dia = gd.area_dia(area=area) >>> dia 1.0 >>>
- gas_dynamics.extra.lin_interpolate(x, x0, x1, y0, y1)
Linear interpolation formula
Notes
Given two x values and their corresponding y values, interpolate for an unknown y value at x
- Parameters
x (float) – The x value at which the y value is unknown
x0 (float) – The x value of the first known pair
x1 (float) – The x value of the second known pair
y0 (float) – The y value of the first known pair
y1 (float) – The y value of the second known pair
Examples
>>> import gas_dynamics as gd >>> y = gd.lin_interpolate(x=5, x0=4, x1=6, y0=25, y1=33) >>> y 29.0 >>>