J
James Edward Gray II
Looks like there's no gem for this.
Yet.
http://moonbase.rydia.net/software/lazy.rb/
James Edward Gray II
Looks like there's no gem for this.
Yet.
Looks like there's no gem for this.
Yet.
James said:
When I was a young lad, it used to be that young programmers took a
semester long course on numerical analysis, which started with, and
continuously came back to dealing with the properties of floating
point numbers.
I guess that doesn't happen much anymore.
=20
Well, that'll teach me. How did you find it, out of sheer curiosity? I=20=
did not use lazy as a keyword, so maybe that was it..
This isn't an issue of chaotic behaviour (that has a very fixed meaning
mathematically) but of unnoticeable error.
The difference between 1e10-13
and 2e10-13 matters a lot when working on a system which needs to be
accurate to a resolution of 1e10-14 but not when working to a resolution = of
1e10-4. The additional nine decimal places tell us nothing meaningful in
this latter case as we'll still end up rounding the result to zero.
That's not a bug but a fundamental outcome of the nature of binary coded
non-integral numbers. Many rational non-integral numbers cannot be expres= sed
accurately in binary representations, whilst binary coded decimal brings = a
whole host of other problems: lower information density, higher memory
usage, and heavier processing load. BCD also does nothing to resolve the
problem of how to represent irrational numbers such as =F0.
The imprecision can indeed stack for complex ballistics systems, dependin= g
on the complexity of the forces involved. However to the extent of the
precision chosen for performing these calculations the resultant inaccura= cy
is irrelevant.
http://en.wikipedia.org/wiki/Accuracy_and_precision explains all of this = in
reasonable detail.
=20
=20
I took numerical analysis, but ironically, only after dropping my CS
major and going for a math major.
Also, I'll content that abstract algebra was about the best course
I've taken for helping the way I think about programming.
=20
Too bad the CS students are all too busy trying to get their Java/C++
projects to compile
Never hire a computer scientist if you can get a maths, physics or =
philosophy grad instead
Ellie
Eleanor McHugh
Games With Brains
http://slides.games-with-brains.net
Eleanor said:Never hire a computer scientist if you can get a maths, physics or
philosophy grad instead
Ellie
=20
Yup. Or music.
James said:I've just been reading this list forever and knew it existed. I had an
unfair advantage.
Lazy evaluation was a popular topic in Ruby circles sometime back. That
was when Lazy.rb was invented. I looked into it quite a bit while
writing this old blog post:
http://blog.grayproductions.net/articles/infinite_streams
James Edward Gray II
Never hire a computer scientist if you can get a maths, physics or philosophy grad instead
osophy grad instead
=20
Don't want to hijack (these are all good qualities by the way, but
with a sardonic tone
=20
Maths grad: F equals MA if the axioms are founded
Phys grad: F does in "fact" equal MA no matter what
Philosophy grad: F equals MA only when it must
Engineering grad: F sometimes equals MA, but that's not the crux of the i= ssue
=20
Cultural studies graduate: Bourgeois hegemony constructs F as an
arbitrary signifier of MA.
I'll get my coat.
Rosie
=20
Cultural studies graduate: Bourgeois hegemony constructs F as an
arbitrary signifier of MA.
Todd said:Don't want to hijack (these are all good qualities by the way, but
with a sardonic tone
Maths grad: F equals MA if the axioms are founded
Phys grad: F does in "fact" equal MA no matter what
Philosophy grad: F equals MA only when it must
Engineering grad: F sometimes equals MA, but that's not the crux of the
issue
Hmmm...
Computer science: F = MA, but simple multiplication isn't OO enough, so
let's make an AbstractForceFactory...
XP: F = 3 always. When I need F to equal MA, I'll write a different
test.
Music: F is a M3rd below A.
Best,
Time to get some more reading underway. Oh... And did you know that the
lazy.rb file/gem is actually mentioned in "Ruby Best Practices" ?
Figures that ruby-forum and the book would act synchronistically for
me..
Gregory said:James does know that because the chapter in RBP was based off the blog
series he just linked to
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.