Search results

  1. rumborak

    Fortran Taking 1/7 power of a variable

    I think you got the answer right there, backwards compatibility. Or rather, most programming languages, the time they were introduced, tried to do a few things differently, but at the same time tried to make it easy for programmers to switch over. So, they stuck with non-essential stuff like that.
  2. rumborak

    C/++/# How can I stop from hating C#?

    Have you ever written a GUI in C++? You probably haven't, and there's a reason for that.
  3. rumborak

    C/++/# How can I stop from hating C#?

    IMHO the few quirks of C# are heavily outweighed by it being a very concise and clean language, with the best IDE I know. And that's coming from someone who writes C++ all day. C++ is great when you've finally learned how to *not* use it. Before that it can be downright treacherous. So, don't...
  4. rumborak

    Fortran Taking 1/7 power of a variable

    If I ever designed a programming language, floating point division would be the default behavior. I do not recall the last time I actually used integer division.
  5. rumborak

    Python Fit blackbody spectrum to data in python

    Another option, since your function mostly involves multiplications and exponentiation, would be to operate in the log domain, I.e.take the logarithm of your input values, thus reducing all those operations to mostly additions or multiplications. At the end you exponentiate again to return to...
Top