Skip to main content
9 events
when toggle format what by license comment
Nov 22, 2017 at 12:17 vote accept Nasser
Nov 22, 2017 at 10:29 history tweeted twitter.com/StackMma/status/933281295823659014
Nov 22, 2017 at 9:05 history edited Alexey Popkov
edited tags
Nov 22, 2017 at 6:45 answer added WReach timeline score: 5
Nov 22, 2017 at 5:03 comment added Nasser @b3m2a1 Ok, but that is not what documentation says :). Mathematica helps sometimes is not really clear and very short in explaining things.
Nov 22, 2017 at 5:01 comment added b3m2a1 Nah, Heads->True makes it (try to) match the Head too. The docs were just noting that since it was matching the _Symbol, it was going to return the Head.
Nov 22, 2017 at 5:00 comment added Nasser @b3m2a1 thanks. I know this. But I do not see how this made Cases work. Help says that Head->True just makes Cases also return the Head in the result. So I would have expected something like {Derivative,1,2} to be returned.
Nov 22, 2017 at 4:58 comment added b3m2a1 y''[x] // FullForm gives Derivative[2][y][x]. That Derivative term is in the Head. You'll could get away with Heads->False here by doing Derivative[n_][_][__], but note that this may not work in general.
Nov 22, 2017 at 4:03 history asked Nasser CC BY-SA 3.0