# Sympy and PhysicalQuantities


```python
%load_ext PhysicalQuantities.ipython
```


```python
from sympy import *
init_printing()
```


```python
a = 1 m * Matrix([ [1,2,3], [4,5,6]])
b = 1 cm * Matrix([ [1,2,3], [4,5,6]])
```


```python
a
```




$\left[\begin{matrix}1 & 2 & 3\\4 & 5 & 6\end{matrix}\right]$ $\text{m}$




```python
a+b
```




$\left[\begin{matrix}1.01 & 2.02 & 3.03\\4.04 & 5.05 & 6.06\end{matrix}\right]$ $\text{m}$




```python
x = Symbol('x')
```


```python
1 m * x
```




$x$ $\text{m}$




```python
a = 2 m * x
a
```




$2 x$ $\text{m}$




```python
a/3
```




$\frac{2 x}{3}$ $\text{m}$




```python
Integral(sqrt(1/x), x)
```


```python

```

d7a5e6e680542a5d0517f092f795a16f6d2f3a05
ipynb
Jupyter Notebook
examples/pq-sympy.ipynb
vishalbelsare/PhysicalQuantities
7cbd4fdd31890fd17403ca19defede66116e2e8a
BSD-3-Clause-Clear
2015-09-22T15:16:11.000Z
2021-09-13T00:09:54.000Z
examples/pq-sympy.ipynb
vishalbelsare/PhysicalQuantities
7cbd4fdd31890fd17403ca19defede66116e2e8a
BSD-3-Clause-Clear
2015-01-11T22:12:14.000Z
2021-04-05T08:35:15.000Z
examples/pq-sympy.ipynb
vishalbelsare/PhysicalQuantities
7cbd4fdd31890fd17403ca19defede66116e2e8a
BSD-3-Clause-Clear
2015-11-12T16:43:27.000Z
2021-09-08T12:36:48.000Z
Qwen/Qwen-72B
1. YES
2. YES