Swapped use of unincluded Algebraic object with sin and cos functions