# generate multi-symbol using sympy 


```python
import numpy as np
import sympy as sy
sy.init_printing()
```


```python
n=3

symbol=np.array(sy.symbols('x1(1:{})'.format(n)))
```


```python
symbol
```




    array([x11, x12], dtype=object)




```python
symbol[0]
```


```python
row,col=2,2
kwds=['x{}(0:{})'.format(i,col) for i in range(row) ]
symbols=np.array([sy.symbols(kwd) for kwd in kwds]).reshape(row,col)
symbols=sy.Matrix(symbols)
```


```python
symbols.inv()
```


```python
inv_symbols=sy.Matrix(np.array([eq.factor() for eq in symbols.inv()]).reshape(row,col))
```


```python
inv_symbols
```


```python

```

d608b2cbc58e721bc4deaef6586045cf3eee7084
ipynb
Jupyter Notebook
interpolateFunction/multisymbols.ipynb
terasakisatoshi/pythonCodes
baee095ecee96f6b5ec6431267cdc6c40512a542
MIT
interpolateFunction/multisymbols.ipynb
terasakisatoshi/pythonCodes
baee095ecee96f6b5ec6431267cdc6c40512a542
MIT
interpolateFunction/multisymbols.ipynb
terasakisatoshi/pythonCodes
baee095ecee96f6b5ec6431267cdc6c40512a542
MIT
Qwen/Qwen-72B
1. YES
2. YES