CSC 161 Fall 2024 - Homework 2 (10 pts. total)
Assigned Wed Sep 4, due Wed Sep 11 Fri Sep 13
Answer the following questions in a single Maple file. Complete the entire assignment in a single Maple file. Submit on Moodle using the filename hw2-LastName (where LastName is replaced by your last name):
Questions for Sep 4 lesson and reading (Sections 1.5, 1.6, and 4.2)
[ 1 pt. ] 1. Write a Maple command that returns a random 3 by 3 matrix (a matrix with 3 rows and 3 columns).
[ 1 pt. ] 2. Write a Maple command, or use a palette, that calculates the principal square root of 8 symbolically.
[ 1 pt. ] 3. Write a Maple command that calculates the principal square root of 8 numerically, to 5 decimal places.
[ 1 pt. ] 4. Write a Maple command that finds the difference of the answers to questions 2 and 3 above, to 8 decimal places.
[2 pts.] 5. In Maple, insert a Document Block & answer the question: What is the difference between 1/3 + 1/3 + 1/3 and 1/3.0 + 1/3.0 + 1/3.0? State why that difference occurred.
Questions for Sep 9 lesson and reading (Section 4.3)
[ 1 pt. ] 6. Write a Maple command that determines if -2.7 is a negative integer.
[ 1 pt. ] 7. Write a Maple command to convert the number 2024 into hexadecimal.
[2 pts.] 8. In the reading assignment, it is stated that 27 mod 4 = 3. Insert a document block where you explain mathematically why that is true, and what you think 27 mod 5 would equal. Then, underneath the Document block, write a Maple command that finds the value of 27 mod 5.
Last Modified: 9/11/24