(:) symbolic assign operator
Assign( a, b ) a: b
symbolic variable
symbolic object, string, double, or integer
Assigns the value of b to an existing symbolic variable a and returns the modified variable a.
// create some symbolic variables a = %(Sym("a")); b = %(Sym("b")); c = %(Sym("c")); d = %(Sym("d")); // assign a double "1.23" to "a" a: 1.23; // assign an integer "17" to "b" b: int32(17); // assign the value of "a" to "c" c: a; // change symbol name of "d" to "x" d: "x"; // what do you expect? a b c d // ok, let's finally clean up ... free(a); free(b); free(c); free(d); clear a b c d | ![]() | ![]() |
SymEngine: C++ library for fast symbolic manipulation.