The answer is D I’m 90% sure
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.
Explanation:
volume = πR²h/3
= πx35²x50/3
= 192325/3
= 64166.725
number of layers n = 50mm/0.05
n = 1000layers
average volume = 64166.725/1000
= 64.167mm³
average area = 64.167/0.05
= 1283.34mm²
average time = 1283.34/900mm x 0.22
= 6.48
6.48 + 15 seconds
= 21.48 seconds
time required = 1000x21.48
= 21480 seconds
convert to minutes
21480/60
= 358 minutes
21480/3600
= 5.967 hours
Answer:
critical clearing angle = 70.3°
Explanation:
Generator operating at = 50 Hz
power delivered = 1 pu
power transferable when there is a fault = 0.5 pu
power transferable before there is a fault = 2.0 pu
power transferable after fault clearance = 1.5 pu
using equal area criterion to determine the critical clearing angle
Attached is the power angle curve diagram and the remaining part of the solution.
The power angle curve is given as
= Pmax sinβ
therefore : 2sinβo = Pm
2sinβo = 1
sinβo = 0.5 pu
βo =
⁰
also ; 1.5sinβ1 = 1
sinβ1 = 1/1.5
β1 =
= 41.81⁰
∴ βmax = 180 - 41.81 = 138.19⁰
attached is the remaining solution
The critical clearing angle =
≈ 70.3⁰