1,465 reputation
623
bio website
location
age
visits member for 2 years, 1 month
seen Dec 18 at 6:41

Dec
16
comment how to get continuation of square matrices with periodic diagonal band automatically?
@bills Thank you for suggesting FindLinearRecurrence. But I found that FindLinearRecurrence needs at least 5 elements in a list. So I think I just stick with Tally approach which is easy and understandable.
Dec
16
answered how to get continuation of square matrices with periodic diagonal band automatically?
Dec
15
awarded  Self-Learner
Dec
15
comment how to get continuation of square matrices with periodic diagonal band automatically?
What you gave is a manual version.
Dec
15
revised how to get continuation of square matrices with periodic diagonal band automatically?
added 260 characters in body
Dec
15
comment how to get continuation of square matrices with periodic diagonal band automatically?
Thank you! I know band function. But you misunderstood me. I want a function continuation which can automatically analyze any square matrix mat we feed to it, and give general version continuation[mat]?
Dec
15
asked how to get continuation of square matrices with periodic diagonal band automatically?
Dec
14
comment How to transform power of -1 into exponential
Thank you for pointing this out!
Dec
13
comment about the design of Part related to Association
@SimonWoods Well, My last question is actually a question about the transparency of Association. Since assoc[[1]] directly acts on values of assoc, then why doesn't assoc[[span]] gives collection of values? I admit I made a mistake. Like you said, original head should be preserved. Then, <|"a" -> 1, "b" -> 2, "c" -> 3, "d" -> 4|>[[1;;2]] should give <|1,2|>, but this is not an association!It is a contradiction! So they must make it as <|"a" -> 1, "b" -> 2|>. Wow, maybe this is what the creators of Association thought in their mind!!! You enlightened me!:) What do you think?
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.