1.Convert the 1-D array to 3-D array
a = np.array([x for x in range(32)])
Answer:
print(o)
Output:
array([[[ 0, 1, 2, 3, 4, 5, 6, 7],
[ 8, 9, 10, 11, 12, 13, 14, 15]],
[[16, 17, 18, 19, 20, 21, 22, 23],
[24, 25, 26, 27, 28, 29, 30, 31]]])
2.Convert the value in the array to appropriate data type
a = np.array([[7.2, 5.4, 9.3],
[3.8, 6.7, 8.5]])
Answer:
print(o)
Output:
[[7 5 9]
[3 6 8]]
3.Extract value in between 7 to 15 from the given array
a = np.array([2, 6, 1, 9, 10, 3, 27])
Answer:
print(o)
Output:
[ 8 12 9 11]
An inductor, a capacitor, and a resistor are all connected in series across an ac source.
If the resistance, inductance, and capacitance are all doubled, by what factor does each of the
following quantities change
Show, by the use of the truth table (truth matrix), that are ¬(P∨(Q∨(¬P→¬R))) and ¬P(Q→R) logically equivalent. (15 points)
Find all Eigen values and corresponding Eigen vectors for the matrix A=
0 0 3
2 5 0
2 3 0
If a= (2,1,-1), b=(1,-1,1) then a × b is
Show, by the use of the truth table (truth matrix), that the (p ∨ q) ∨ [(¬p) ∧ (¬q)] is a contradiction.
The electric field at a distance of 2 m from an infinite line charge of charge density 4 nC/m is
Two masses mA = 2.8 kg and mB = 6.2 kg are on inclines and are connected together by a string as shown in the figure.
Ignore masses of the frictionless pulley and the cord.
The coefficient of kinetic friction between each mass and its incline is μk=0.34. If mA moves up, and mB moves down, determine their acceleration.
The following transactions of JDE Corp took place during the financial period ending 31 March 2022: 1. The owner of the business, Mr J Dough, took inventory for his personal use, R1 000. 2. The business received dividends in cash from their investments, R6 800. 3. JDE Corp returned inventory that was damaged to the supplier, R700. 4. The business paid cash for electricity for the month of March, R500. 5. Sold goods on credit to several customers, R15 800. 6. Bought goods on credit worth R25 000. 7. A R3 500 loan was received from the bank, payable after five years, at 7% interest per annum. 8. Company applied for an overdraft of R10 500 and it was approved at the end of March 2022.
An industrial company claims that the mean pH level of the water in a nearby river is 6.8. You randomly select 19 water samples and measure their pH level. The mean and standard deviation are 6.5 and 0.25, respectively. Is there enough evidence to reject the company’s claim at a significance level of 0.05?