Утнасун Муниев, 514 группа Det4x4 3984 | Кленин Максим Дмитриевич, 418 группа Det4x4 3673 | ||||
---|---|---|---|---|---|
t | 1 | def det3(r1, r2, r3): | t | 1 | def det3(r0, r1, r2): |
2 | return r1[0] * (r2[1] * r3[2] - r2[2] * r3[1]) - r1[1] * (r2[0] * r3[2] - r2[2] * r3[0]) + r1[2] * (r2[0] * r3[1] - r2[1] * r3[0]) | 2 | return r0[0] * (r1[1] * r2[2] - r1[2] * r2[1]) - r0[1] * (r1[0] * r2[2] - r1[2] * r2[0]) + r0[2] * (r1[0] * r2[1] - r1[1] * r2[0]) | ||
3 | 3 | ||||
4 | def det4(r0, r1, r2, r3): | 4 | def det4(r0, r1, r2, r3): | ||
5 | return r0[0] * det3(r1[1:], r2[1:], r3[1:]) - r1[0] * det3(r0[1:], r2[1:], r3[1:]) + r2[0] * det3(r0[1:], r1[1:], r3[1:]) - r3[0] * det3(r0[1:], r1[1:], r2[1:]) | 5 | return r0[0] * det3(r1[1:], r2[1:], r3[1:]) - r1[0] * det3(r0[1:], r2[1:], r3[1:]) + r2[0] * det3(r0[1:], r1[1:], r3[1:]) - r3[0] * det3(r0[1:], r1[1:], r2[1:]) |
Legends | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
|