Answer:
import numpy as np
import time
def matrixMul(m1,m2):
if m1.shape[1] == m2.shape[0]:
t1 = time.time()
r1 = np.zeros((m1.shape[0],m2.shape[1]))
for i in range(m1.shape[0]):
for j in range(m2.shape[1]):
r1[i,j] = (m1[i]*m2.transpose()[j]).sum()
t2 = time.time()
print("Native implementation: ",r1)
print("Time: ",t2-t1)
t1 = time.time()
r2 = m1.dot(m2)
t2 = time.time()
print("\nEfficient implementation: ",r2)
print("Time: ",t2-t1)
else:
print("Wrong dimensions!")
Explanation:
We define a function (matrixMul) that receive two arrays representing the two matrices to be multiplied, then we verify is the dimensions are appropriated for matrix multiplication if so we proceed with the native implementation consisting of two for-loops and prints the result of the operation and the execution time, then we proceed with the efficient implementation using .dot method then we return the result with the operation time. As you can see from the image the execution time is appreciable just for large matrices, in such a case the execution time of the efficient implementation can be 1000 times faster than the native implementation.
Answer:
Δp = ∫
Explanation:
The pressure drop formula is given above. It determines the relation between pressure drop per unit along with smooth walled channel. The formula is from Buckingham pi theorem in which repeating and non repeating variables are used together.
Answer:
specific volume = 1.025 m³/kg
Explanation:
given data
total mass m1 +m2 = 80 kg
specific volume = 0.8 m³/kg
occupies volume v1 = 40 m³
other gas specific volume = 1.4 m³
to find out
How much volume is occupied by the second gas and what is the specific volume of the mixture
solution
we know that density is reciprocal of specific volume and here gas is not interacting
so total specific volume is assume so ratio is total volume to total mass
and
specific volume = 
here ρ is density
so ρ1 =
= 1.25 kg/m³
and ρ2 =
= 0.714 kg/m³
and
so m1 = ρ1v1 = 1.25 × 40 = 50 kg
and m2 = 80 - 50 = 30 kg
so
v2 = 
v2 =
= 42 m³
so volume occupied by second das = 42 m³
and
specific volume of mixture will be
specific volume of mixture = 
specific volume = 
specific volume = 1.025 m³/kg
Answer:
A) EXIT TEMPERATURE = 14⁰C
b) rate of heat transfer of air = - 13475.78 = - 13.5 kw
Explanation:
Given data :
diameter of duct = 20-cm = 0.2 m
length of duct = 12-m
temperature of air at inlet= 50⁰c
pressure = 1 atm
mean velocity = 7 m/s
average heat transfer coefficient = 85 w/m^2⁰c
water temperature = 5⁰c
surface temperature ( Ts) = 5⁰c
properties of air at 50⁰c and at 1 atm
= 1.092 kg/m^3
Cp = 1007 j/kg⁰c
k = 0.02735 W/m⁰c
Pr = 0.7228
v = 1.798 * 10^-5 m^2/s
determine the exit temperature of air and the rate of heat transfer
attached below is the detailed solution
Calculate the mass flow rate
= p*Ac*Vmean
= 1.092 * 0.0314 * 7 = 0.24 kg/s
'Capturing a photon by<em> isomerization and rhodopsin </em>of retinal' is the first step necessary for initiating the visual transduction cascade in rods.
Visual transduction refers to the process in the eye where absorption of light in the 'retina' is translated into electrical signals that then reach the brain. It is correct to state that visual transduction is the photochemical reaction that takes place when light or photon is converted to an electric signal in the retina. The visual pigment in the rods, called rhodopsin, is a membrane protein placed in the outer segments of the rods.
When initiating the visual transduction cascade in rods the first vital step is to capture a photon by<em> isomerization and rhodopsin</em> of retinal'.
You can leran more about visual transduction at
brainly.com/question/13798113
#SPJ4