Answer:
35
Explanation: I really dont even know, I just used up all my tries on it and got it wrong on every other thing i chose. So it's 35 i believe cause its the only answer i didnt choose.
Answer:
A key element is powering economies with clean energy, replacing polluting coal - and gas and oil-fired power stations - with renewable energy sources, such as wind or solar farms. This would dramatically reduce carbon emissions. Plus, renewable energy is now not only cleaner, but often cheaper than fossil fuels
Explanation:
here is your answer if you like my answer please follow
Answer:
The surface area of the primary settling tank is 0.0095 m^2.
The effective theoretical detention time is 0.05 s.
Explanation:
The surface area of the tank is calculated by dividing the volumetric flow rate by the overflow rate.
Volumetric flow rate = 0.570 m^3/s
Overflow rate = 60 m/s
Surface area = 0.570 m^3/s ÷ 60 m/s = 0.0095 m^2
Detention time is calculated by dividing the volume of the tank by the its volumetric flow rate
Volume of the tank = surface area × depth = 0.0095 m^2 × 3 m = 0.0285 m^3
Detention time = 0.0285 m^3 ÷ 0.570 m^3/s = 0.05 s
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.