« first day (153 days earlier)      last day (4321 days later) » 

12:56 AM
Hi Mr!
 
Hello belisarius :-)
@belisarius could you take a look at this page? The font is coming up super small for me. Perhaps I managed to mess up my browser settings when I was testing different Zoom levels for the survey, but I cannot seem to reverse it.
 
@MrWizard I always see mathgroup pages in a small font. Legible, but truly small.
 
Interesting. Maybe I had a custom zoom set for that page and lost it somehow (I use an extension called NoSquint to help my eyes.)
 
The actual size is a bit larger
installed NoSquint. Let's see if it helps me too :D
Hey! It is great!
 
1:11 AM
@belisarius I couldn't live without it. Maybe my nickname should be Mr. Magoo :o)
 
@MrWizard Thanks a lot! My browsing will be much more pleasant in the future
 
Happy to be of service. :D
 
How much for the tip?
Well, nights all. I need to start very early tomorrow.See ya.
 
One day you will be contacted with a request for a favor. ;-)
Good night, belisarius!
 
@MrWizard good night!
 
2:08 AM
@belisarius Beautiful, isn't it? I have been reading it again after a span of a few months, and when I got to that section (and also the succeeding section on "the tyranny of the blank screen"), I was very much reminded of Mathematica...
@belisarius If I may: I submit that a lot of philosophical notions get distorted somewhat when one attempts to translate them into a language quite different from the original.
 
2:26 AM
@JM Just briefly skimming that. Looks very interesting. I particularly like the section header "The Foibles of Computer Systems."
I am convinced that computer systems are slowly driving us mad. It has been said that doing the same thing over and over again and expecting a different result is the definition of insanity. Well, anybody who has attempted to put paper money in a vending machine must be certifiably insane as it forces you to do the same thing over and over again in an attempt to get that damned candy bar!
 
3:01 AM
@rcollyer I'd be more understanding if those machines only crapped out on decrepit bills, but this happens to new bills too. Nuts, I say.
(Then again, I know that calibrating sensors properly is often tricky.)
 
 
3 hours later…
5:49 AM
0
Q: LaTeX markup and dollar signs in code

halirutanCan someone explain to me, what happens in this question on mine? I wanted to write something like $KernelID and $ProcessID but in the question it seems like the LaTeX markup got confused: Is there a way to prevent this?

 
 
6 hours later…
12:05 PM
Nobody said something the last 6 hours?? What is going on here?
Does someone know the status of our Blog?
23
Q: A blog for Mathematica.SE -- volunteers / suggestions for post topics?

SzabolcsNote: There seems to be a lot of support for having our own blog, and we have several volunteers, so I've added the feature-request tag to this post to draw the attention of the SE team and hopefully set up a blog. Update: Here's some info on creating/requesting a blog. Several StackExchan...

Correction: Silence since 9 hours. The StackExchange message was automatic.
 
12:22 PM
@halirutan not even any lurkers in the chat! Highly irregular! :)
 
@OleksandrR, yes, really weird.
 
-3
Q: How to formulate question

wubwubwubHow do I formulate the following question in Mathematica, Let $x = 6$ and $y = 7$. Why was $x$ afraid of $y$? Thanks for your help.

wat
 
12:37 PM
What?? Beside that I don't get this joke... was is really the answer of this question??
 
The joke is pretty lame; the real answer is "because seven eight (ate) nine". The anti-joke isn't supposed to make sense though.
 
Oh.. ok. I thought it was just my english...
We have such things too: "At night it is really shorter than through the wood"
But this sounds maybe better in German.
 
My German is really terrible, I'm afraid; I missed the pun there.
Hmm, got to to... back in 20.
 
1:03 PM
@halirutan I missed the pun as well. Can you give the original?
 
@Ajasja aehm, there is no "original". I would say if you miss the pun, then you got the joke..
It's just that "At night it is shorter ..." sounds like the start of a sentence which gives you a hint to circumvent trouble at night..
and "..than through the wood" sounds in German like it gives a perfectly meaningful sentence.. but it is complete nonsense.
 
@halirutan No, I meant "At night it is really shorter than through the wood" in German:)
 
1:21 PM
@Ajasja now you lost me. Do you want me to explain the joke in German? Because the sentence means in German exactly the same as in English
Btw, back in 10..
 
1:40 PM
@halirutan Oh right, I see. So it isn't a pun after all.
Has anyone really been far even as decided to use even go want to do look more like?
 
1:59 PM
@OleksandrR right.. an anti-joke
 
2:11 PM
@OleksandrR, @Ajasja Omg.. I told the joke wrong! I mixed up 2 different anti jokes. So here we go:
"At night it's colder than outside"
"By foot it's shorter than through the wood"
 
In Dutch we have a joke like that. It translates as "How long is a Chinese person".
(in Dutch it works better since the Dutch words for long and tall are the same in this context)
 
