| 1 | initial version |
Apparently trig_reduce is not idempotent and you have to apply it twice to get the correct result:
sage: produit.apply_map(lambda x: x.trig_reduce().trig_reduce())
| 2 | No.2 Revision |
Apparently trig_reduce is not idempotent and you have to apply it twice to get the correct result:
sage: produit.apply_map(lambda x: x.trig_reduce().trig_reduce())
[ cos(theta1 + theta2 + theta3) -sin(theta1 + theta2 + theta3)]
[ sin(theta1 + theta2 + theta3) cos(theta1 + theta2 + theta3)]
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.