Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug in permsymb() #27

Closed
RobinHankin opened this issue Aug 14, 2020 · 0 comments
Closed

bug in permsymb() #27

RobinHankin opened this issue Aug 14, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@RobinHankin
Copy link
Owner

Look:

> (M <- matrix(c(1,2,4,3,1,3,2,4),2,4))
     [,1] [,2] [,3] [,4]
[1,]    1    4    1    2
[2,]    2    3    3    4
> f <- function(a){M[,a]}
> permsymb(as.free("abcd"),f)
[1] a.d.a.b b.c^2.d
> permsymb(as.free("a"),f)
[1] a.b

(the bug is actually in permsymb_single_X()). Note that function f() is not invertible, although I don't think this matters. The two calls to permsymb() should both return a length-two vector, and the first one does so. But the second one is incorrect: it should return something like c(as.free("a"),as.free("b")) (which is length two) but actually returns as.free("ab"), which is length one.

@RobinHankin RobinHankin added the bug Something isn't working label Aug 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant