# defining a function

if I define

```
f = e^(-x-y)
```

then

```
var('a,b')
f(a,b)
```

returns `e^(-a-b)`

```
f(1,1)
```

returns `e^(-2)`

But I want the real value. So here is my question, how to define a function (with the SageMath protocol or the `def`

of Python such that if the arguments are variables it return the symbolic function with the symbolic variables and if the arguments are, say, explicit real value numbers? There is one more problem when the argument are of the type `(1,a)`

.

There is a begining of answer in the asksagemath question "How to define Sage function with Optional arguments?" but in that case I do not know how to condition on say real or symbolic arguments.