News for hackers. Stuff that matters.
Re:3D engine entirely made of MS Excel formulae by dandelany on Saturday September 22, 2018 @05:08PM (#18048001)
I work for NASA JPL... I think most people would be amazed if they knew how much “rocket science” was done in Excel.
Re:3D engine entirely made of MS Excel formulae by eggy on Sunday September 23, 2018 @02:02AM (#18049616)
I work at an engineering firm (not software), and for performing and presenting manual calculations it it great. You wouldn't write a Python or Julia script or use a Jupyter notebook for any of it. Because I like to code, I've written small programs for more involved calculations in J, C, F#, and my favorite Frink. Frink is great for engineering because it handles different units and systems throughout a calculation. Mathcad is also good for laying out manual calculations. Excel is the engineer's scratchpad. There are just certain things that are just easier to do in Excel, and not everything turns into a problem that needs a programming language. But there are ways of working with Excel from most programming languages aside from VBA.
Re:3D engine entirely made of MS Excel formulae by chris_wot on Saturday September 22, 2018 @07:01PM (#18048453)
Given the problems with statistical functions in Excel, perhaps we should be a tad worried?
Re:3D engine entirely made of MS Excel formulae by eggy on Sunday September 23, 2018 @02:29AM (#18049693)
A lot of Excel's issues are well-known because of how pervasive it is. Python and kin rely on C libraries and other layers of imported packages for numerical work that can lead to all sorts of numerical mischief. Even doing:

  round (2.575, 2)
in Python leads to 2.57 instead of rounding up to 2.58. Everything in our engineering firm is checked by another engineer.
Re:3D engine entirely made of MS Excel formulae by zokier on Sunday September 23, 2018 @11:12AM (#18051402)

    In [7]: round(2.575, 2)
    Out[7]: 2.58
Umm?
Re:3D engine entirely made of MS Excel formulae by EForEndeavour on Sunday September 23, 2018 @02:05PM (#18052314)
From the Python 3.7 docs (https://docs.python.org/3/library/functions.html#round):

The behavior of round() for floats can be surprising: for example, round(2.675, 2) gives 2.67 instead of the expected 2.68. This is not a bug: it’s a result of the fact that most decimal fractions can’t be represented exactly as a float.

Re:3D engine entirely made of MS Excel formulae by zokier on Sunday September 23, 2018 @04:14PM (#18052920)
Well that is just normal float fun :)

    In [17]: Decimal(2.675)
    Out[17]: Decimal('2.67499999999999982236431605997495353221893310546875')
So sort of round() is working as expected, but the number you are not inputting is not the one you are expecting.
Re:3D engine entirely made of MS Excel formulae by hef19898 on Sunday September 23, 2018 @03:51AM (#18049935)
For a lot of things I'm a tad worried by an over reliance on statistical functions. ;-)