Reputation
57,621
Next tag badge:
227/100 score
17/20 answers
Badges
7 94 225
Newest
 Nice Answer
Impact
~796k people reached

Jan
29
comment Arrows from GraphicsComplex not converted to Normal form correctly
Normal[# /. a : Arrow[{__List}, _] :> Thread@a] gives a quick fix for these examples
Jan
28
comment RegionPlot with Rotated Insets are Unreadable
It works okay for me. Could be related to your graphics hardware and the partial opacity in the RegionPlot. How does it look if you add PlotStyle -> Opacity[1] to the region plot?
Jan
28
comment The basic primitive recursive functions
Could you expand the question a bit? Specifically, state how the included example fails to answer the question, and how the question is different from the one you linked.
Jan
27
comment Is there a simple way to get the Conjugate of a complex term, provided all information is available?
FullSimplify[Conjugate[t22] t22, energy > 2] works okay
Jan
26
comment What is the fundamental difference between “PlotPoints” and “MaxRecursion”?
FYI the documentation for Plot states it fairly clearly - "Plot initially evaluates f at a number of equally spaced sample points specified by PlotPoints. Then it uses an adaptive algorithm to choose additional sample points, subdividing a given interval at most MaxRecursion times. "
Jan
25
comment Erroneous color function for ContourPlot when the function has a small positive region and the PlotRange is specified manually
The problem can be reproduced using e.g. 0.05 - 0.005 (x^2 + y^2) as the function to be plotted.
Jan
22
comment Subset-type function construction
Yes please leave it open for a day or so, this sort of question is usually very popular and it will be good to see alternative approaches.
Jan
22
comment Subset-type function construction
FYI in your original code Flatten[{#[[1]] -> #[[2]]} & /@ Transpose@{c, a}] can be written more succinctly as Thread[a -> c]
Jan
22
comment Subset-type function construction
Looks like we had similar ideas for a fix :-)
Jan
22
comment Finding mean brightness, standard deviation, count of pixels in gray scale images
All good points of course.
Jan
22
comment Finding mean brightness, standard deviation, count of pixels in gray scale images
The slowest part is probably importing the images. For the single image case the OS will cache the file in memory so repeated timings will be faster.
Jan
18
comment ReplaceAll behavior change from 10.2 to 10.3
See this for some more on RuleCondition
Jan
18
comment ReplaceAll behavior change from 10.2 to 10.3
Looks like a bug to me. Other workarounds would be forcing evaluation at replacement time using RuleCondition[a + b] as the RHS of the rule, or afterwards using eg Map[Identity, replace[l1], -1]
Jan
16
comment Plot contour lines on a sphere
@MichaelE2, thanks, I hadn't spotted that.
Jan
16
comment Plot contour lines on a sphere
The parameters theta and phi are #4 and #5 in the mesh function.
Jan
11
comment Why do Plot and ParametricPlot handle PlotStyle differently?
I don't think nested lists are a documented syntax for Plot or ParametricPlot, so I'm not sure that you can consider one behaviour correct or the other incorrect. They are different functions and they handle unsupported inputs differently. IMO flattening the lists is the correct approach.
Jan
11
comment Why does the function Image not yield a proper output?
@george2079, or ToExpression@ToBoxes@TreeForm@{1, 2, 3}
Jan
9
comment Compilation error: “Could not complete external evaluation at…”
The Compile is fine, but you only need to compile once. f = Compile[...] then use f in Meaner2. Also what size is the array?
Jan
9
comment Compilation error: “Could not complete external evaluation at…”
A quick observation - you are running the C compiler each time Meaner2 is called.
Jan
7
comment How to make FlattenAt work with Span?
You could use List /@ Range[Length@li][[sp]] to accommodate All and negative positions in the span.