X-Git-Url: http://gitweb.michael.orlitzky.com/?p=sage.d.git;a=blobdiff_plain;f=mjo%2Foctonions.py;h=bd014c22eb4c180117cf70291e4f2357c091bd20;hp=073765ccf1ef934ab6d9f6fc59435384bf832f36;hb=a339e89c225bb46379332ecb8b0c50b918d34ac6;hpb=944ceb9212517941ca4b82d85459c46fe679ffd9 diff --git a/mjo/octonions.py b/mjo/octonions.py index 073765c..bd014c2 100644 --- a/mjo/octonions.py +++ b/mjo/octonions.py @@ -141,6 +141,11 @@ class Octonion(IndexedFreeModuleElement): """ return self._norm_squared().sqrt() + # The absolute value notation is typically used for complex numbers... + # and norm() isn't supported in AA, so this lets us use abs() in all + # of the division algebras we need. + abs = norm + def inverse(self): r""" Return the inverse of this element if it exists.