2,101 reputation
719
bio website
location Espoo, Finland
age 38
visits member for 2 years, 2 months
seen 1 hour ago


Dec
8
comment Graphing all connected, planar, and vertex transitive graphs with vertices <=10 and edges <=15
I think this is more a question about graph generation than plotting. I'm also interested in efficient generation of all graphs fulfilling certain criteria, up to certain size, avoiding certain homomorphic duplicates. "Generate all graphs and filter" approach causes impractical combinatorical explosion on the generation step with quite small number of vertices...
Nov
10
comment Why does this line increase the consumed memory?
Does this continue indeterminately, or is there a cap after which use of memory doesn't raise any more? Nothing really guarantees that garbage collectors return conceptually vacant memory right away, and there are many use cases where this makes sense (especially if the collection is not based on reference counting). It may be a bug, but it may also be an internal implementation detail of the collector, for instance considering garbage collection only every N object allocations.
Nov
7
comment simulate a 32-bit signed integer overflow in a recurrence function
@ybeltukov Cool! Too bad Mod-based construct doesn't seem to help with RSolve as far as I can tell.
Nov
7
comment simulate a 32-bit signed integer overflow in a recurrence function
I haven't applied this to your problem, but wouldn't Mod[x + 2^31, 2^32] - 2^31 convert an overflown two's complement signed 32-bit integer "back" to the range - with wraparound?
Nov
7
comment simulate a 32-bit signed integer overflow in a recurrence function
Mave you considered using Mod?
Nov
4
revised Built-in way to convert Integer to Ordinal String
A little fix.
Nov
4
comment Built-in way to convert Integer to Ordinal String
Ah, <> for string concatenation! I forgot it and just used templating. :)
Nov
4
answered Built-in way to convert Integer to Ordinal String
Nov
4
reviewed Approve Adjusting axis and grid-line appearance in a polar plot
Nov
2
comment Is there an easy way to use Matteo Niccoli's perceptual color maps for 2D plots in Mathematica?
@RahulNarain Ah... That was the one I didn't check on plots, and it turned out to be somehow bogus. Your values are of course optimal at least in one sense, although mine are so close to yours it's essentially impossible to spot the difference on visual inspection.
Nov
1
comment Is there an easy way to use Matteo Niccoli's perceptual color maps for 2D plots in Mathematica?
@RahulNarain You can also consider values such as l=0.295 and c=0.476; as long as color processing in Mma is numerical, we won't find a good answer by poking it. (All my attempts here are purely numerical, results of whatever Mma spews out.)
Nov
1
comment Is there an easy way to use Matteo Niccoli's perceptual color maps for 2D plots in Mathematica?
I used a rather convoluted, ad-hoc iterative algorithm to search a sort of "mid-point" between values that maximized chromacity (which has low luminance) and essentially white (maximum luminance, but zero chromacity). The search looked for feasibility in RGB space, and after a dozen iterations settled on those values which fit inside RGB color space. Very small further corrections to evenness of perceptible of color gradient can be made with aid of CIE2000 ColorDistance, but those are barely visible even with two gradients next to each other.
Nov
1
comment Is there an easy way to use Matteo Niccoli's perceptual color maps for 2D plots in Mathematica?
My take on perceptionally continuous, constant-luminosity, RGB-friendly and luminance/chrominance balanced "rainbow" gradient: Graphics@Raster@Transpose@Table[List @@ ColorConvert[LCHColor[0.728, 0.415, c], "RGB"], {c, 0, 1, 1/1000}, {50}]
Oct
28
comment NIntegrate on tetrahedron
Both dropping Method -> "MultidimensionalRule" and using plain Integrate instead of NIntegrate get rid of the message. Is there a specific reason why these alternatives wouldn't suffice?
Oct
21
comment how to read this result?
Root[a, b] is the value of the bth root of a function a. Since your function has undefined constants (r, t and w), numerical value can't be found right away for this polynomial. ... & form is a shorthand for Function (see the documentation!) and #1 is the first argument of a function. In this specific case, you can expand the matrix to somewhat more conventiona form by using // ToRadicals // FullSimplify on it.
Oct
17
comment What is special about 70.329862 and InputField and Number and Dynamic?
@RolfMertig No problem. :)
Oct
16
revised What is special about 70.329862 and InputField and Number and Dynamic?
added 160 characters in body
Oct
16
revised What is special about 70.329862 and InputField and Number and Dynamic?
added 160 characters in body
Oct
16
comment What is special about 70.329862 and InputField and Number and Dynamic?
@MichaelE2 I hope these answers complement each other. :)
Oct
16
revised What is special about 70.329862 and InputField and Number and Dynamic?
added 736 characters in body