By the way, all this is largely academic, since Panda has functions to rotate an object without having to know about sin and cos.
For instance, you could achieve a similar effect with:
# self.tiny is an Actor
dist = 1.0
arm = render.attachNewNode('arm')
arm.setX(dist)
self.tiny.reparentTo(arm)
arm.setH(angle)
David