I think I may have some syntax error here but I can’t figure out what it is. I am trying to write and use a function called probit. In the long term I would like to save this function into a file but for now I’m just trying to call it in the same script

```
using SpecialFunctions: erf
function probit(x)
return 0.5*(1+erf(x/sqrt(2)))
end
probit(1)
```

I get an error “UndefVarError: probit not defined”

but I have just defined it in the line above. Is there some problem with my syntax?

Thanks