14,197 reputation
23467
bio website
location
age
visits member for 2 years, 6 months
seen 1 hour ago

Jul
22
comment Symbolic solution(s) to generalized Heat equation
While I didn't vote to close it, I suppose the reason is that you're asking why WRI does not provide functionality X. It's not something people are likely to be able to answer here. Having said that, maybe the reason they don't provide Green's function solutions is that those are convolutions and the kernel depends on the geometry, for example (eg consider the solution of the 1d heat equation in $[-1,1]$). I don't really know though.
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 Taking inverse powers of an expression to that power
I see. Well then, the existence of branch cuts is why $(x^3)^{1/3}\neq x$, which is why Mathematica does not simplify your expression.
Jul
21
comment Taking inverse powers of an expression to that power
(or Im instead of Arg, etc). Basically you need to find out what a branch cut is.
Jul
21
comment Taking inverse powers of an expression to that power
You can see why it doesn't from this: Plot3D[ Arg[((x + I*y)^3)^(1/3)], {x, -2, 2}, {y, -2, 2} ]
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 Calculating Muliti-integral Time-Ordering operator
Baker–Campbell–Hausdorff formula? Brute-force splitting into sums? Who knows.
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?