<jupyter_start><jupyter_text>Practical Lab Exam 1<jupyter_code>import numpy as LA
W = LA.array([[1,-3,0],[2,-2,0],[3,1,0]])
X = LA.array([[3,2,1],[-1,2,3],[2,-1,1]])
Y = LA.array([[1,2,0],[0,-1,2],[0,0,0]])
Z = LA.array ([[0,1],[2,3]])
#a
output = LA.dot(W,Y)
print(output)
#b
output = LA.add(Z,Z)
print(output)
#c
output = np.dot(3,X)
print(output)<jupyter_output>[[ 9  6  3]
 [-3  6  9]
 [ 6 -3  3]]<jupyter_text>Problem 2<jupyter_code>#a
A1=LA.cross(W,Y)
B2=2*A1
print(B2)
#b
C1 = LA.dot(W,Y)
D2 = LA.subtract(C1,X)
print(D2)
#c
Z1 = LA.dot(Y,W)
X2 = 2*Z
Z1 = ([[5,-7],[4,4]])
V3 = LA.subtract(Z1,X2)
print(V3)<jupyter_output>[[ 5 -9]
 [ 0 -2]]
{'fraction_non_alphanumeric': 0.28593508500772796, 'fraction_numerical': 0.10510046367851623, 'mean_word_length': 5.113207547169812, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '512159', 'license': 'Apache-2.0', 'n_tokens_mistral': 390, 'n_tokens_neox': 376, 'n_words': 61, 'path': 'Practical_Lab_Exam_1.ipynb', 'repo_name': 'MichaelOblego/Linear-Algebra-58020', 'size': '647'}