Package Information
- Last Updated
- Authors
- SolidTux
- Categories
- scriptingutility
- Disciplines
- mathematics
1. Get the package
Download the package using the TPIX CLI:
tpix get @preview/teig:0.1.02. Import in your Typst file
Add this to your .typ file:
#import "@preview/teig:0.1.0": *teig
This package provides an eigenvalue function that calculates the eigenvalues of a matrix.
#import "@preview/teig:0.1.0": eigenvalues
#let data = (
(1, 2, 3),
(4, 5, 6),
(7, 8, 9),
)
#let evals = eigenvalues(data)
The eigenvalues of
$
#math.mat(..data)
$
are approximately
$
#math.vec(..evals.map(x => str(calc.round(x, digits: 3))))
$
