Skip to main content
jnthn's user avatar
jnthn's user avatar
jnthn's user avatar
jnthn
  • Member for 12 years, 3 months
  • Last seen more than 6 years ago
comment
How can I draw a polygon from a set of angles?
Wow, this is so close. Thank you so much. I will have to study this for awhile. I think "If[IntegerQ[#/(π/2)], 1, Sqrt[2]]" is causing some diagonals to be drawn incorrectly?? Test this set: Select[Tuples[{0, 45, 90, 135, 180, 225, 270, 315}, 5] , Total[#] == (5 + 2)*180 &] --all the possible angle sets for order-3 polytans.
comment
How can I draw a polygon from a set of angles?
@HyperGroups: I'll take a look at the code, if I can. Thanks. EDIT: hmmm, I seems to be able to draw a 90/45/44 triangle with that demo. ;)
comment
How can I draw a polygon from a set of angles?
@Silva: Ultimately, yes, but initially no. For now, I just want to draw everything, as I did in the image.
Loading…
comment
How to enumerate multisets?
Thanks! Your last sentence isn't yet clear to me, so I'll have to play with your code.
accepted
comment
How to enumerate multisets?
@Artes: Tuples[] looks promising. Subsets[] is no good, as it doesn't produce repetitions -- try Subsets[{1,2},3]
asked
Loading…
awarded
awarded
accepted
comment
First evaluation fails
I can finally add a comment! (Firefox was giving me headaches) Thanks to all for the thoughtful answers.
awarded
awarded
revised
First evaluation fails
to -> too, MM -> mma, and :P to stevenvh
Loading…
suggested
Approve
asked
Loading…
1
2