All code in my contributions on Mathematica.SE, unless otherwise specified, is dual-licensed under CC-by-SA 3.0 and your choice of any one of the following:

21h
awarded Enlightened
21h
awarded Nice Answer
1d
comment Plotting a Hill function
Let me just leave this reference: Hill equation (biochemistry). The question confused me at first because I had assumed it was related to the Hill differential equation (a generalization of the Mathieu equation).
1d
comment Wrong Limit in Mathematica 10.0.0
Gives 0 in version 9.0.1, and returns unevaluated in previous versions. Looks like the bug was introduced in version 9.
1d
comment What is this display technology called?
Just to note, it should be silicon and not silicone. There is an error in the datasheet (CG stands for continuous grain, to distinguish it from amorphous Si). Actually, the datasheet also refers to "silicon adhesive" where clearly "silicone" was meant. It is curious for these two to be so mixed up.
1d
answered A person who studies random things?
2d
comment DIY rubidium clock construction
It may not be that straightforward. Many of these devices put out a waveform that is either sinusoidal or at least very far from a square wave. And any method of converting it to a clock signal has to have ultra-low phase noise if the usefulness of the original reference signal is to be maintained.
2d
comment Save a C compiled function without losing the blessing of C compiler
@xzczd not in version 8, which was the current version when I wrote to the MathGroup. I suppose someone might have seen my message or noticed the behavior themselves, because it seems to have been fixed in version 9.
May
20
comment Compiling a function that takes lots of optional arguments
I'd suggest introducing the parameters as a vector with an argument for the count of the arguments. Then you can special case inside the compiled code. Or, compile separate functions for different numbers of arguments and have a wrapper that specializes to them from the general case. No time to elaborate now; sorry.
May
20
comment Save a C compiled function without losing the blessing of C compiler
@xzczd it is actually necessary to use LibraryFunctionLoad; the LibraryFunction in the CompiledFunction will not work unless you do. There is no error but the library is not initialized and will not be used otherwise (only the bytecode), because LibraryFunction objects are stateful (which is not surprising when one thinks about it). I wrote about it on MathGroup back in 2011.
May
20
comment Is it necessary to close MathLink connection?
It is not necessary to close the connection as long as it doesn't cause you any problems. But the fact that these processes (and their overhead in the MathLink library) persist otherwise suggests that you should do it. MathLink is not infinitely scalable and will run into problems with a surprisingly small number of processes (unless something changed dramatically for version 10). The process model is client-server. Just because you close the client (Mathematica), it doesn't mean the server process should necessarily go away.
May
19
comment Heuristic Method to create an uniform distribution of points
A grid will be uniform but not random. A random arrangement will not be uniform. There are special distributions used for Monte Carlo sampling that are uniform but not grid-like, and perhaps this is what you want. Could you please clarify your requirements of the resulting distribution?
May
19
comment How to find all the positions of max value of a list efficiently?
I wrote some instructions on MathGroup but was purposely vague as modifying Mathematica strictly contravenes the licence. If you want more detail, let me know and we will discuss it somewhere convenient.
May
19
comment How to find all the positions of max value of a list efficiently?
Yes, I use MinGW-w64 myself. I am not sure how it is in version 10, but in versions 8 and 9 you have to modify the CCompilerDriver` package and rebuild the link libraries to make it work. It is not straightforward. But I will help you to do it if you like.
May
19
comment How to find all the positions of max value of a list efficiently?
Please note that the versions of .Net framework do not supersede each other! On my computer I have versions 2.0 SP2, 3.0 SP2, 3.5 SP1, and 4 installed (so far I found no reason to install 4.5). Version 4.5 is not sufficient as a replacement for version 4.0.
May
19
comment How to find all the positions of max value of a list efficiently?
Hmm. Did you have .Net framework 4 installed before installing the compilers? This issue arose in (5487). See also some notes I wrote for myself on the subject.
May
18
comment How to find all the positions of max value of a list efficiently?
Which SDK version did you download?
May
17
comment More Ticks::ticks errors in AbsoluteOptions in v10
I had missed this question until today. Let me just note that the same thing is seen in version 9.0.1, 8.0.4, 7.0.1 in the slightly different form of Ticks::ticks : <valid explicit tick specification> is not a valid tick specification. It is correct in 5.2. You are probably right in thinking that AbsoluteOptions has been abandoned.
May
16
comment Numerical error in Mathieu functions
Definitely trust the one done with WorkingPrecision other than the default, which is MachinePrecision. In other words, precision tracking is off by default for Plot. This is a very bad thing for numerically sensitive functions such as the Mathieu functions.
May
16
comment Computing an integral numerically
@AmratButt well, you will forgive me for not updating the answer if you don't say what the messages were, how large y you are interested in, or how κ is supposed to be changed. I will just note that I was able to go up to (at least) y = 16 with no messages by further adjusting the options. Please tell me that you did not just post your comment here at the first sign of trouble without having investigated other options settings yourself?
1 2 3 4 5