R.M
2:45 PM
Hi
 
Hi, @RM
sorry for overtaking you in the quarterly reputation league
 
R.M
Heh, there's always a next time :)
Been quite busy this month and now am on a mini vacation
Apparently campgrounds now have wifi
 
3:10 PM
how else are parents going to keep their children occupied during the holidays?
 
You used that a lot?
 
@Rojo fortunately not!
 
Hi !
 
@newprint hello!
 
3:52 PM
@OleksandrR I have seen the the link to this article on several sites
 
acl
@Heike "we" (ie, some ex-collaborators and I) had a similar joke in greek: "what is the difference between a bird?"
the answer to which is:
"a bird has two feet, one of which."
we'd say it to each other at least once a day and fall off our chairs laughing.
 
@acl I don't get it (but I suspect that's the point).
 
@acl I like it. That's a good one.
 
When I was young I had this book with very cheesy jokes. I thought were hilarious and I used to recite them to my parents on a daily basis.
 
acl
@Heike the joys of parenthood
 
4:00 PM
Quick question(I am a beginner). Is possible to make Table[] command generate lists depending on the some kind of condition set within Table.
in other words, can "expr." have some kind of conditional statement ??? Table[expr.,{i,i_min,i_max, dx}]
 
so you want imin and imax to depend on the value of expr?
@OleksandrR In itself it's imaginable that two different versions produce different results. Maybe they have improved the techniques used to make the estimates.
 
@Heike Sure. But to differ based on the OS and update level as well?
 
acl
@newprint I don't see how (maybe others do), but you can do this DeleteCases[Table[(If[EvenQ[x], x, Sequence[]]), {x, 1, 10}], Null]
 
no, when Table spits out the results, I want the results to depend on the condition set within the expr. example: Table[i^2, {i,1,10}] = {1, 4, 9, 16, 25, 36, 49, 64, 81, 100}. What if I want only values greater than 9. Can I set expr within Table to have condition ?
 
@acl Unevaluated@Sequence[] lets you avoid the DeleteCases.
@acl If is not SequenceHold (I have been annoyed by this in the past as well).
 
4:12 PM
@OleksandrR Yes that is curious.
 
