Linked by Takuya Murata on Tue 18th May 2004 06:26 UTC
General Development My physics teacher likes to say that physics like to make problems they face look like ones that they know how to solve. A simple harmonic oscillation was one he frequently used in class, as is presumably the case in physics in general.
Permalink for comment
To read all comments associated with this story, please click here.
RE: Aeonsfx
by Miron Brezuleanu on Tue 18th May 2004 11:43 UTC

>> ... to functional (C and Matlab) ...
>
>functional programming in C??
>
>Surely you jest.

Well, I don't think Ellootre is joking, this is just a rather common mistake (that "functional programming" is non-OOP programming, when in fact "functional programming" is the alternative to "imperative programming").

And yes, one could try to do things in a functional manner in C (by using only constructors and selectors and avoiding mutator functions) but that would be rather awkward and it would require some special memory management tricks (allocate a lot of temporary stuff in a "local" heap then discard all the temporary stuff in one step by free()-ing the entire local heap and keeping only the "final" result on the stack or as a separate object on the "global" heap). But I repeat, this is quite weird.