<jupyter_start><jupyter_text>Example<jupyter_code>import numpy as np
A=np.array([[4,3],[-5,9]])
print(A)

invA= np.linalg.inv(A)
print(invA)


B=np.array([[20],[26]])
print(B)
X=np.linalg.inv(A).dot(B)
print(X)

dot=np.dot(invA,B)
print(dot)<jupyter_output>[[2.]
 [4.]]<jupyter_text>Sample Problem4x+3y+2z=25-2x+2y+3z=-103x-5y+2z=-4<jupyter_code>import numpy as np
A=np.array([[4,3,2],[-2,2,3],[3,-5,2]])
print(A)

invA= np.linalg.inv(A)
print(invA)


B=np.array([[25],[-10],[-4]])
print(B)
X=np.linalg.inv(A).dot(B)
print(X)<jupyter_output>[[ 4  3  2]
 [-2  2  3]
 [ 3 -5  2]]
[[ 0.15447154 -0.1300813   0.04065041]
 [ 0.10569106  0.01626016 -0.1300813 ]
 [ 0.03252033  0.23577236  0.11382114]]
[[ 25]
 [-10]
 [ -4]]
[[ 5.]
 [ 3.]
 [-2.]]<jupyter_text>Suppose a market seller sold 20 apple and 10 oranges in one day for a total of 350 pesos. The next day he sold 17 apple and 22 orange for 500 pesos. If the prices of the fruits remained unchanged on both of the days, what was the price of one apple and one orange?<jupyter_code>A=np.array([[20,10],[17,22]])
print(A)
invA= np.linalg.inv(A)
print(invA)

B=np.array([[350],[500]])
print(B)

X=np.dot(invA,B)
print(X)<jupyter_output>[[20 10]
 [17 22]]
[[ 0.08148148 -0.03703704]
 [-0.06296296  0.07407407]]
[[350]
 [500]]
[[10.]
 [15.]]<jupyter_text>To check if the answer is correct<jupyter_code>Z=np.dot(A,X)
print(Z)<jupyter_output>[[350.]
 [500.]]
{'fraction_non_alphanumeric': 0.21556031406138473, 'fraction_numerical': 0.15845824411134904, 'mean_word_length': 4.817427385892116, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '615611', 'license': 'Apache-2.0', 'n_tokens_mistral': 809, 'n_tokens_neox': 684, 'n_words': 134, 'path': 'Linear_Transformation.ipynb', 'repo_name': 'Sev-RyanLeo/Linear-Algebra-58019', 'size': '1401'}