News for hackers. Stuff that matters.

eriktaubeneck

Re:Hack the derivative on Saturday October 03, 2015 @07:48PM (#10325872)
Thanks! Glad you enjoyed it.
Re:Hack the derivative on Saturday October 03, 2015 @11:58AM (#10324308)
Thanks, I just realized that when I introduced the notation above, I just used I(f), but then when I used it below I wrote Im(f). I will clear that up.
Re:Hack the derivative on Saturday October 03, 2015 @11:56AM (#10324298)
Great point, and I apologize for the confusion. The function should be C to C, with the added restriction of R to R.
Re:Hack the derivative on Saturday October 03, 2015 @11:54AM (#10324290)
Did not intend to make any claims that Python libraries don't do this, but rather to explore the subject as a way to better understand the implementation and limits of floating point numbers and numerical analysis based on them.
Re:Hack the derivative on Saturday October 03, 2015 @11:47AM (#10324273)
That's an interesting point I had not considered. My view (mostly from the math side, my shallow dive into physical systems was just from a PDE class in grad school) is from the view of unstable differential equations where very small changes to initial conditions can cause massive changes to the output of the system. My uninformed instincts would tell me that even with orders of more digits than atoms in a physical system, changes smaller than the available accuracy to initial conditions could have significant impact on the eventual state of the system.
Re:Unpythonic Python on Wednesday April 09, 2014 @05:31PM (#7562593)
This is what I originally had but I felt that the Python `while` was actually a bit more true to the way a C for loop is constructed (and `range` seems a very not C thing to do.) It's not perfect!
Re:Unpythonic Python on Wednesday April 09, 2014 @05:22PM (#7562519)
I like the solution, but I usually keep "The Zen of Python" in mind when writing 'Pythonic' code.
Re:Unpythonic Python on Wednesday April 09, 2014 @05:20PM (#7562497)
I like this one. I don't know enough Haskell to have come up with it on my own (but I should!)
Re:Unpythonic Python on Wednesday April 09, 2014 @05:19PM (#7562488)
While I wrote this with tongue in cheek, I also aimed to illuminate the power of Python's flexibility along with the inherent danger therein. I do admit the Javacious example was over the top though ;)