Reputation
16,158
Next privilege 20,000 Rep.
Access 'trusted user' tools
Badges
2 46 77
Newest
 Good Answer
Impact
~276k people reached

Jul
22
comment How can I prevent a compiled function from using uncompiled evaluation?
@JasonB OK, if you only ever run it headless then you won't see it. For what it's worth, what I do is write code on my laptop, make sure it works on small example, then send the whole thing to bigger machines. But if you can't, then the solutions here might be the only way (I do have it in my init.m as you said).
Jul
21
comment How can I prevent a compiled function from using uncompiled evaluation?
@JasonB Are you aware of SetSystemOptions["CompileOptions" -> "CompileReportExternal"->True]? If not, it might be useful in your case (it warns you at compile time if you reference an external variable). I might have misunderstood the problem you are trying to solve, though.
Jul
21
reviewed Leave Open Mathematica policy for correctness of results
Jul
21
comment How can I prevent a compiled function from using uncompiled evaluation?
OK, I thought you were worried about passing the wrong argument, not actually forgetting to localise your variables.
Jul
21
comment How can I prevent a compiled function from using uncompiled evaluation?
you can also do fc = Compile[{{z, _Real}}, Sin[z]]; f[x_?NumericQ] := fc[x]
Jul
21
comment Map 2 list to a function
You can do Outer[{#1, CountryData[#1, #2]} &, listCountries, data] for the second bit. Outer is very flexible and well worth understanding.
Jul
20
comment Map 2 list to a function
@Öskå hey, thanks!
Jul
20
revised Map 2 list to a function
switched order of solutions
Jul
20
answered Map 2 list to a function
Jul
20
comment Workbench fails to run on OSX. Reports “Front end could not be launched.”
So, is there anything at the location indicated? ie, if you type /Applications/Mathematica.app/Contents/MacOS/Mathematica into a terminal window, does it launch Mathematica? Presumably yes, since it does get launched, but worth checking.
Jul
20
comment Symmetric list with maximum in center
@MichaelE2 yes, having to worry about the length being odd or even makes things a lot uglier
Jul
20
revised Binarizing a matrix
added 576 characters in body
Jul
20
answered Binarizing a matrix
Jul
19
comment Should DSolve always return solution with constant of integration?
That was very impressive!
Jul
18
comment How to define range for Manipulate using exponents
You could use Manipulate[f[10^x, y], {x, -10, -1}, {y, 0.01, 1, 0.01}] with the f you already have. Does that do what you want?
Jul
18
comment Should DSolve always return solution with constant of integration?
in case you use latex, you can use it here. I've added some markup to your answer.
Jul
18
revised Should DSolve always return solution with constant of integration?
latex
Jul
18
comment sudden increase in timing when summing over 250 entries
This is almost always a good idea if what you want to do is a numerical sum.
Jul
18
awarded  Enlightened
Jul
18
awarded  Nice Answer