Timeline for Why Infinity /. _?(# < 6 &) -> 0 replaces Infinity with ComplexInfinity?
Current License: CC BY-SA 3.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 19, 2014 at 15:22 | answer | added | Michael E2 | timeline score: 7 | |
Nov 19, 2014 at 13:10 | history | edited | a06e | CC BY-SA 3.0 |
edited title
|
Nov 19, 2014 at 13:10 | comment | added | a06e | Why the close votes? I think this wasn't that obvious! I changed the title using @kguler's (+1) simpler example. | |
Nov 19, 2014 at 13:09 | vote | accept | a06e | ||
Nov 17, 2014 at 17:34 | answer | added | Dr. belisarius | timeline score: 16 | |
Nov 17, 2014 at 17:23 | review | Close votes | |||
Nov 17, 2014 at 19:28 | |||||
Nov 17, 2014 at 16:22 | comment | added | bill s |
You can get what you want using: mat /. _?(# < 6 &) -> 0 /. ComplexInfinity -> Infinity
|
|
Nov 17, 2014 at 15:54 | comment | added | kglr |
see the output of Infinity /. _?(# < 6 &) -> 0 // Trace .
|
|
Nov 17, 2014 at 15:33 | history | asked | a06e | CC BY-SA 3.0 |