<jupyter_start><jupyter_text><jupyter_code>import numpy as np
A = np.array([[4, 10, 8], [10, 26, 26], [8, 26, 61]])
print(A)
B = np.array([[44], [128], [214]])
print(B)
#AA^-1X = BA^-1

## Solving for the inverse of A
A_inv = np.linalg.inv(A)
print(A_inv)

## Solving for BA^-1
X = np.dot(A_inv, B) ## Alternative: A_inv @ B
print(X)<jupyter_output>[[ 25.27777778 -11.16666667   1.44444444]
 [-11.16666667   5.          -0.66666667]
 [  1.44444444  -0.66666667   0.11111111]]
[[-8.]
 [ 6.]
 [ 2.]]
{'fraction_non_alphanumeric': 0.2193158953722334, 'fraction_numerical': 0.2112676056338028, 'mean_word_length': 3.4070796460176993, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 5, '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': '213958', 'license': 'Apache-2.0', 'n_tokens_mistral': 303, 'n_tokens_neox': 240, 'n_words': 53, 'path': 'Linear_Transformation_demo.ipynb', 'repo_name': 'AloysiusButacAdu/Linear-Algebra-58020', 'size': '497'}