Ops.polynomial | R Documentation |
Allows arithmetic operators to be used for polynomial calculations, such as addition, multiplication, division, etc.
## S3 method for class 'polynomial' Ops(e1, e2)
e1 |
an object of class |
e2 |
an object of class |
A polynomial got by performing the operation on the two arguments.
Math.polynomial
,
Summary.polynomial
.
p <- polynomial(c(1, 2, 1)) ## 1 + 2*x + x^2 r <- poly.calc(-1 : 1) ## -1*x + x^3 (r - 2 * p)^2 ## 4 + 20*x + 33*x^2 + 16*x^3 - 6*x^4 - 4*x^5 + x^6
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.