-
-
Notifications
You must be signed in to change notification settings - Fork 481
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
<!-- Please provide a concise, informative and self-explanatory title. --> <!-- Don't put issue numbers in the title. Put it in the Description below. --> <!-- For example, instead of "Fixes #12345", use "Add a new method to multiply two integers" --> ### 📚 Description <!-- Describe your changes here in detail. --> <!-- Why is this change required? What problem does it solve? --> <!-- If this PR resolves an open issue, please link to it here. For example "Fixes #12345". --> <!-- If your change requires a documentation PR, please link it appropriately. --> The octonions are a nonassociative normed division algebra, one of only 4 over the reals, and used to create the 7 dimensional cross product. We implement a slight generalization with 3 parameters over an arbitrary commutative ring of characteristic not equal to 2, which allows us to also define the split-octonions as another special case. Fixes #32940. ### 📝 Checklist <!-- Put an `x` in all the boxes that apply. It should be `[x]` not `[x ]`. --> - [x] The title is concise, informative, and self-explanatory. - [x] The description explains in detail what this PR is about. - [x] I have linked a relevant issue or discussion. - [x] I have created tests covering the changes. - [x] I have updated the documentation accordingly. ### ⌛ Dependencies <!-- List all open PRs that this PR logically depends on - #12345: short description why this is a dependency - #34567: ... --> <!-- If you're unsure about any of these, don't hesitate to ask. We're here to help! --> URL: #35630 Reported by: Travis Scrimshaw Reviewer(s): Frédéric Chapoton, Matthias Köppe
- 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.