Timeline for Calculate the internal angles of a regular polygon with N sides
Current License: CC BY-SA 4.0
21 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Oct 23, 2019 at 18:25 | comment | added | foreverska | @Draco18s I went down a deep dark hole trying to find clarification on this yesterday without any luck. But it seems to be accepted math in more than one answer so who am I to gatekeep. Updated. Thanks. | |
| Oct 23, 2019 at 18:24 | history | edited | foreverska | CC BY-SA 4.0 | deleted 9 characters in body |
| Oct 23, 2019 at 14:50 | comment | added | Draco18s no longer trusts SE | 18 bytes unless there's some reason that 180-(360/n) produces incorrect results. | |
| Oct 23, 2019 at 13:14 | comment | added | foreverska | @ceilingcat oh, interesting. Thanks. Updated. | |
| Oct 23, 2019 at 13:14 | history | edited | foreverska | CC BY-SA 4.0 | deleted 5 characters in body |
| Oct 23, 2019 at 8:19 | comment | added | ceilingcat | Sorry, wasn’t referring to the #define; was referring to the fact that the first float parameter register %xmm0 is also used to return float values. | |
| Oct 23, 2019 at 4:14 | comment | added | foreverska | @ceilingcat yes, that's correct. What you can also do is access the local variable in main() from the define directly and skip the function-like invocation. My problem comes that the define itself is not compileable code so it feels cheese. Am I being too self-restrictive? | |
| Oct 23, 2019 at 4:00 | comment | added | ceilingcat | @foreverska same trick works for float arguments. | |
| Oct 23, 2019 at 3:56 | history | edited | foreverska | CC BY-SA 4.0 | deleted 5 characters in body |
| Oct 23, 2019 at 3:51 | history | edited | foreverska | CC BY-SA 4.0 | deleted 5 characters in body |
| Oct 23, 2019 at 3:49 | comment | added | foreverska | @girobuz what an interesting fact. Obviously not portable but truly interesting. Updated. | |
| Oct 23, 2019 at 3:47 | comment | added | foreverska | @ceilingcat You can go a bit farther with that define, I did at one point but wondered if it was against the spirit. | |
| Oct 23, 2019 at 1:49 | comment | added | girobuz | @JL2210 I don't remember, but I think it has to do with the fact that the return value uses the same register as last function parameter. I don't remember anything else. Definitely look it up. | |
| Oct 23, 2019 at 1:08 | comment | added | S.S. Anne | @girobuz How does that work? Does the compiler store the intermediate results in eax? | |
| Oct 23, 2019 at 0:34 | comment | added | girobuz | Instead of return, use n= tio.run/##S9ZNT07@/79KI0@zOs9WI0/… | |
| Oct 23, 2019 at 0:32 | comment | added | S.S. Anne | You can remove the space after the return. | |
| Oct 23, 2019 at 0:12 | comment | added | ceilingcat | 26 bytes | |
| Oct 22, 2019 at 21:01 | history | edited | foreverska | CC BY-SA 4.0 | deleted 18 characters in body |
| Oct 22, 2019 at 20:47 | history | edited | foreverska | CC BY-SA 4.0 | added 33 characters in body |
| Oct 22, 2019 at 20:40 | history | edited | foreverska | CC BY-SA 4.0 | added 582 characters in body |
| Oct 22, 2019 at 19:01 | history | answered | foreverska | CC BY-SA 4.0 |