« first day (276 days earlier)      last day (4198 days later) » 

12:34 AM
@acl hi!
 
 
2 hours later…
2:37 AM
@Rojo Yep, LD would be the algorithm to use. Still, some care is needed; you'll want to also check if your Toeplitz matrices are well-conditioned, since the fast algorithms are more likely to choke than Cholesky.
 
@J.M. seems it's not that easy after all
11
Q: Limit of $\log (\log( ... \log((n)^ {(n-1)^ {....}})))$

belisariusThis is a spinoff of this question Defining $$f_0(x) = x$$ $$f_n(x) = \log(f_{(n-1)} (x)) \space (\forall n>0)$$ and $$a_0 = 1$$ $$a_{n+1} = (n+1)^{a_n} \space (\forall n>0)$$ How to calculate $$\lim_{n \to \infty } f_n(a_n) $$ (an "experiment" here, but (beware) I think WolframAlpha...

 
@belisarius Yeah, not even an idea tossed in...
 
@J.M. I thought someone was going to come up at least with a bound rather quickly. But no. Not even a comment.
 
 
2 hours later…
4:51 AM
 
5:47 AM
@belisarius Your answer here: http://mathematica.stackexchange.com/questions/4777/changing-color-of-an-object-in-an-image/4780#4780

Seems to be the only one that doesn't change the color of the rest of the image.
 
6:02 AM
anyone know how to approach making a dropdown select option box in mathematica that would display text strings depending on what option you select, kind of like an html form?
 
 
2 hours later…
8:10 AM
@LukeAllen Seen MenuView[]?
 
 
3 hours later…
10:50 AM
@halirutan are you here?
 
 
3 hours later…
1:43 PM
Could you please clarify for me the following:I don't understand the command Directive. What is the difference between Plot[x,{x,0,1},PlotStyle-> {{Red,Dashed}}] and Plot[x,{x,0,1},PlotStyle-> Directive[Red,Dashed]]
If I look at the examples the doc gives and replace Directive[] by {} I get the same result.
@belisarius on your math post I would suggest adding in the question the first few values for n=1,2,3,4...
 
2:01 PM
@chris Try to give me this Plot[Sin[x], {x, 0, 10}, TicksStyle -> Directive[Orange, 12]] without using Directive.
 
@halirutan I see your point; I can though :-) Plot[Sin[x], {x, 0, 10}, TicksStyle -> Table[{Orange, 12},{2}]]
 
@chris Yes, but here Directive just expresses better what you really want.
 
2:21 PM
Hi Halirutan, how are you???
may i ask you a question? Ho can i count the number of black and white cell in the last state of my randomLife??
 
@chris Put another way: the "idiom" looks much better when expressed as Directive[].
 
 
1 hour later…
3:26 PM
or, to all:
may i ask you a question? Ho can i count the number of black and white cell in the last step of a random life simulation????
 
acl
3:38 PM
@DanieleRicci that will depend on the data structure in which you have the cells. to avoid reading your question and answers, could you provide a sample of how the configuration is returned? is it a list?
 
