Timeline for Defining a function which is numerical on all vectors of arguments
Current License: CC BY-SA 4.0
2 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| May 14, 2020 at 17:33 | comment | added | Michael E2 | I think the solution is a little over-eager :) -- Try NumericQ[f[1, {2, t}, 4]] which should return False. I think the def. f /: NumericQ[f[args___]] /; VectorQ[Flatten@{args}, NumericQ] := True is more on-target. | |
| May 14, 2020 at 17:18 | history | answered | swish | CC BY-SA 4.0 |