<a href="https://colab.research.google.com/github/andresvillamayor/Python-Algebra-Lineal/blob/main/sympy_simbolos.ipynb" target="_parent"></a>

importamos la libreria sympy
esto tambien nos permite tener un salida en LATEX


```python
from sympy import init_session
```

Inicializamos para la salida en LATEX


```python
init_session(use_latex=True)
```

    IPython console for SymPy 1.7.1 (Python 3.7.10-64-bit) (ground types: python)
    
    These commands were executed:
    >>> from __future__ import division
    >>> from sympy import *
    >>> x, y, z, t = symbols('x y z t')
    >>> k, m, n = symbols('k m n', integer=True)
    >>> f, g, h = symbols('f g h', cls=Function)
    >>> init_printing()
    
    Documentation can be found at https://docs.sympy.org/1.7.1/
    


Las variables debes ser declaradas 


```python
a = symbols('a')
b = symbols('b')
a,b
```

Utilizando PI 


```python
(b + pi)
```


```python
(a + pi) ** 2
```

tipo de variable 


```python
type(a) 
```




    sympy.core.symbol.Symbol



Pasar los simbolos a variables 


```python
a = 2
b = 3
(a + b) * pi 
```

Para saber el valor de a ( anterior era symbol)


```python
type(a)
```




    int



d91b5d7d69dcd77b7f8b2d011b6431219257c9fa
ipynb
Jupyter Notebook
sympy_simbolos.ipynb
andresvillamayor/Python-Algebra-Lineal
40a60296ec9245572fafa9e57e20c764182d0b0b
Apache-2.0
sympy_simbolos.ipynb
andresvillamayor/Python-Algebra-Lineal
40a60296ec9245572fafa9e57e20c764182d0b0b
Apache-2.0
sympy_simbolos.ipynb
andresvillamayor/Python-Algebra-Lineal
40a60296ec9245572fafa9e57e20c764182d0b0b
Apache-2.0
Qwen/Qwen-72B
1. YES
2. YES