Thanks to visit codestin.com
Credit goes to github.com

Skip to content

laguerre() degrees seem off #20

@dkahle

Description

@dkahle

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions