41,419 reputation
15107215
bio website
location
age
visits member for 1 year, 4 months
seen 19 mins ago
stats profile views 3,787
1:eJxTTMoPCtZiYGAwtEr1qggJ8c0PcC6Nyo10d8yvzAvPL8zM8jUoLvHxCXR19DMudndytLUFAIyYD9M=

Insanity is doing the same thing over and over again and expecting different results. — Michael Scott

Be insane if absolutely necessary.


May
13
comment How can I use the overhang argument to Partition to avoid using PadLeft and PadRight here?
Thanks, voted :)
May
12
comment How can I use the overhang argument to Partition to avoid using PadLeft and PadRight here?
But Andy explicitly says that he doesn't want to zero pad for other reasons — "The reason I don't just use this solution is because ultimately I don't want the zeros, I will be working with a ragged array. If I can get the overhang argument right I can just use {} for padding saving me from post processing the zeros." So if you're comparing performance with the other solutions, you should also account for whatever time (and additional code complexity) that post processing takes.
May
12
reviewed Close Taking derivative of Euler relation
May
12
comment How to type function terms into metric?
@belisarius Ok, I'll ask and answer tomorrow on meta. I need to get some sleep tonight.
May
12
comment How to type function terms into metric?
4) Try to reduce your problem to a minimal example that illustrates the issue. It's easier to read and debug a 10 line program than a 50-100 line monster. 5) If you're basing your expressions on a mathematical formula, then please also provide a link to the paper/website/other reference for the formula, unless it is obvious to all what you're referring to (still, a link won't hurt). Often, the name is sufficient as an identifier, but for certain prolific scientists (e.g. Newton),"X's equation" can mean different things to different people, depending the specific field.
May
12
comment How to type function terms into metric?
2) Do not use heavily typeset expressions (subscript/superscript/etc.), as they are ugly to look at here, cannot be easily parsed without Mathmatica (sometimes a lot of us give hints/identify the problem by simply looking at the code, which is not possible here). Also, it is very likely that there will be copy-paste errors, so avoiding them altogether is good (the only exception is when your question is about typesetting quirks). 3) Do not use unicode/Chinese input for variables/function names. Most of us have no idea how to input them or what they mean or which function is which. [2/3]
May
12
comment How to type function terms into metric?
@hjq1990 A few pointers to help you with editing/formatting code here — 1) Because of the In and Out labels, we can't directly copy paste your code, and people are less likely to take the time to strip them out manually themselves. The widely accepted practice is to remove all the In[...] labels and comment out all the output so that they don't evaluate. Also, include only that output which is actually relevant to the problem (we don't need the output of initializing 10 variables, for instance). (continued... [1/3])
May
11
comment Evaluation of a triple sum does not finish in reasonable time
btw, congrats on your 10k!
May
11
comment Open-source IntelliJIDEA plugin to support Mathematica development
@b.gatessucks I guess one way would be to become an expert at java and pitch in, so that halirutan is not overwhelmed by the task at hand :)
May
11
comment Track object movement
@rafiki It was a little tongue-in-cheek... While it is true that particle filters are very useful in real world tracking applications (see this video of the man with a glowing butt, for an example), it is overkill for the application you suggest. Something like what SEngstrom suggested (extract coordinates of interest) is what I would do as well.
May
11
comment Track object movement
You could always use a particle filter... :D
May
11
answered DumpSave for the forgetful
May
11
comment How do I draw a hemisphere?
@J.M. Yes, they all give a blank image. The perturbation works though, except for "Butt", which gives a blank image.
May
11
comment Simulating a Stochastic Process within certain bounds
@Amatya % is the previous input, %% 2 inputs prior, %n n inputs prior (all, as indicated by the In[n] and not by your current position)
May
11
comment How do I draw a hemisphere?
Just a blank image
May
11
comment How do I draw a hemisphere?
No, it doesn't work in v9...
May
11
comment How can I prevent kets to from growing too large?
@EverettYou Jens' answer works perfectly fine here on mma9 and I haven't loaded anything.
May
11
reviewed Close Optimizing a simple calculus using a list of matrices - Repeated dot product between a vector and a list of matrices
May
11
comment Simulating a Stochastic Process within certain bounds
Please don't use %69 — your %69 is not the same for anyone else and they will not be able to run it (also, I save only 1 previous output)...
May
10
revised Cannot call custom function loaded from script using C/C++ MathLink
added 75 characters in body