<jupyter_start><jupyter_text>Prelim Exam Question 1<jupyter_code>import numpy as np

C = np.full((4,4),1)
print(C)
r = np.diag(C)
print(r)<jupyter_output>[[1 1 1 1]
 [1 1 1 1]
 [1 1 1 1]
 [1 1 1 1]]
[1 1 1 1]<jupyter_text>Question 2<jupyter_code>r1 = np.square(C)
print(r1)<jupyter_output>[[1 1 1 1]
 [1 1 1 1]
 [1 1 1 1]
 [1 1 1 1]]<jupyter_text>Question 3<jupyter_code>A = np.array([2,7,4])
B = np.array([3,9,8])

result = np.cross(A,B)
print(result)<jupyter_output>[20 -4 -3]
{'fraction_non_alphanumeric': 0.1903765690376569, 'fraction_numerical': 0.11297071129707113, 'mean_word_length': 4.91358024691358, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 10, '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': '3', 'dir': 'jupyter-structured-clean-dedup', 'id': '79472', 'license': 'Apache-2.0', 'n_tokens_mistral': 282, 'n_tokens_neox': 246, 'n_words': 59, 'path': 'Prelim_Exam.ipynb', 'repo_name': 'KhaledR/Linear-Algebra-58020', 'size': '478'}