Reputation
1,635
Top tag
Next privilege 2,000 Rep.
Edit questions and answers
Badges
7 28
Impact
~38k people reached

  • 0 posts edited
  • 0 helpful flags
  • 102 votes cast
Dec
13
revised How to transform power of -1 into exponential
added 54 characters in body
Dec
13
comment How to transform power of -1 into exponential
Thank you! What if I also want to transform -1 into E^[I π]?
Dec
13
revised about the design of Part related to Association
added 267 characters in body
Dec
13
comment about the design of Part related to Association
@SimonWoods It still confused me now, and according to Taliesin Beynon's comment, if seems that Association is not mature at present stage, am I right?
Dec
13
asked How to transform power of -1 into exponential
Dec
13
comment about the design of Part related to Association
@SimonWoods But the FullForm[<|"a"->1|>] gives Association[Rule["a",1]]. There is Rule.
Dec
13
comment about the design of Part related to Association
@SimonWoods But why <|"a" -> 1, "b" -> 2, "c" -> 3, "d" -> 4|>[[1]] doesn't give "a" -> 1?
Dec
13
comment about the design of Part related to Association
@Nasser I think this inconsistency is awkward. It declares that there is a special case in using Part in Association, not elegant. What do you think?
Dec
13
comment about the design of Part related to Association
@Nasser Yeah, it is definitely not a bug. They designed it in this way! They write these example in the help doc. But it just doesn't consistent with Part of List.
Dec
13
asked about the design of Part related to Association
Dec
3
comment How to check if a 2D point is in a polygon?
@rm-rf Thank you! You're right.
Dec
3
comment How to check if a 2D point is in a polygon?
@rm-rf Thank you! kguler told me using ??*`*PointWindingNumber* could see which package that PointWindingNumber belongs to. But I found V10 gives both Mesh and PolygonUtils, you can see here imgur.com/bCIANiR, then why Mesh didn't work any more?
Dec
3
comment How to check if a 2D point is in a polygon?
@kguler Oh, wildcard! I understand! And this is my v10 version gives imgur.com/bCIANiR, it is quite odd that mesh didn't work.
Dec
3
comment How to check if a 2D point is in a polygon?
@kguler Please forgive my verbose comment, I know ?? is for Information, but what does those "*" mean here? And when I type ??**PointWindingNumber*, v10 gives both "GraphicsMesh" and "GraphicsPolygonUtils", so why "GraphicsMesh`" didn't work any more?
Dec
3
comment How to check if a 2D point is in a polygon?
@kguler Wow, thank you! Much faster now, though GraphicsPolygonUtilsPointWindingNumber doesn't include points threaded by polygon edge. Could please show me how can you find the package moved to PolygonUtils? Because if I search PointWindingNumber in help documentation, it doesn't give any result.
Dec
3
comment How to check if a 2D point is in a polygon?
@kguler Another question, where is GraphicsMeshPointWindingNumber now in V10? Deleted?
Dec
3
comment How to check if a 2D point is in a polygon?
@kguler Ok. By the way, I just tested RegionMember, but I found it much slower than your original testpoint version, and also much slower than GraphicsMeshPointWindingNumber when I used it in v9
Dec
3
comment How to check if a 2D point is in a polygon?
@kguler Wow, you're so familiar with new features in v10. I was wondering if you already known RegionMember before I posted my question?
Dec
3
comment How to check if a 2D point is in a polygon?
@kguler And for the first version of testpoint, sometimes it encounters error message "ArcTan::indet: "Indeterminate expression ArcTan[0.,0.] encountered"", if the edge of polygon passes points.
Dec
3
comment How to check if a 2D point is in a polygon?
@kguler Hello! I tested GraphicsMeshInPolygonQ and unfortunately found it didn't work in V10. What is more, GraphicsMeshPointWindingNumber proposed by rm-rf also didn't work in V10