tinymist_std::typst::foundations::calc

Function norm

pub fn norm(
    p: Spanned<f64>,
    values: Vec<f64>,
) -> Result<f64, EcoVec<SourceDiagnostic>>
Expand description

Calculates the p-norm of a sequence of values.

#calc.norm(1, 2, -3, 0.5) \
#calc.norm(p: 3, 1, 2)