5 years, 7 months ago
The Best Way for a Mouse to Escape a Cat, According to Math
WiredFor many problems, like a ball falling with air resistance, we can use real physics concepts in each of these tiny steps. The mouse will travel with a constant speed and always move in a direction away from the cat. If I take the cross product of the vector position of the cat and the position of the mouse, I will get a result in the z-direction. I can find the vector from the cat to the mouse and then use that to find a unit vector. But with that unit vector, I can multiply it by the mouse's speed to get a vector velocity.
Mouse
Cat
Python
Vector
going
best
velocity
escape
way
according
product
speed
zdirection
mouse
cat
math
unit
cross
vector
Discover Related
1 year, 10 months ago
3 years, 8 months ago