Coerce constant free algebra objects to numeric

drop(x)

Arguments

x

Free algebra object

Details

If its argument is a constant freealg object, coerce to numeric. Modelled on base::drop().

Author

Robin K. S. Hankin

See also

Note

A few functions in the package take drop as an argument which, if TRUE, means that the function returns a dropped value.

Examples

drop(linear(1:5))
#> free algebra element algebraically equal to
#> + a + 2b + 3c + 4d + 5e
drop(4+linear(1:5)*0)
#> [1] 4