<jupyter_start><jupyter_text><jupyter_code>import numpy as np
 #Answer for 1 A
W = np.array([[1,-3],[2,-2],[3,1]])
Y = np.array ([[1,2,0],[0,-1,-2]])
print(np.dot(W,Y))
#Answer for 1 B
Z = np.array([[0,1],[2,3]])
Z = np.array([[0,1],[2,3]])
print (Z+Z)
#Answer for 1 C
X = np.array([[3,2,1],[-1,2,3],[2,-1,-1]])
print (3*X)
#Answer for 2 A
Y = np.array([[1,2,0],[0,-1,2]])
W = np.array([[1,-3],[2,-2],[3,1]])
print(np.dot(Y,W)^2)
#Answer for 2 B
R = np.dot(W,Y)
R
#Answer for 2 B
print(np.subtract(R,X))
#Answer for 2 C
Y = np.array([[1,2,0],[0,-1,2]])
W = np.array([[1,-3],[2,-2],[3,1]])
Z = np.array([[0,1],[2,3]])
print(np.dot(Y,W)-Z^2)<jupyter_output>[[ 7 -6]
 [ 0  3]]
{'fraction_non_alphanumeric': 0.3387815750371471, 'fraction_numerical': 0.10549777117384844, 'mean_word_length': 4.964601769911504, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '18865', 'license': 'Apache-2.0', 'n_tokens_mistral': 390, 'n_tokens_neox': 369, 'n_words': 68, 'path': 'Practical_Lab_Exam_1.ipynb', 'repo_name': 'ArganaAdrian/Linear-Algebra-58020', 'size': '673'}