Answer:
D
Explanation:
the way vertices are connected may be different so having same number of edges do not mean that total degree will also be same.
That is a thread ball valves
Answer:
elongation of the brass rod is 0.01956 mm
Explanation:
given data
length = 5 cm = 50 mm
diameter = 4.50 mm
Young's modulus = 98.0 GPa
load = 610 N
to find out
what will be the elongation of the brass rod in mm
solution
we know here change in length formula that is express as
δ =
................1
here δ is change in length and P is applied load and A id cross section area and E is Young's modulus and L is length
so all value in equation 1
δ =
δ =
δ = 0.01956 mm
so elongation of the brass rod is 0.01956 mm
Answer:
Diesel cycle:
All diesel engine works on diesel cycle.It have four processes .These four processes are as follows
1-2.Reversible adiabatic compression
2-3.Heat addition at constant pressure
3-4.Reversible adiabatic expansion
4-1.Heat addition at constant volume
When air inters in the piston cylinder after that it compresses and gets heated due to compression after that heat addition take place at constant pressure after that power is produces when piston moves to bottom dead center.
From the diagram of P-v And T-s we can understand so easily.
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.