Hi, you can use the code that @halirutan paste here in the chat one week ago, i will attached it again:
countBlackWhite[a_, i_, j_] :=
With[{nb = Flatten@a[[i - 1 ;; i + 1, j - 1 ;; j + 1]]},
Count[nb, #] & /@ {0, 1}];
evaluateCell[a_, i_, j_] :=
Module[{numBlack, numWhite}, {numBlack, numWhite} =
countBlackWhite[a, i, j];
Which[numBlack == numWhite, 2, numWhite > numBlack, 1, True, 0]]
evaluateAll[A_] :=
With[{paddedA = ArrayPad[A, 1]},
Table[evaluateCell[paddedA, i, j], {i, 2, Length[A] + 1}, {j, 2,
Length[A[[1]]] + 1}]]
makeFrames[A_] :=
Map[ArrayPlot[#, Mesh -> False,
ColorFunction ->
Function[{cell},
the result of this code is
 
1
Q: Really a 4 month gap between our 1st and 2nd question? Or, do bad questions go away?

George WolfeAt the bottom of page 71, there is a question about plotting discontinuous functions without spurious vertical segments, which is dated Dec 7, 2010. The next question, about default color data, is dated Mar 22, 2011. What happened to the intervening questions? Not worth saving? Who deleted them...

 
a 2d cellular automata
i want to count the number of black and white cell of the last step of my simulation
 
@DanieleRicci That wasn't what acl was asking... just paste the output of the final step of your CA
In any case, look up Count in the documentation
 
I have as output an image that come form the simulation that i did. I want to count the number of black and white cell
 
4:15 PM
so?
 
5:13 PM
any suggestion??
 
@DanieleRicci, Hi.
 
Hi
how are you??
 
@DanieleRicci Don't take the ouput image, take the data-matrix.
 
and that is the problem
i cannot get the data matrix
i mean i don't know how to do
 
give me a sec
 
5:21 PM
thanks
sorry if i disappeared but i worked all the week
 
Tally@Flatten@FixedPoint[evaluateAll, A]
 
@DanieleRicci Ok Daniele, you understood that FixedPointList in your code takes your input A and applies evalueateAll over and over again?
 
FixedPoint does the same, but it gives you only the last result. ok?
 
i have tried but it doesn't work
 
5:25 PM
It does work. So what you do is that you just count all cells in your final output.
And this is the simple command @rm-rf already posted:
 
Tally@Flatten@FixedPoint[evaluateAll, A]
 
the result is the following error
ArrayPad::arr: First argument A to ArrayPad should be an array. >>
 
No, I just took your code and tried it
 
@DanieleRicci Did you do exactly what halirutan said?
 
5:27 PM
@J.M. I found the following post tpfto.wordpress.com/2012/05/04/quick-and-dirty-inversion which you might not be completely unfamiliar with. I need to do some numerical inverse laplace transform, and I was wondering i) how robust is the method in that post and ii) if you are aware of methods involving such transform over more than one variable?
 
@chris lol... that is JM's blog :)
 
countBlackWhite[a_, i_, j_] :=
  With[{nb = Flatten@a[[i - 1 ;; i + 1, j - 1 ;; j + 1]]},
   Count[nb, #] & /@ {0, 1}];
evaluateCell[a_, i_, j_] :=
 Module[{numBlack, numWhite}, {numBlack, numWhite} =
   countBlackWhite[a, i, j];
  Which[numBlack == numWhite, 2, numWhite > numBlack, 1, True, 0]]
evaluateAll[A_] :=
 With[{paddedA = ArrayPad[A, 1]},
  Table[evaluateCell[paddedA, i, j], {i, 2, Length[A] + 1}, {j, 2,
    Length[A[[1]]] + 1}]]
makeFrames[A_] :=
  Map[ArrayPlot[#, Mesh -> False,
     ColorFunction ->
And you get something like {{0, 5088}, {1, 4868}, {2, 44}} which gives you the number of Black, White and Red cells..
 
one really funny thing about this site/chat room is how small the world really is!
 
yep just considering your code it works now
i want to try to put in the whole code
 
5:30 PM
@rm-rf well I sort of guessed that given the avatar ;-)
 
@DanieleRicci It's your code. I copied it from above!
 
Hey, no news on MMA 9, right?
 
Quite a few users (conference attendees) have gotten their hands on mma9, but their lips are sealed
 
so instead of "data" i have to write the input of "makeFrames" that was in my code?
because i had
 
@DanieleRicci Out of curiosity, are you forced to use Mathematica for this project due to constraints or have you used Mathematica before?
 
5:33 PM
randomLife = makeFrames[q11, 10];
animate[randomLife]
just for this project
before i used MatLab
why????
 
@rm-rf I see, so no official annoucements nor leaked news
Pity
 
@DanieleRicci I'm just wondering why you didn't stick with MATLAB for the project then, since you're familiar with it...
 
@DanieleRicci No, that won't work. randomLife are images while you need a normal matrix.
 
Have you seen this @DanieleRicci?
 
@rm-rf no, i didn't. interesting. but now i cannot change software
i have to deliver the project in 2 weeks, so
@rm-rf because i didn't know that matlab was able to do it
 
5:39 PM
@J.M. you are really that far away from me?? Unbelievable.
 
@DanieleRicci Googling for "matlab conway game of life" gives several relevant hits on the subject :)
 
@J.M. (I checked your location in your blog)
 
i know, many mistakes and errors for this project
i just want to finish
 
The broader point I'm trying to make is that learning a new software and language that's completely alien to you (and very different from what you're used to) when you have a serious time crunch is not going to be very helpful. Instead, if you can find resources/code for what you already know, it'll be far simpler for you to improve on it.
 
5:45 PM
@DanieleRicci You can count the number of ones in a binary image using the following approach: Mean@Flatten@ImageData[image] Times @@ ImageDimensions@image
 
@image_doctor But it is not a binary image!
 
@halirutan Ahh my mistake, I looked back at the image @DanieleRicci posted earlier in chat.
 
@image_doctor and ..
 
@halirutan Sorry, it seemed to my eyes be binary
 
(sorry, my daughter..)
@image_doctor nope, there are likely to be some cells in the neutral state (2)
And the point is that he has the data and then visualize it
He should not calculate some information on the visualization, when he has the data at hand.
 
5:54 PM
@halirutan sorry for coming in half way , I thought it was mentioned he had images, from randomLife ?
@halirutan I'll stop confusing things :)
 
@image_doctor yes, but all the way he only has a matrix. Then he creates frames from it and shows this frames. I think it's not good when someone looks at his thesis and sees that he is recovering the data from the images when he just could have used the data itself.
@image_doctor But your point is of course right. You can count how many pixel of one color you have in an image.
 
thank you
know is going
i will test it and tomorrow i will let you know the results :)
 
@halirutan sorry for the confusion, you are right to encourage direct computation from the data, eeek .. there are examiners who read code ;)
 
7:00 PM
@SjoerdC.deVries What is the graduation thing you guys are talking about?
 
@GeorgeWolfe A couple of months ago you mean?
 
I thought it was going to happen soon?
Out of beta?
 
@GeorgeWolfe We are already out of beta for quite some time. Didn't you notice that we don't have the 'beta' site layout anymore?
 
Yes. I must have seen a post about it, before it happened, but not noticed that the post date was a while ago. That's what "graduation" was referring to?
 
@GeorgeWolfe yep
 
7:06 PM
Thanks
 
@GeorgeWolfe When did you start using Mathematica?
 
A few years ago. I decided to buy a copy to help myself learn more about finance (already my area, but without the proper education). I soon found myself more interested in MMa than finance.
I actually starting using every opportunity to tell everyone I knew or met about MMa.
Only to be rebuffed.
I suspect that's happened to a few of the active participants here.
 
@GeorgeWolfe I had a department head who favored MATLAB instead of Mathematica. I had to defend my license fiercely. I could show that I had been using it in most of my projects.
 
That's still an issue in quant shops, but it's diminishing. Not many people had heard of Mathematica as recently as a few years ago. Hopefully, that's changed?
 
@GeorgeWolfe In my current department there's no Mathematica. But many people know it and know it can do awesome things too. It's just that it's not on the IT support list. I won't get it installed on my work PC. They are not going to write an remote install script just for me.
 
7:20 PM
Very annoying. What's your area?
I just notices that using software to make XKCD-style plot is continuing with other languages: dan.iel.fm/xkcd
 
@GeorgeWolfe I feel I should start collecting royalties as the first automated contributor ;-)
but then again I would probably have to deal with a law suit from the actual author...
 
I just went back to look at the answers. It seems that they have been polished up and improved. //xkcdify
@chris I like your graph.
 
7:40 PM
@GeorgeWolfe Various. Used to be in human factors / ergonomics research. Am now working on credit risk models.
started working life as a physicist, though
 
7:59 PM
@SjoerdC.deVries I started as a neurophysiologist.
 
@GeorgeWolfe Quite a change too, indeed
 
Yes. When I was a postdoc, there were about 5k applicants for every academic neurophysiology job in the back of Science. Bad odds lead to desperate measures, I guess.
 
8:12 PM
It was a difficult transition.
 
 
1 hour later…
9:21 PM
how do you determine "What number times X gives Y"?
nvm lol brain freeze
got it
 
 
1 hour later…
10:40 PM
@rm-rf, @Rojo, @belisarius, @J.M., @everyone... I want half a million upvotes on this here!
2
A: How can I get the unchanged Box form of an arbitrary expression?

John FultzMy other answer is a nice solution for interactively looking at boxes, but in the comments, Mr.Wizard seems to be indicating that he's more interested in programmatic usage, and that he's definitely interested in seeing the box form after the FE has stripped non-semantic boxes to send to the kern...

 
10:51 PM
@halirutan Should be useful for your tokenizer
 
@rm-rf Yes, and I'm pretty sure Leonid is happy about it too, because his formatter can use this too..
 
11:18 PM
@rm-rf Can someone who has only 50 rep create a bounty worth 100?
3
Q: How to add more levels to Outline notebooks

user745434The Outline stylesheet only seems to cover 6 levels of depth. Is there any way to increase that? Here's an example. Hitting tab on the last level just indents its content, but doesn't add another level of depth.

 
@halirutan Well, he had 150 before creating the bounty
 
@belisarius Oh.. one pays in advance?
 
@halirutan yup
He placed two bounties worth 100 each
 
11:34 PM
@halirutan It is worse than that. If no one answers, you don't get your money back
 
@belisarius I read that one on the FAQ anywhere.. I wonder why he spends so much money on those questions..
Btw
when you look at what John Fulz posted
MathLink`CallFrontEnd[ FrontEnd`UndocumentedTestFEParserPacket["a*b c+d", True]]
you notice that the function Undoc..ParserPacket is only defined on the first call.
Do we have a hack (hacking DeclarePackage or smth like that) to bring all of those functions to light?
 

« first day (276 days earlier)      last day (4198 days later) »