Timeline for Shorten an already short mathematical expression
Current License: CC BY-SA 3.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Dec 22, 2015 at 21:54 | comment | added | wnnmaw |
You can also shave off another by using for x in l:lambda l:pi*x+e**x instead of the comprehension in both answers
|
|
Dec 22, 2015 at 21:50 | history | edited | TFeld | CC BY-SA 3.0 |
added 7 characters in body
|
Dec 22, 2015 at 21:37 | comment | added | wnnmaw |
You can save 3 bytes on the math solution by using from math import*
|
|
Dec 22, 2015 at 17:38 | comment | added | TFeld | @ZachGates Added a version with math module. | |
Dec 22, 2015 at 17:37 | history | edited | TFeld | CC BY-SA 3.0 |
added 124 characters in body
|
Dec 21, 2015 at 22:33 | comment | added | Zach Gates |
If your language does not have π and/or e, use the values 3.142 and 2.718. ... Python has pi and e in the math module.
|
|
Dec 21, 2015 at 18:52 | history | answered | TFeld | CC BY-SA 3.0 |