Answer:
The answer is "2 m/s".
Explanation:
The triangle from of the right angle:

Differentiating the above equation:



Answer: I'm a boy, but I'm not toxic or fake
Explanation:
Answer:
The pipe is open ended and the length of pipe is 3.4 m.
Explanation:
For identification of the type of pipe checking the successive frequencies in both the open pipe and closed pipe as below
Equation for nth frequency for open end pipe is given as

For (n+1)th value the frequency is

Taking a ratio of both equation and solving for n such that the value of n is a whole number

So n is a whole number this means that the pipe is open ended.
For confirmation the nth frequency for a closed ended pipe is given as

For (n+1)th value the frequency is

Taking a ratio of both equation and solving for n such that the value of n is a whole number

As n is not a whole number so this is further confirmed that the pipe is open ended.
Now from the equation of, with n=6, v=340 m/s and f=300 Hz

The value of length is 3.4m.
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.