# 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)
```

b6efbe03966c8c5682dfa3394b1c774b3362239d
ipynb
Jupyter Notebook
docs/source/examples/Lambdify symbolic calculation.ipynb
bibek22/einsteinpy
78bf5d942cbb12393852f8e4d7a8426f1ffe6f23
MIT
2020-06-01T18:37:53.000Z
2020-06-01T18:37:53.000Z
docs/source/examples/Lambdify symbolic calculation.ipynb
bibek22/einsteinpy
78bf5d942cbb12393852f8e4d7a8426f1ffe6f23
MIT
2019-04-08T17:39:50.000Z
2019-04-11T03:10:09.000Z
docs/source/examples/Lambdify symbolic calculation.ipynb
bibek22/einsteinpy
78bf5d942cbb12393852f8e4d7a8426f1ffe6f23
MIT
Qwen/Qwen-72B
1. YES
2. YES

