<jupyter_start><jupyter_text>Vector Space and its Operations<jupyter_code>import numpy as np 
a = np.array([4,3])
b = np.array([2,-5])
print('Vector a is', a)
print("Vector b is" , b)
ball1 = np.array([1,2,3])
ball2 = np.array([0,1,-1])

pool = np.array([ball1,ball2])
print(pool.shape)
print(pool.size)
print(pool.ndim)
R = a+b
print(R)
R = np.add(a,b)
R<jupyter_output><empty_output><jupyter_text>Vector subtraction<jupyter_code>R = np.subtract(a,b)
R<jupyter_output><empty_output><jupyter_text>Vector Scaling<jupyter_code>a = np.array([1,5,8,9])
S = 5*a
print(S)
S = np.multiply(5,a)
print(S)<jupyter_output>[ 5 25 40 45]<jupyter_text>Vector Cross Product<jupyter_code>import numpy as np
#initiallize arrays
A = np.array([2,7])
B = np.array([1,7])

S = np.cross(A,B)
print(S)
S = np.dot(A,B)
print(S)<jupyter_output>51
{'fraction_non_alphanumeric': 0.18635809987819732, 'fraction_numerical': 0.040194884287454324, 'mean_word_length': 6.903846153846154, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '4', 'dir': 'jupyter-structured-clean-dedup', 'id': '518136', 'license': 'Apache-2.0', 'n_tokens_mistral': 395, 'n_tokens_neox': 379, 'n_words': 67, 'path': 'Python_Exercise_2.ipynb', 'repo_name': 'bryanpioloEspanol/bryan-espanol', 'size': '821'}