This vignette contains some basic code snippets for use with the symengine
package.
It is currently in progress!
## (Add) -42 + 2*x*y + 2*x*z + 2*y*z + x^2 + y^2 + z^2
## (Add) -42 + (a + x + x^2)^2
## (Mul) 6*cos(y)*(x + 2*sin(y))^2
## VecBasic of length 1
## V( -a )
c
## VecBasic of length 3
## V( x, x + y, x + y - z )
Vector
## VecBasic of length 3
## V( x, x + y, x + y + z )
Matrix
## DenseMatrix of dim 2 x 3
## [x_11, x_13, x_12]
## [x_22, x_21, x_23]
rbind
## DenseMatrix of dim 2 x 3
## [x, y, z]
## [-1 + x**2, -1 + y**2, -1 + z**2]
## [1] 3.718282 11.389056 29.085537 70.598150 173.413159
## [6] 439.428793 1145.633158 3044.957987 8184.083928 22126.465795
\[ \sqrt{x + y} \]