Created
October 3, 2013 00:04
-
-
Save jamesthompson/6802475 to your computer and use it in GitHub Desktop.
MVPs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
scala> p | |
res6: spire.math.poly.MultivariatePolynomial[Double] = (2.0x + 5.0 + 3.0y) | |
scala> q | |
res7: spire.math.poly.MultivariatePolynomial[Double] = (xy + 2.0x + 1.0 + 5.0y) | |
scala> p * q | |
res8: spire.math.poly.MultivariatePolynomial[Double] = (2.0x^2y + 4.0x^2 + 3.0xy^2 + 21.0xy + 12.0x + 28.0y + 5.0 + 15.0y^2) | |
scala> p + q | |
res9: spire.math.poly.MultivariatePolynomial[Double] = (xy + 4.0x + 6.0 + 8.0y) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment