<jupyter_start><jupyter_text>Vetores e Matrizes<jupyter_code>import numpy as np
A=np.array([[5.90,7.10],[2.38,2.52],[2.90,2.00]])
B=4.10*A
print(B)<jupyter_output>[[24.19  29.11 ]
 [ 9.758 10.332]
 [11.89   8.2  ]]<jupyter_text>Dados os vetores u=(3,-5,2) e v=(4,6,3), calcule u.v e uXv<jupyter_code>import numpy as np
u=np.array([[3,-5,2]])
v=np.array([[4,6,3]])
uv=np.inner(u,v)
uXv=np.cross(u,v)
print(uv)
print(uXv)
import numpy as np
u=np.array([[7,1,-9]])
v=np.array([[3,-5,-4]])
uv=np.inner(u,v)
uXv=np.cross(u,v)
print(uv)
print(uXv)<jupyter_output>[[52]]
[[-49   1 -38]]<jupyter_text>Sistema Lineares<jupyter_code>import numpy as np
A=np.array([[4,2,-1],[3,3,2],[0,5,2]])
b=np.array([[7],[20],[-1]])
x=np.linalg.solve(A,b)
print(x)
import numpy as np
A=np.array([[4,-3,1],[1,1,3],[2,3,-4]])
b=np.array([[15],[27],[31]])
x=np.linalg.solve(A,b)
print(x)
import numpy as np
A=np.array([[5,1,3],[-1,2,5],[4,-5,1]])
b=np.array([[76],[35],[22]])
x=np.linalg.solve(A,b)
print(x)
A=np.array([[1,3,4],[2,-1,1],[-4,2,-2]])
b=np.array([[18],[10],[-7]])
x=np.linalg.solve(A,b)
print(x)<jupyter_output><empty_output><jupyter_text>É UMA MATRIZ SINGULAR (NÃO TEM SOLUÇÃO)<jupyter_code>import numpy as np
A=np.array([[10,120],[8,80]])
b=np.array([[844],[576]])
x=np.linalg.solve(A,b)
print(x)<jupyter_output>[[10. ]
 [ 6.2]]<jupyter_text>Funções Trigonomêtricas   Qual é o seno de 57° ?<jupyter_code>import numpy as np
arco=np.deg2rad(57)
np.sin(arco)<jupyter_output><empty_output><jupyter_text>Qual é o ângulo cujo cosseno é igual a 0,7?<jupyter_code>import numpy as np
angulo=np.arccos(0.7)
np.rad2deg(angulo)<jupyter_output><empty_output><jupyter_text>Números complexos   Obs: separando raiz em duas Número Complexo na forma algébrica: z=a+bi   a=parte real:   a=Re(z)b=parte imaginária:   b=Im(z)  Escreva o número complexo z=3+5j utilizando o Python<jupyter_code>z=complex(3,5)
print(z)<jupyter_output>(3+5j)<jupyter_text>Obtenha o módulo do número complexo z=3+5j<jupyter_code>z=complex(3,5)
abs(z)
z1=complex(3,5)
z2=complex(7,-3)
soma=z1+z2
produto=z1*z2
divisao=z1/z2
print(soma)
print(produto)
print(divisao)<jupyter_output>(10+2j)
(36+26j)
(0.10344827586206899+0.7586206896551725j)<jupyter_text>Sistemas Lineares com números complexos<jupyter_code>import numpy as np
A=np.array([[complex(2,1),complex(5,-1)],[complex(5,1),complex(7,4)]])
b=np.array([[complex(3,8)],[complex(2,5)]])
np.linalg.solve(A,b)
import numpy as np
A=np.array([[complex(3,2),complex(-2,-6)],[complex(-2,-6),complex(10,1)]])
x1=np.cos(np.deg2rad(0))
y1=np.sin(np.deg2rad(0))
x2=np.cos(np.deg2rad(30))
y2=np.sin(np.deg2rad(30))
b=np.array([[70*complex(x1,y1)],[110*complex(x2,y2)]])
np.linalg.solve(A,b)
import numpy as np
A=np.array([[complex(1,5),complex(3,-2)],[complex(3,-2),complex(4,1)]])
x1=np.cos(np.deg2rad(23))
y1=np.sin(np.deg2rad(37))
b=np.array([[30*complex(x1,y1)],[52*complex(x2,y2)]])
np.linalg.solve(A,b)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.23889268626110732, 'fraction_numerical': 0.09774436090225563, 'mean_word_length': 8.321656050955413, 'pattern_counts': {'":': 0, '<': 32, '<?xml version=': 0, '>': 32, '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': '9', 'dir': 'jupyter-structured-clean-dedup', 'id': '498940', 'license': 'MIT', 'n_tokens_mistral': 1623, 'n_tokens_neox': 1526, 'n_words': 188, 'path': 'Operations/Vetores,Matrizes,Sistemas Lineares.ipynb', 'repo_name': 'Edu-Kobus/Exercise-in-python', 'size': '2926'}