Timeline for Why is Math.Sqrt() a static function?
Current License: CC BY-SA 3.0
4 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Nov 4, 2015 at 15:15 | comment | added | Andyz Smith | I think this answer hits pretty closely to some kind of real-world compromise that has been reached over the years of design. In other news, does it really make sense in .Net to be able to do "Hello World".Max() as the LINQ extensions allows us AND makes very visibile in Intellisense. Bonus points: What is the result? Bonus Bonus, what is the result in Unicode...? | |
| Nov 4, 2015 at 6:42 | comment | added | Kevin | @user2357112: The thing is, NumPy itself is written in a mixture of C and Cython, with some Python glue. Otherwise it could never be as fast as it is. | |
| Nov 3, 2015 at 18:04 | comment | added | user2357112 | Python is a good example of an everything-is-an-object language used for heavy number crunching. NumPy scalars actually have dozens and dozens of methods, but sqrt still isn't one of them. Most of them are things like transpose and mean that are only there to provide a uniform interface with NumPy arrays, which are the real workhorse data structure. | |
| Nov 3, 2015 at 14:55 | history | answered | amon | CC BY-SA 3.0 |