-
-
Notifications
You must be signed in to change notification settings - Fork 488
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial implementation of octonions.
- Loading branch information
Showing
6 changed files
with
1,023 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
""" | ||
Octonions | ||
""" | ||
|
||
from sage.structure.element cimport AlgebraElement | ||
from sage.modules.free_module_element cimport FreeModuleElement | ||
|
||
cdef class Octonion_generic(AlgebraElement): | ||
cdef FreeModuleElement vec | ||
|
||
cpdef Octonion_generic conjugate(self) | ||
cpdef quadratic_form(self) | ||
cpdef norm(self) | ||
cpdef abs(self) | ||
cpdef real_part(self) | ||
cpdef Octonion_generic imag_part(self) | ||
|
||
cdef class Octonion(Octonion_generic): | ||
pass |
Oops, something went wrong.