Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #3249 > unrolled thread
| Started by | Francisco Gutierrez <fgutiers2002@yahoo.com> |
|---|---|
| First post | 2011-06-23 11:30 +0000 |
| Last post | 2011-06-23 11:30 +0000 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.soft-sys.math.mathematica
pattern example Francisco Gutierrez <fgutiers2002@yahoo.com> - 2011-06-23 11:30 +0000
| From | Francisco Gutierrez <fgutiers2002@yahoo.com> |
|---|---|
| Date | 2011-06-23 11:30 +0000 |
| Subject | pattern example |
| Message-ID | <itv856$pd7$1@smc.vnet.net> |
I find in Leonid's (Shiffrin) excellent book the following example (p. 122):
f[3/5,4,5,2/3]/.f[x:(_Integer|_Rational)..]:>{x}
According to the book, this returns {3/5,4,5,2/3}
However, I get (Mathematica 8.0.1, Windows 7) f[3/5,4,5,2/3]
What's wrong?
Francisco
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web