type Homework01.m % Homework 01 % Chapter 3 Problems 9, 10, 19 % Michael Haggerty for CISC105 sec 99 % Q9 - Return number of Primes between 10000 and 20000 length(primes(20000)) - length(primes(10000)) % Q10 - Describe the Problem theta = [0 : 0.1 : 2*pi]; [theta' sin(theta') cos(theta)' tan(theta)'] %Q19 - Return date date Homework01 ans = 1033 ans = 0 0 1.0000 0 0.1000 0.0998 0.9950 0.1003 0.2000 0.1987 0.9801 0.2027 0.3000 0.2955 0.9553 0.3093 0.4000 0.3894 0.9211 0.4228 0.5000 0.4794 0.8776 0.5463 0.6000 0.5646 0.8253 0.6841 0.7000 0.6442 0.7648 0.8423 0.8000 0.7174 0.6967 1.0296 0.9000 0.7833 0.6216 1.2602 1.0000 0.8415 0.5403 1.5574 1.1000 0.8912 0.4536 1.9648 1.2000 0.9320 0.3624 2.5722 1.3000 0.9636 0.2675 3.6021 1.4000 0.9854 0.1700 5.7979 1.5000 0.9975 0.0707 14.1014 1.6000 0.9996 -0.0292 -34.2325 1.7000 0.9917 -0.1288 -7.6966 1.8000 0.9738 -0.2272 -4.2863 1.9000 0.9463 -0.3233 -2.9271 2.0000 0.9093 -0.4161 -2.1850 2.1000 0.8632 -0.5048 -1.7098 2.2000 0.8085 -0.5885 -1.3738 2.3000 0.7457 -0.6663 -1.1192 2.4000 0.6755 -0.7374 -0.9160 2.5000 0.5985 -0.8011 -0.7470 2.6000 0.5155 -0.8569 -0.6016 2.7000 0.4274 -0.9041 -0.4727 2.8000 0.3350 -0.9422 -0.3555 2.9000 0.2392 -0.9710 -0.2464 3.0000 0.1411 -0.9900 -0.1425 3.1000 0.0416 -0.9991 -0.0416 3.2000 -0.0584 -0.9983 0.0585 3.3000 -0.1577 -0.9875 0.1597 3.4000 -0.2555 -0.9668 0.2643 3.5000 -0.3508 -0.9365 0.3746 3.6000 -0.4425 -0.8968 0.4935 3.7000 -0.5298 -0.8481 0.6247 3.8000 -0.6119 -0.7910 0.7736 3.9000 -0.6878 -0.7259 0.9474 4.0000 -0.7568 -0.6536 1.1578 4.1000 -0.8183 -0.5748 1.4235 4.2000 -0.8716 -0.4903 1.7778 4.3000 -0.9162 -0.4008 2.2858 4.4000 -0.9516 -0.3073 3.0963 4.5000 -0.9775 -0.2108 4.6373 4.6000 -0.9937 -0.1122 8.8602 4.7000 -0.9999 -0.0124 80.7128 4.8000 -0.9962 0.0875 -11.3849 4.9000 -0.9825 0.1865 -5.2675 5.0000 -0.9589 0.2837 -3.3805 5.1000 -0.9258 0.3780 -2.4494 5.2000 -0.8835 0.4685 -1.8856 5.3000 -0.8323 0.5544 -1.5013 5.4000 -0.7728 0.6347 -1.2175 5.5000 -0.7055 0.7087 -0.9956 5.6000 -0.6313 0.7756 -0.8139 5.7000 -0.5507 0.8347 -0.6597 5.8000 -0.4646 0.8855 -0.5247 5.9000 -0.3739 0.9275 -0.4031 6.0000 -0.2794 0.9602 -0.2910 6.1000 -0.1822 0.9833 -0.1853 6.2000 -0.0831 0.9965 -0.0834 ans = 19-Sep-2007 diary off