Skip to main content
5 events
when toggle format what by license comment
Aug 24, 2014 at 18:24 vote accept user39963
Mar 13, 2016 at 18:52
Aug 24, 2014 at 18:22 vote accept user39963
Aug 24, 2014 at 18:22
Aug 8, 2014 at 4:41 comment added khanhnguyendata @user39963 You can just use {0, Infinity} (instead of just Infinity at the end of Cases) and it will take care of that issue. I was writing my own answer but it was remarkably similar to Bob's aside from the level spec of Cases.
Aug 8, 2014 at 4:28 comment added user39963 This also nearly works, I just needed to place {} around expr when used in Cases[] so that when expr is a single term Cases still act as expected. Thank you for the help, I'll be trying to break down the function to better understand how it works.
Aug 8, 2014 at 3:32 history answered Bob Hanlon CC BY-SA 3.0