Answer:
Option (c) and option (d)
Explanation:
Eutectic system is one in which a solid and homogeneous mixture of two or more substances resulting in the formation of super lattice is formed which can melt or solidify at a temperature lower than the melting point of any individual metal.
Eutectic alloys are those which have its components mixed in a specific ratio.
It is the composition in an alloy system for which both the liquidus and solidus temperatures are equal.
Eutectic alloys have the composition in which the melting point of the metal is lower than the other alloy composition.
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:
The code is given below in Python with appropriate comments
Explanation:
# convert list to set
male_names = set(['Oliver','Declan','Henry'])
# get remove and add name from user
remove_name = input("Enter remove name: ")
add_name = input("Enter add name: ")
# remove name from set
male_names.remove(remove_name)
# add new name ij set
male_names.add(add_name)
# sort the set
a = sorted(male_names)
# print the set
print(a)
Answer:
The time complexity will be "O(n log n)".
Explanation:
- Many realistic Quick sort implementations choose a randomized special edition. The time complexity variable O(n Logn) was predicted in the randomized edition.
- Throughout the randomized version, probably the most disgusting case is also conceivable, but by far the worst scenario for something like a given pattern does not exist as well as randomized Quick sort performs well throughout the practice.
Answer:
a) the maximum tensile stress due to the weight of the wire is 1361.23 psi
b) the maximum load P that could be supported at the lower end of the wire is 624.83 lb
Explanation:
Given the data in the question;
Length of wire L = 400 ft = ( 400 × 12 )in = 4800 in
Diameter d = 3/16 in
Unit weight w = 490 pcf
First we determine the area of the wire;
A = π/4 × d²
we substitute
A = π/4 × (3/16)²
A = 0.0276 in²
Next we get the Volume
V = Area × Length of wire
we substitute
V = 0.0276 × 4800
V = 132.48 in³
Weight of the steel wire will be;
W = Unit weight × Volume
we substitute
W = 490 × ( 132.48 / 12³ )
W = 490 × 0.076666
W = 37.57 lb
a) the maximum tensile stress due to the weight of the wire;
σ
= W / A
we substitute
σ
= 37.57 / 0.0276
= 1361.23 psi
Therefore, the maximum tensile stress due to the weight of the wire is 1361.23 psi
b) the maximum load P that could be supported at the lower end of the wire. Allowable tensile stress is 24,000 psi
Maximum load P that the wire can safely support its lower end will be;
P = ( σ
- σ
)A
we substitute
P = ( 24000 - 1361.23 )0.0276
P = 22638.77 × 0.0276
P = 624.83 lb
Therefore, the maximum load P that could be supported at the lower end of the wire is 624.83 lb