Fraction.prototype.norm2

Returns the squared fraction.

Syntax

norm2()

Return value

A fraction.

Examples

Fraction(1, 2).norm2()
$\frac{1}{4}$
Fraction(1, 2).norm2() == Fraction(1, 2) ** 2
true