Code center > Suggestions
Camoflage
Numsgil:
You can compute it in a numerically "good" way by doing:
t * t * t * (t * (t * 6 - 15) + 10)
I don't know how much you remember from whatever numerical methods study you probably did at some point in your career, but combining polynomials like this is considered the best way to minimize errors in the computation. Also, I would avoid VB's ^ operator for this, since I'm not sure if it's smart enough to short circuit integer powers or not, and this way it'll match C code that uses this kernel.
Top speed-- I'm not sure. At the extreme, I can imagine some sort of sci-fi cloaking device that manages to make a subject invisible even at high speeds. A bot would have to spend crazy amounts on camouflage, but it could move around at higher speeds. Of course, I'm not sure scifi has a place in the Darwinbots universe
Of course, one could imagine another sort of camouflage for high speed-- something like zebra stripes, killer whale shapes, and anteater stripes-- designed not to hide the animal but to hide characteristics of the animal, such as where the head is, heading, and speed.
EricL:
--- Quote from: Numsgil ---I don't know how much you remember from whatever numerical methods study you probably did at some point in your career, but combining polynomials like this is considered the best way to minimize errors in the computation.
--- End quote ---
polynomials weren't invented yet when I was in school....
Numsgil:
heh
Testlund:
I guess this might be an interesting feature, but I'm wondering about the realism of it. As I understand it most single cellular organisms are complete blind and they only know if something else is there if they bounce into it. That's why I once proposed shorter eye radius instead to simulate that, but nobody seemed to share my opinion.
MacadamiaNuts:
Oh, when I learned VB loong ago, I remember timing 2^2 vs 2*2 and the second one was a lot faster. It was VB 4 then, tho.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version