# Euler's Formula

[back to overview page](index.ipynb)

a proof: http://austinrochford.com/posts/2014-02-05-eulers-formula-sympy.html


```python
import sympy as sp
sp.init_printing()
```


```python
x = sp.symbols('x', real=True)
```


```python
exp1 = sp.exp(sp.I * x)
exp1
```


```python
exp2 = exp1.expand(complex=True)
exp2
```


```python
exp2.rewrite(sp.exp)
```

Euler's identity:


```python
sp.exp(sp.I * sp.pi) + 1
```

<p xmlns:dct="http://purl.org/dc/terms/">
  <a rel="license"
     href="http://creativecommons.org/publicdomain/zero/1.0/">
    
  </a>
  <br />
  To the extent possible under law,
  <span rel="dct:publisher" resource="[_:publisher]">the person who associated CC0</span>
  with this work has waived all copyright and related or neighboring
  rights to this work.
</p>

3bbea582709c7df157ab0ccc2f75dc54092d1d99
ipynb
Jupyter Notebook
sympy/euler.ipynb
mgeier/python-audio
70d4d62b148c08c50ec0057f8d4fd9876ce67a13
CC0-1.0
2015-04-14T20:13:25.000Z
2022-03-26T20:00:27.000Z
sympy/euler.ipynb
mgeier/python-audio
70d4d62b148c08c50ec0057f8d4fd9876ce67a13
CC0-1.0
2017-05-02T13:22:41.000Z
2017-05-03T13:17:15.000Z
sympy/euler.ipynb
mgeier/python-audio
70d4d62b148c08c50ec0057f8d4fd9876ce67a13
CC0-1.0
2015-04-19T14:08:37.000Z
2021-04-21T14:24:37.000Z
Qwen/Qwen-72B
1. YES
2. YES