Skip to main content
added 8 characters in body
Source Link
MarcMush
  • 6.9k
  • 15
  • 18

Julia 0.6, 12 bytes

n->eig(n)[1]

Try it online!

Unfortunately, eig returns both the eigenvalues and eigenvectors, as a tuple, so we waste another 9 bytes to lambdify it and grab the first item.

Julia, 12 bytes

n->eig(n)[1]

Try it online!

Unfortunately, eig returns both the eigenvalues and eigenvectors, as a tuple, so we waste another 9 bytes to lambdify it and grab the first item.

Julia 0.6, 12 bytes

n->eig(n)[1]

Try it online!

Unfortunately, eig returns both the eigenvalues and eigenvectors, as a tuple, so we waste another 9 bytes to lambdify it and grab the first item.

Source Link
Uriel
  • 13.3k
  • 4
  • 18
  • 45

Julia, 12 bytes

n->eig(n)[1]

Try it online!

Unfortunately, eig returns both the eigenvalues and eigenvectors, as a tuple, so we waste another 9 bytes to lambdify it and grab the first item.