-
Notifications
You must be signed in to change notification settings - Fork 27
Builtin Functions
CSteinmetz15 edited this page Jul 6, 2021
·
3 revisions
GAALOP comes with some builtin functions.
Name | Arguments | Description |
---|---|---|
coefficient | multivector source, blade blade |
Copies the component of source, which is defined by the the blade blade, to the scalar component of the destination multivector |
Copies the component of source, which is defined by the blade blade, to the scalar component of the destination multivector.
m = e1 + 2*e2 + 3*e1^e2;
?a1 = coefficient(m, e1); // -> a1[0] = 1
?a2 = coefficient(m, e2); // -> a2[0] = 2
?a3 = coefficient(m, e1^e2); // -> a3[0] = 3
?arev3 = coefficient(m, e2^e1); // -> arev3[0] = -3
?a4 = coefficient(m, e1^e3); // -> a4[0] = 0