@halirutan SynchronousUpdating can be passed to Dynamic, too. I don't understand how that works very well. I haven't ever used it (where it solved my problem). But perhaps, it can be used to make certain things not block the front end.
@halirutan From what I heard last, it will eventually be done, but it's not an easy project, as Jin has to redo every single detail for all the sites in high res. I believe that's the biggest bottleneck (for the devs, changing the code to handle it is a one time thing)
We have plans to update all the icons for SE sites to retina at some point. It will be a lengthy process. We're still deciding on which icons have higher priority. The obvious ones are the logo and voting arrows/favstar.
That's probably the only place where Jin has acknowledged this (and perhaps in our chat during the brainstorming days).
@MichaelE2 I fixed it for you. In future, when you paste a large block of code, you'll see a new button on the right that says "fixed font". Click that and hit send
@halirutan Back in V6, I immediately saw lots of potential. I had done interactive programming for the NeXT making dynamic mathematical examples. So I read the four tutorials (two Dynamic, two Manipulate). Over and over.
@hhh so, NestWhileList starts by applying its first argument to its second (the zero). then it checks if the last argument, a function, applied to the result, is true. if it is, it again applies the first argument to the last result it got the first time. then it checks if the condition is true, then repeats, until it stops being true
@hhh it tells mathematica to only supply the last result to the comparison function Abs[#] < escapeRadius &. had it been 2, for example, it would have supplied the last two results to the function (which would need to be a function of two arguments in that case)
so here is what NestWhileList[# + 2 &, 0, # < 5 &] does: first, it puts 0 in the list. then it applies #^2 + c & to it, and adds the result to the end of the list. then it evaluates Abs[#] < escapeRadius & and, if it's true, and simultaneously less than maxItersiterations have been executed, it repeats, but now with the latest result instead of 0. and so on
@hhh yes exactly :)
that would stop the nesting when the abs of the sum of the last two results exceeds escapeRadius
I'm not voting on this post because I cannot make head or tails of it, but my main issue with such questions is that it shifts the burden of solving it squarely on the answerer. And in cases like this, might also require someone with deep knowledge of the subject to be able to answer the question (or to at least know what not to read in the paper)
@rm-rf no it's just a d-dimensional integral, it's not about physics at all. but yes, it's basically "how do I do this integral"
it's better than the other one that gives a bunch of code, then asks why it doesn't work (and it is for solving a 4-level time-dependent problem in quantum dynamics). that's basically asking "why doesn't this work".
But the kernel must be generating updates as x is dragged, so that the x in the output is updated. So at least an update for the last change in x has been generated. Because of SynchronousUpdating -> False, the last y update starts before the last x update but finishes after the last x update.
Therefore y is not updated again to sync with the last change in x. Sound plausible?
@halirutan A side-effect of SynchronousUpdating -> False.
@halirutan OK, I don't believe that's the whole story. But I'm going to bed. Good night.
@rm-rf Can you rename tags as a mod? There's the [speed] tag which I think should be changed to [performance-tuning]. There are already 18 questions which is too much to retag manually (it'd fill up the front page)
An L-system or Lindenmayer system is a parallel rewriting system, namely a variant of a formal grammar, most famously used to model the growth processes of plant development, but also able to model the morphology of a variety of organisms. An L-system consists of an alphabet of symbols that can be used to make strings, a collection of production rules which expand each symbol into some larger string of symbols, an initial "axiom" string from which to begin construction, and a mechanism for translating the generated strings into geometric structures. L-systems can also be used to generat...
I have a int, Value with a random number.
So, I need display in a label, the percentage(0~100%), according to Value, ex:
if Value is 30 of 60, then the percentage should be 50% ... What formula should I use? I assume I'm breaking my brain for this silly thing.
@rm-rf yes, writing up stuff so I take any and all opportunities to procrastinate (and reading the news is out these days). also this sort of thing is a super-simplified version of what I am currently doing, research-wise.
@OleksandrR. it's interesting isn't it :)
@rm-rf @OleksandrR. is there any way to insert eqnarray environments in my answers?
@acl Pretty impressive that you've shifted fully... I really like it (I think it has great potential) but I can't, at the moment, justify shifting when I have to learn its json syntax in order to customize it the way I want it... I still fiddle with it though
@acl I don't use it, but I can if you want me to test something
@rm-rf I prefer to do it in the workbench or sublime text (but workbench has no template completion, while in sublime text I hacked together something but it's not very good). so I oscillate between the three...
@acl I can imagine :) I have some like this too, but I use options for those, so that I don't need to remember the order of arguments. I just keep the most important ones (e.g., size of the matrix) as an argument and the rest as options