function cosdd = cosd(deg) % finds the sin and cos out of angle in degrees cosdd = cos(deg*pi/180);