14,557 reputation
23769
bio website
location
age
visits member for 2 years, 11 months
seen 2 hours ago

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
Jul
18
comment How would one minimize with respect to an unknown number of variables?
@BobHanlon Perhaps, but I wanted them to be symbols
Jul
18
answered How would one minimize with respect to an unknown number of variables?
Jul
18
comment How would one minimize with respect to an unknown number of variables?
did you look at this, this or any of the other similar questions around this site?