Can just use $eval cos by-ref