Fork me on GitHub
#uncomplicate
<
2023-01-09
>
blueberry01:01:06

@folcon Any general book/literature that uses matrix algebra and matrices in general to model physics will be applicable. The Numerical Algebra for Programmers will get you started with both matrices/LA, and how to program in them. The only missing piece is the physics part, but, as I wrote, it's a specific application domain that should be explored from the relevant literature.

folcon03:01:35

That's fair 😃... I'm more wondering how to use neanderthal in that domain, for example, is it better to create fixed size matrices to represent 2d / 3d entities? So a 100 x 2 matrix for 100 entities? Or is it possible to dynamically grow / shrink them as my entity counts change? If they have to be fixed size, how do you track which ones are "used" if you do? Perhaps just have a 2d vector for each property stored on the entity map (which does not sound fast 😃...)? Is there any resources or short tutorials that exist that I could act as a starting point? For example I've looked over the linear algebra tutorials, on dragan.rocks, but they're very much looking at single values vs say the clojure sound article which I do want to try later when I want to get sound working, which looks like I could just build something by following it. I'm currently muddling my way using quil/processing. So perhaps it's worthwhile coming back here once I have a clearer idea of the space, as I'm getting the impression neanderthal is much lower level than I was thinking. IE, I should be looking at building game engines book and building up from there, which is a rabbit hole I only want to start going down once I've gotten a clearer idea what I want to build 😃...

Ben Sless08:01:58

If you're doing physics modeling instead of thinking of entities think about the system state. Your vector should represent the state variables for all entities, and you'll have different linear operators that operate on it. It could have more than the Cartesian coordinates of all entities, but their derivatives as well, in several higher orders. You should crib techniques for that from analytical mechanics or from systems control theory https://wikiless.org/wiki/State_space_(control)?lang=en

2