public function cosec($scale = null) { $sin = $this->sin($scale + 2); if ($sin->isZero()) { throw new \DomainException("The cosecant of this 'angle' is undefined."); } return DecimalConstants::one()->div($sin)->round($scale); }