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

laguerre() degrees seem off #20

Open
dkahle opened this issue Mar 19, 2019 · 0 comments
Open

laguerre() degrees seem off #20

dkahle opened this issue Mar 19, 2019 · 0 comments

Comments

@dkahle
Copy link
Owner

dkahle commented Mar 19, 2019

The degree of then first polynomial is marked as 1, but it's a 0 degree polynomial...

library("mpoly")

laguerre(0:1)
#> Loading required package: polynom
#> 
#> Attaching package: 'polynom'
#> The following object is masked from 'package:mpoly':
#> 
#>     LCM
#> 1
#> -1 x  +  1

str(laguerre(0:1))
#> List of 2
#>  $ :List of 1
#>   ..$ : Named num 1
#>   .. ..- attr(*, "names")= chr "coef"
#>   ..- attr(*, "class")= chr [1:2] "laguerre" "mpoly"
#>   ..- attr(*, "laguerre")=List of 4
#>   .. ..$ degree       : num 1
#>   .. ..$ alpha        : num 0
#>   .. ..$ indeterminate: chr "x"
#>   .. ..$ normalized   : logi FALSE
#>  $ :List of 2
#>   ..$ : Named num 1
#>   .. ..- attr(*, "names")= chr "coef"
#>   ..$ : Named num [1:2] 1 -1
#>   .. ..- attr(*, "names")= chr [1:2] "x" "coef"
#>   ..- attr(*, "class")= chr [1:2] "laguerre" "mpoly"
#>   ..- attr(*, "laguerre")=List of 4
#>   .. ..$ degree       : num 1
#>   .. ..$ alpha        : num 0
#>   .. ..$ indeterminate: chr "x"
#>   .. ..$ normalized   : logi FALSE
#>  - attr(*, "class")= chr "mpolyList"

Created on 2019-03-19 by the reprex package (v0.2.1)

@dkahle dkahle changed the title Laguerre degrees seem off laguerre() degrees seem off Mar 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant