8,317 reputation
11950
bio website
location
age
visits member for 2 years, 10 months
seen 4 hours ago

Nov
21
comment Implement a piecewise function elegantly and efficiently
You can use Piecewise, which is designed to match the syntax of the mathematical definition-by-cases you wrote above. Although I don't know if there is any difference in performance.
Nov
20
comment How to plot curves in ternary plot (triangular plot)
Indeed, I believe István Zachar's answer in particular would work perfectly for this question.
Nov
20
comment How to check if a line segment intersects with a polygon?
Oh, yes it does. By "as expected" I meant "as in your answer". Yes, it does look like a bug. RegionDimension correctly returns 1, though.
Nov
20
comment How to check if a line segment intersects with a polygon?
Wait, no, now everything is working as expected. And I was sure I restarted the kernel and checked, too... Maybe I made a mistake somewhere. Sorry for the confusion.
Nov
20
comment How to check if a line segment intersects with a polygon?
Strange, I get True for all cases, even the ones that don't intersect. Which makes sense to me: an empty region is still a region, just like an empty set/list/graph is still a set/list/graph. (v10.0.1 on Mac, by the way)
Nov
20
answered How to check if a line segment intersects with a polygon?
Nov
20
comment How to check if a line segment intersects with a polygon?
By "a segment bounding the polygon" Daniel means a line segment on the boundary of the polygon, i.e., an edge of the polygon. The short red line does not intersect any of your polygon's ten edges.
Nov
20
comment How to check if a line segment intersects with a polygon?
@novice: No, Daniel's method still works with nonconvex polygons. Do you have a counterexample in mind?
Nov
20
revised Visualizing subgraphs while specifying the locations of vertexes
added 20 characters in body
Nov
20
reviewed Close timing series algorithm
Nov
20
reviewed Close Maxwell propagator problem 2D
Nov
20
reviewed Close A counterintuitive RegionPlot behavior
Nov
20
comment How to simulate the 2-D motion of a particle under uniformly accelerated motion?
Can you explain what you mean by "simulate the motion"?
Nov
20
comment RegionFunction generalized to plot a different colour/style for the largest expression
I do kind of want to hear that aside, but I'll understand if you're not inclined to typing it all up!
Nov
20
comment RegionFunction generalized to plot a different colour/style for the largest expression
Are the questions different? "I have several functions of two variables defined in some region ... I'd like a plot to show at a glance the regions where each function is largest, with a different colour or similar" perfectly describes the other question (except for "smallest" vs. "largest").
Nov
20
comment RegionFunction generalized to plot a different colour/style for the largest expression
Is this question "closely related" or an actual duplicate of the one you linked to? It certainly looks like a duplicate to me, but I haven't voted to close yet in case I'm missing something.
Nov
20
revised Visualizing subgraphs while specifying the locations of vertexes
added 21 characters in body
Nov
20
revised Visualizing subgraphs while specifying the locations of vertexes
deleted 94 characters in body
Nov
20
answered Visualizing subgraphs while specifying the locations of vertexes
Nov
20
revised Weird behaviour when using Scale, Rotate in Graphics
simplified example, added workaround