Solving Triangle Medians and Cevians with Python

If you remember some advanced math problems with triangles, where you have some cevians and medians, that split a triangle’s side into a 4:3 ration and you have to find the ratio of the split of the two cevian itself, then you are in the correct place. The below picture should remind you of something:

The triangle that is used in the YouTube video below

Solving that kind of typical problem is not that difficult, once you have solved about 10 like it. Then, you would probably start seeing the “magic” of the basis vectors. “Translating” the problem into python is interesting. The code below works and is the one used in the video:

The YouTube video:

Enjoy it! 🙂

Tagged with: , , , ,