<jupyter_start><jupyter_text>Sympy<jupyter_code>import math

math.sqrt(9)
math.sqrt(8)
import sympy
result = sympy.sqrt(8)
# result = 2*sqrt(2)
result
result / 2<jupyter_output><empty_output><jupyter_text>Símbolos en sympy<jupyter_code># Representar la expresión x + 2y

expression = x + 2*y
from sympy import symbols

x, y = symbols('x y')
expression = x + 2*y
expression

expression + 1

expression - x<jupyter_output><empty_output><jupyter_text>IntegralesEl método principal de este módulo es `integrate()`integrate(f, x) retorna la integral indefinida integrate(f, (x, a, b)) retorna la integral definida entre `b` y `a`<jupyter_code>from sympy import *
x = Symbol('x')

expr = 2 * (x**3)
expr

integrate(expr, x)
expr = x**2 * exp(x) * cos(x)
expr
integrate(expr, x)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.1285892634207241, 'fraction_numerical': 0.016229712858926344, 'mean_word_length': 6.225225225225225, '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': '3', 'dir': 'jupyter-structured-clean-dedup', 'id': '172608', 'license': 'MIT', 'n_tokens_mistral': 328, 'n_tokens_neox': 318, 'n_words': 80, 'path': 'Videos/PrimerBimestre/video2.ipynb', 'repo_name': 'renatojobal/python_sol', 'size': '801'}