« first day (1636 days earlier)      last day (3146 days later) » 

01:05
@MichaelE2 The first two are classical, and are already part of chebfun (last I checked). The third one is what I suspect is being done (in some form at least) by Mathematica. I am sure no part of chebfun is constructing Chebyshev coefficients from Runge-Kutta (see e.g. this).
@MichaelE2 What I've personally had trouble with in the "classical" formulation is automatically generating the recurrence from the (system of) DEs; I can do it by hand, but the point of course is to have Mathematica do it for us! ;)
 
5 hours later…
06:23
Sigh... does this hang your kernel, too?
RegionCentroid@Polygon[{{0.873209458572882, 1.309116577523298}, {0.5398761252395491, 1.309116577523297}, {0.3732094585728837, 1.020441442928493}, {0.5398761252395494, 0.7317663083336724}}]
It can be worked around by converting values to rationals... well, reported it.
 
2 hours later…
08:09
0
Q: Organization needed for a group of similar questions

Mr.WizardI have observed that a particular question has been asked, separately answered, multiple times. In chronological order: Does Mathematica have advanced indexing? How can I use Max[] in a function that is passed a list not find the max of the list Comparison Operation for Nested Matrices List op...

 
4 hours later…
11:46
@kirma Yeah, it takes longer than 8 seconds and I cannot abort. Also TimeConstrained doesn't work, as expected I suppose.
@JacobAkkerboom Yep, I assume it's trying to look for a way to split the polygon to triangles or something, but ends up re-evaluating those couple alternatives forever. (The polygon is essentially a part of a regular hexagon, but actually a result of some computation instead of being "synthetic."
 
2 hours later…
13:33
If I have a Region (specifically, a BoundaryMesh[]) with a hole in it, how can I fill in the hole?
14:05
@blochwave BoundaryMeshes are internally represented as polygons and membership is defined by odd amount of crossings from an arbitrary point in infinity, I think. You split BoundaryMesh to its constituent polygons and see which are inside others, and pick just those that are outermost... (but be prepared to run into inefficiency and/or bugs).
43 points, spread inside each hexagon cell by Lloyd's algorithm. Next question is: which numbers of points can be put to hexagonal lattice under such constraints?
 
6 hours later…
20:18
@kirma any way to it with DiscretizeRegion? Which is actually my starting point.
@blochwave Probably not that easy at all...
 
1 hour later…
21:33
@blochwave Without having your regions to play around with, this is what I came up with,
reg1 = BoundaryDiscretizeRegion@
ConvexHullMesh@RandomReal[{-10, 10}, {40, 2}];
reg2 = BoundaryDiscretizeRegion@
ConvexHullMesh@RandomReal[{-3, 3}, {4, 2}];
{reg3 = RegionDifference[reg1, reg2]
, reg3["Show"] /. {___, {Line[a__]}, {Line[b__]}, ___} :> {Line[a]}}
@blochwave Maybe this:
reg = RegionDifference[Disk[{0, 0}, 2], Disk[{0, 1/2}, 1]];
boundarymesh = BoundaryDiscretizeRegion@reg
RegionUnion @@ boundarymesh["BoundaryPolygons"] //  BoundaryDiscretizeRegion
2
@MichaelE2 That is a much better solution!
@JasonB I was working it out while you were posting. Sometimes, though, Region* functionality doesn't cover all cases. Might not work on the actual region...
@MichaelE2 Do you know why I can't use Cases to get to the Line objects inside a MeshRegion? I also couldn't do regular replacement rules based on patterns for the lines in the regions
@JasonB AtomQ@boundarymesh --> True.
hhh
hhh
21:46
How can I calculate the amount of green color proportionally by area in this picture?
I find it annoying that WRI is keeping such things "private," accessible only through other functions. (Compare with InterpolatingFunction, Graphics, and other older stuff.)
2
@hhh depends what do you mean by green.
By right-clicking and choosing "Get pixel color" you can see there is a wide variety of greens
hhh
hhh
@Kuba I want to get some sort of statistics about the morphologicalComponents command, this is colorization of it:

river = Image[
SelectComponents[MorphologicalComponents[ColorNegate[img], 0.82],
"Length", -1]];
ImageApply[# {.5, 1, .5} &, img,
Masking -> Dilation[river, 5]] // Colorize
I want to understand why some areas are red, blue and more on greenish -- and get some data on that.
22:05
@hhh sorry your latest update made this question more time consuming that I can afford now. Have to go, good luck.

« first day (1636 days earlier)      last day (3146 days later) »