# Numerical integration in a function

```
f(x,y)=numerical_integral(1/d*2*x*y,.01,Infinity)[0]
Error
```

So what I want is to the integration wait until after the variables have been substituted so that it is able to numerically integrate. (Yes I need to numerically integrate. This is a simplified form that reproduces the same result.)

```
f(3,1)=numerical_integral(1/d*2*3*1,.01,Infinity)[0]
406.69135669845798
```

I thought there might be a way using a lambda defined function, but I was unable to find one.