<jupyter_start><jupyter_text>Usando Numpy<jupyter_code>import numpy as np
#  Constante y funciones matematicas 
print (np.e)  #  valor de E
print (np.pi) #  valor de pi
print (np.log(2))  #  valor de logaritmo de 2<jupyter_output>2.718281828459045
3.141592653589793
0.6931471805599453<jupyter_text>Coleccion de elementos<jupyter_code>np.array([1,2,3])<jupyter_output><empty_output><jupyter_text>Saber el tipo de datos de la coleccion<jupyter_code>a = np.array([3,4,5])
a.dtype  #  Valor de dato int
b = np.array([1.,2.0,3.1])
b.dtype  #  valor de dato float<jupyter_output><empty_output><jupyter_text>Cambiar los valores del array<jupyter_code>a = np.array([1,2,3],dtype= float)  # se cambio un array de numero enteros a float 
print (a)
print (a.dtype)
b = np.array([1,2,3],dtype = complex) #  se cambia  un array de numero entros a complex
print (b)
print (b.dtype)<jupyter_output>[1.+0.j 2.+0.j 3.+0.j]
complex128<jupyter_text>Otra forma es usado astype<jupyter_code>x = np.array([1,2,2.5])
print (x)
x.astype(int) #  pasa a valor integer<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.13445378151260504, 'fraction_numerical': 0.07563025210084033, 'mean_word_length': 5.784810126582278, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, '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': '5', 'dir': 'jupyter-structured-clean-dedup', 'id': '185203', 'license': 'Apache-2.0', 'n_tokens_mistral': 506, 'n_tokens_neox': 476, 'n_words': 100, 'path': 'numpy_inicio.ipynb', 'repo_name': 'andresvillamayor/Python-Geometria-Analitica', 'size': '1071'}