# Lambdify in symbolic module
### Importing required modules


```python
import sympy
from sympy.abc import x, y
from sympy import symbols
from einsteinpy.symbolic import BaseRelativityTensor

sympy.init_printing()
```

### Calculating a Base Relativity Tensor


```python
syms = symbols("x y")
x, y = syms
T = BaseRelativityTensor([[x, 1],[0, x+y]], syms, config="ll")
```

### Calling the lambdify function


```python
args, func = T.tensor_lambdify()
args
```

`args` indicates the order in which arguments should be passed to the returned function `func`

### Executing the returned function for some value


```python
func(2, 1)
```

5efe9632bd4a4e9c8cb23e2a6b0e123a0f8dd065
ipynb
Jupyter Notebook
docs/source/examples/Lambdify symbolic calculation.ipynb
Suyog7130/einsteinpy
557c166666e7280e7100f8761868effe1677b5a7
MIT
docs/source/examples/Lambdify symbolic calculation.ipynb
Suyog7130/einsteinpy
557c166666e7280e7100f8761868effe1677b5a7
MIT
docs/source/examples/Lambdify symbolic calculation.ipynb
Suyog7130/einsteinpy
557c166666e7280e7100f8761868effe1677b5a7
MIT
Qwen/Qwen-72B
1. YES
2. YES

