1,293 reputation
427
bio website
location
age
visits member for 2 years, 2 months
seen Apr 14 at 14:43

Jan
25
comment Patternmatching sets
Why use the attribute OneIdentity? The set {x} which contains the sole element x is not the same as the object x itself.
Jan
24
comment Math cell symbols not in italics
Mathematica assumes that a contiguous sequence of letters should be treated as text. As Szabolcs says, it's ok to add an invisible space.
Jan
16
comment Extract table from image
+1 But it has some mistakes. numberData[[6, 5]] and numberData[[6, 6]] both give 0, but should be -1 and 1 respectively.
Jan
15
comment How to make the Mathematica icon flash in the taskbar?
+1 Good idea. Converting the file selection dialog into something useful makes sense.
Jan
14
comment How to switch off all messages?
Yes. It's fine now. Thanks.
Jan
14
comment How to switch off all messages?
Ok. I did one last edit. I leave in your hands.
Jan
14
comment How to switch off all messages?
It seems you were trying to include a link. I tried to edit your post to fix it, but it didn't work... I think the $s are messing up the links.
Jan
14
comment How to make the Mathematica icon flash in the taskbar?
@MikeLimaOscar SystemDialogInput["FileSave"] makes the taskbar icon flash. But it also brings up a File Save dialog that can be confusing. I guess I can use it temporarily. But it would be nice if there was a command that made the taskbar flash without side effects.
Jan
14
comment How to make the Mathematica icon flash in the taskbar?
@rm-rf It may be OS dependent. But it is specific to Mathematica. I want a Mathematica command (similar to Beep[]) that makes the taskbar flash.
Jan
14
comment How to make the Mathematica icon flash in the taskbar?
@mm.Jang The problem with Beep[] is that if you leave the computer for a while and return, and you can miss the beep. The icon flashing remains flashing indefinitely.
Jan
14
comment Extract table from image
+1. But I've found one error: m[[28,28]] gives -1. It should be 1.
Jan
13
comment Extract table from image
@Anon But I don't think you can define a priori (that is, before seeing the image) where the columns are going to be.
Jan
13
comment Extract table from image
@anon You can also assume that you know the dimensions of the matrix. In this example, the matrix is 46x34. The columns and rows are clearly delineated in the image.
Jan
13
comment Extract table from image
@rm-rf Yes. You can assume that the values are all in the set {-1, 0, 1, 2}.
Jan
7
comment Why x = x doesn't cause an infinite loop, but f[x_] := f[x] does?
I agree @LeonidShifrin and IstvanZachar. This doesn't answer my question.
Jan
7
comment Why x = x doesn't cause an infinite loop, but f[x_] := f[x] does?
@JacobAkkerboom I agree. I think that x:={x} and x:=Identity[x] are explained by @MichaelE2's comment above (referencing reference.wolfram.com/mathematica/tutorial/…). Your point is that @MichaelE2's explanation works for all the examples that reach $RecursionLimit? If yes, you should add that to your answer (Extended comment)... It could be helpful to reach a complete answer.
Jan
7
comment Why x = x doesn't cause an infinite loop, but f[x_] := f[x] does?
@JacobAkkerboom It makes no difference to me that the infinite loop is due to IterationLimit or to RecursionLimit.
Jan
7
comment Why x = x doesn't cause an infinite loop, but f[x_] := f[x] does?
@m_goldberg I would like an explanation that starts from the evaluation mechanism of Mathematica. There should be a general principle (I hope) that establishes when there is infinite recursion and when there isn't.
Jan
7
comment Why x = x doesn't cause an infinite loop, but f[x_] := f[x] does?
@SimonWoods In your example, ValueQ[f[x]] returns False, so my guess (based on @Rojo's guess) that there's a loop whenever ValueQ returns True still applies.
Jan
7
comment Why x = x doesn't cause an infinite loop, but f[x_] := f[x] does?
@Rojo More precisely, there's a loop (in these examples) whenever ValueQ returns True... I think...