I've come along a function defined in this way:
F[t_?NumericQ] := NDSolve[{-u''[x] - u[x]/x == -t^2 u[x], u[x0] == x0, u'[x0] == 1}, u, {x, x0, x1}]
What does the
t_?NumericQ
mean and what does it bring us over the use of just F[t_]?
I've come along a function defined in this way:
F[t_?NumericQ] := NDSolve[{-u''[x] - u[x]/x == -t^2 u[x], u[x0] == x0, u'[x0] == 1}, u, {x, x0, x1}]
What does the
t_?NumericQ
mean and what does it bring us over the use of just F[t_]?
PatternTest. And while you're at it see (1699). – Mr.Wizard Jan 20 '15 at 20:58