@newprint A quick experiment with Condition says that it doesn't work inside of Table: Table[i j /; i > j, {i, 3}, {j, 3}] produces {{1 /; i > j, 2 /; i > j, 3 /; i > j}, {2 /; i > j, 4 /; i > j, 6 /; i > j}, {3 /; i > j, 6 /; i > j, 9 /; i > j}}, but you can use If: Table[If[i >= j, i j], {i, 3}, {j, 3}] to produce {{1, Null, Null}, {2, 4, Null}, {3, 6, 9}}, but you have get rid of the nulls.
A method to do that is to return a Sequence[], instead: Table[If[i >= j, i j, ## &[]], {i, 3}, {j, 3}] which produces {{1}, {2, 4}, {3, 6, 9}}. Note: ## &[] is effectively Unevaluated[ Sequence[] ].
 
How about using f[] == expr, that has condition build into, and returns an appropriate value ?
 
@rcollyer Ah, yes. I always forget that "vanishing function" trick.
 
@OleksandrR it was either Mr.W or Szabolcs who pointed out the specific form to me.
@newprint depends. Can you give me more details?
 
Table[f[i], {i,1,10}] = {1, 4, 9, 16, 25, 36, 49, 64, 81, 100}.
f[x_] := If[x<10,x]
 
4:23 PM
Yes, that will work, except you will have to deal with `Null`: `Block[{f},
f[x_] := If[x < 10, x]; Table[f[i], {i, 15}] ]` returns `{1, 2, 3, 4, 5, 6, 7, 8, 9, Null}`.
 
Table[...] /. Null -> Sequence[] would work to clear up the Nulls
 
A method, if you don't wish to change f, is to temporarily change the definition of Null: Block[{Null = Sequence[]}, Table[f[i], {i, 15}] ] returns {1, 2, 3, 4, 5, 6, 7, 8, 9}.
@Heike Definitely, but I think that requires a second pass, and may (I haven't tested it) be slower.
 
@rcollyer so for f[x_] := If[x < 10, x]; Table[f[i], {i, 15}] ], it will actually give NULL for all the the values that don't pass the test !!!!!!
 
@rcollyer Very likely
 
{1, 2, 3, 4, 5, 6, 7, 8, 9, Null, Null, Null, Null, Null, Null}
 
4:27 PM
@newprint you're test is x < 10 not x <= 10.
 
If you don't mind I have couple other short questions:
1) in C++/C within F() you can have return statement anywhere you want. I have looked though the Math. docs, and didn't see anything similar. Only in Module f[]:= Module has this option. 2) Is it possible for the function to return a set (In C++ you can return a pointer to an array)list
 
There is Return[]
With Do, For, and While loops you can use Break
 
@newprint I'm not sure what is meant by "return a set" in this context. Since you hint at the idea of a pointer, all functions are return a value, not a pointer.
 
@newprint Rather than Return, it's probably better to use Throw/Catch. The second part of the question I don't quite understand. A set list? A set? A list?
 
I should run. Talk to you later.
 
4:36 PM
bye
 
@OleksandrR I have tried to make a correction to my question, but made a mistake. It should have been "2) Is it possible for the function to return a list
In examples in How-to, there are plenty of examples, but most examples return numeric/symbolic values, not list
 
@newprint yes, definitely. In Mathematica, functions can accept as arguments or return completely arbitrary expressions.
@newprint Well, for example, Table is a function that returns a list (or a list of lists (of lists...))
@newprint If you want to build up a list using function return values, other than Table, Sow/Reap are good functions to look at.
 
Cool, thanks !
I will look into it
 
@OleksandrR Map and Apply are also useful functions to know
 
@Heike Good point. Agreed. (But I was thinking of the earlier Table example.)
 
4:44 PM
@OleksandrR That could indeed be easily done with Sow/Reap.
 
Apply didn't made too much sense, Apply[f, {a,b,c}] - will shove the whole thing into f => f[a,b,c]. Effectively changing the head of {a,b,c} from List to f
 
@newprint I was thinking more about handling lists in general
 
Map, looked a lot more useful. Map[f, {a,b,c}] => {f[a],f[b].......
 
@newprint Or Function[Null, f[#], Listable][{a, b, c}] ...
 
Apply is useful in cases where you have a list like {{a,b}, {c,d}, ...} and you want to generate the list {f[a,b], f[c,d], ...}. In that case you could do Apply[f, {{a,b}, {c,d}, ...}, {1}] (or f @@@ {{a,b}, {c,d}, ...} for short)
 
4:50 PM
However, Map is probably the "standard" loop construct in Mathematica.
 
@OleksandrR I used to use Table a lot for generating lists, but I find myself using Map more and more nowadays.
 
@OleksandrR I guess Listable is "option/parameter" to make function work with lists ?
 
acl
@OleksandrR yes that is what I had in mind but couldn't remember how to do it (which is a strong argument I shouldn't do it)
 
@newprint Listable automatically distributes a function over lists appearing in it's argument.
For example Sin[{1,2,3}] will automatically be converted to {Sin[1], Sin[2], Sin[3]}
 
@newprint Listable is an attribute, and attributes are given as the third argument of Function when you're defining a function. You can also do SetAttributes[f, Listable] to set this attribute on an already extant function.
 
acl
4:52 PM
@OleksandrR yes I'd use Do[(If[EvenQ[x], Sow[x]]), {x, 1, 10}]; // Reap // Last // Last if I had to do this
 
because it is Listable (?Sin says so)
 
acl
not Table
 
You don't need any special options/attributes for a function to be able to work with lists.
@newprint Yes, that's right.
 
@Heike - Slowly getting there !!!!!
 
@acl I'd probably use /@ Range[10] instead of Do but the principle is the same
@newprint In Mathematica you need to get rid of the idea that lists are special in any way. They are just expressions like everything else in Mathematica.
 
4:56 PM
Later on today, I will re-read our log, and will rework the example you gave me. Guys, Thanks for help!
 
@acl Me too, I think. Or maybe Reap[Sow[#, EvenQ[#]] & /@ Range[10], True][[-1, 1]].
 
@OleksandrR That's a nice one as well. It avoids the If.
 
acl
@Heike I tend to do the same (use Map) but I've noticed that I can read and understand my stuff better if I avoid nesting too many pure functions, Maps etc. so I consciously try to use Do, Table etc wherever it makes no speed difference
 
@Heike it is hard to code in C++ all day long, and not having to struggle with the lists
 
@Heike Although you do need to Sow twice as many items. Nice if you want to get the odd ones too, though.
 
4:59 PM
@newprint Lists are easy in Mathematica. They are much more confusing in C/C++ (for me at least).
 
My first year in college, they made us work in Lips/Scheme
mathematica language somewhat reminds me of Lips
 
@OleksandrR Lisp I hope, not Lips ;-)
 
Lisp, sorry for the typo
 
I have to go now. See you all later.
 
@Heike bye!
 
5:04 PM
See ya !
 
acl
bye
 
 
1 hour later…
6:27 PM
2
Q: How to link to an anchor on a webpage?

István ZacharHow can one reference an anchor in the (online) Documentation Center? I know how to embed a link for e.g. StreamPlot, but how can one link directly to the StreamStyle option under the Options section on the same page? Can this anchor-link be extracted from the documentation from under Mathematica...

 
7:08 PM
Well, it finally happened:
 
 
2 hours later…
acl
9:01 PM
@Heike reading some of the comments is funny
 
@leonidshifrin Are you around?
 

« first day (153 days earlier)      last day (4321 days later) »