38,239 reputation
554157
bio website
location
age
visits member for 2 years, 4 months
seen 1 hour ago

Oct
26
comment ListDensityPlot crashes the kernel
Related to this I think.
Oct
26
comment How to express an expression with only ArcTan and ArcTanh?
@RunnyKine, I think the OP is looking for a generalisation of this.
Oct
26
comment Text formatting with different wrappers
It's easy to miss I think, because the text is centre aligned within itself, but the text block itself is not centred in the panel. It makes it look like an indent.
Oct
25
comment Text formatting with different wrappers
Try adding TextAlignment -> Left to the Style. I think the default for graphics is to centre text.
Oct
24
comment Esc-esc for special characters and autocomplete in Mathematica 9
Good question. The double-bracket thing is particularly annoying.
Oct
23
comment How to remap a fisheye image?
@ErikP, I'll have another look. The asymmetry of the distortion makes it more complicated than it otherwise would be...
Oct
23
comment automatic processing of numerical results in `Plot`
This method works well if the value of y is changing slowly from step to step, for example when creating a table of values for ListPlot. However, Plot will sample the function at y values which hop around all over the place as it goes through the recursive refinement process, so I don't think this method is reliable.
Oct
22
comment Function generating a rule with a Patterns: e.g. toRule[ lhs, rhs] into lhs[x_] -> rhs
I'm sure this is a duplicate but I can't find it. For a quick fix try toRule[l_, r_] := l[x_] -> #&@ r
Oct
22
comment How to remap a fisheye image?
@ErikP, sorry - I misunderstood the aim of the remapping. This must be the highest number of upvotes I've ever had for an answer which utterly fails to answer the question!
Oct
22
comment Refer to next element of list when iterating using Map
Alternatively 1 + list + PadLeft[list, 4, 0, 1]
Oct
21
comment Strange Behavior when making Equal Listable in Pick
I think this is related to this question. Range gives a packed array, for which Equal has special handling which bypasses the main evaluator.
Oct
21
comment How to remap a fisheye image?
Seems to work if you evaluate f symbolically, e.g. g[{x_, y_}] = f[{x, y}]; ImageTransformation[image, g]
Oct
16
comment Compatibility issues for Combinatorica package
@ybeltukov, you got my upvote for taking the trouble to write a proper answer :-)
Oct
16
comment Compatibility issues for Combinatorica package
The problem is that AdjacencyGraph returns a Graph object, which is different from the way graphs are represented in Combinatorica. Try ChromaticNumber[FromAdjacencyMatrix[graph]] instead.
Oct
16
comment How to capture implicit fails in Plot or Show?
Check will only catch kernel messages. The pink boxes you see are formatting errors generated by the front end. Have a look at rcollyer's answer here for a way to check for these errors.
Oct
13
comment Strip waste braces in nested list
@m_goldberg, if we were playing code golf I would have written it as +FlattenAt[#, #~Position~{_List}] & :-)
Oct
11
comment Insphere for Irregular Tetrahedron
@YvesKlett, Graphics3D@{Opacity[0.5],Polygon[{a,b,c,d}~Subsets~{3}]}
Oct
11
comment Placing text inside a region with RegionPlot
This might be useful
Oct
10
comment Cannot change ImageResolution after applying ImagePad
I think you have confused yourself slightly by referring to Graphics expressions as images. Your tempimage is not an Image, it is a Graphics expression. As Alexey notes, when ImagePad receives an argument which is not already an Image it must rasterize it. This rasterization takes place behind the scenes, using default settings. As you have discovered, if the default settings are no good for you, you need to do the rasterization explicitly with your preferred settings instead of having ImagePad do it automatically.
Sep
27
comment How combine pure functions of several slots?
Would a replacement based approach work for you, e.g. thru[expr_[vars__]] := expr /. f_Function :> f[vars]