Printed form of an exterior_algebra #2238
Replies: 4 comments 15 replies
-
|
There just was some addition to the styleguide on printing. It looks to me as if your second variant would be the "one line" form and the first one would be "detailed". Maybe "supercompact" would be something like |
Beta Was this translation helpful? Give feedback.
-
|
Indeed, we should print it as with For general PBW-algebras, we could go with something along the lines of |
Beta Was this translation helpful? Give feedback.
-
|
@JohnAAbbott There are two suggestions here which are both fine: @simonbrandhorst With respect to the relations, but the questions is more general: Can we print dynamically in the sense that if the output exceeds a certain size, then only something very compact is written (like nn relations instead of relations (...) |
Beta Was this translation helpful? Give feedback.
-
|
On Fri, Apr 14, 2023 at 04:53:33AM -0700, JohnAAbbott wrote:
@simonbrandhorst I have some "niggling detail" questions.
You proposed the `detailed` output should look like this:
```
julia> EA
Exterior algebra in 8 variables e1, e2, e3, e4, e5, ... , e8
over Rational field
```
Why is `Rational field` on a separate line but the variables are not?
Because of recursion, we tried it othewise:
ext algebra
over mpoly ring in 4 vars ...
over rational field in 8 vars ...
here it is not clear where the variables live
… Why do you print the variables first then print the coefficient ring?
Did you actually mean that the output should contain the ellipsis `...` (at least when there are many variables)?
Here is an alternative possible output:
```
julia> EA
Exterior algebra
over Rational field
in 8 variables e1, e2, e3, e4, e5, ...
```
I'm not claiming my version is better; I just wanted to give an alternative example. The coefficient ring is printed before the variables, and just the first few variables are printed (with a final ellipsis to indicate that there are more, but without giving the name of the last variable). The `one_line` version could then just be the first part:
```
Exterior algebra over Rational field in 8 variables
```
--
Reply to this email directly or view it on GitHub:
#2238 (reply in thread)
You are receiving this because you are subscribed to this thread.
Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'd like to ask for comments/opinions about how an exterior algebra object should be printed out.
Of particular concern is that the printed form has size quadratic in the number of variables.
Here is an example with 8 variables:
It would be more compact and easier to read if it were printed out as something like
Maybe this is not so important: how often does one want to print out an exterior algebra object? how often does one use an exterior algebra with a large number of variables?
Beta Was this translation helpful? Give feedback.
All reactions