Zulip Chat Archive

Stream: Is there code for X?

Topic: Real.abs


Kevin Buzzard (Oct 19 2024 at 16:54):

import Mathlib

-- this exists
#check (Complex.abs : AbsoluteValue  )

-- Do we have a name for this?
#check (IsAbsoluteValue.toAbsoluteValue (norm :   ) : AbsoluteValue  )

Should this be called Real.abs? It shows up in #16483 .

Daniel Weber (Oct 19 2024 at 17:24):

Isn't this just docs#AbsoluteValue.abs ?

Michael Stoll (Oct 19 2024 at 19:00):

The reason there is a special one for the complex numbers is that it is real-valued and not complex-valued.


Last updated: May 02 2025 at 03:31 UTC