RobinHankin / clifford

https://robinhankin.github.io/clifford/
5 stars 0 forks source link

creation infelicity #108

Closed RobinHankin closed 6 months ago

RobinHankin commented 6 months ago
suppressMessages(library("clifford"))
clifford(list(numeric(0),1,1:2),1:3)
#> Element of a Clifford algebra, equal to
#> + 1 + 2e_1 + 3e_12

clifford(list(0,1,1:2),1:3)
#> Error in is_ok_clifford(terms, coeffs): all(term_elements > 0) is not TRUE

The second call to clifford() has a perfectly reasonable expectation [viz, the same as the first call] but returns an error. Maybe a judicious call to list_modifier() might be worthwhile.