constpower: removed double calls to sin and cos