Skip to main content
1 of 2
Stewie Griffin
  • 46.5k
  • 13
  • 132
  • 295

Octave, 30 bytes

@(x)-prod(diag([~,l,~]=lu(x)))

Try it online!

or, the boring builtin:

10 bytes:

@(x)det(x)

Explanation:

Coming up! :)

Stewie Griffin
  • 46.5k
  • 13
  • 132
  • 295