Homework 4 Solutions

Homework 4 Solutions - a Øh4Ô Ö iÒg6ÓÑ eÛ Ó Ök 4...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: a Øh4Ô Ö iÒg6ÓÑ eÛ Ó Ök# 4 Ó ÐÙ Ø iÓÒ ×bÝ iÑC a ÐÐahaÒ § 1.8 Problem 2 ( a ): This is not a function. If the input is n = 1 then the output is ± 1, which is two different values. ( b ): This is a function. For every integer n the value of √ n 2 + 1 is a single well-defined real number. ( c ): This is not a function from all of Z to R . Note that if n = 2 or n = − 2 then f ( n ) is undefined. § 1.8 Problem 8 ( a ): ⌊ 1 . 1 ⌋ = 1. ( b ): ⌈ 1 . 1 ⌉ = 2. ( c ): ⌊− . 1 ⌋ = − 1. ( d ): ⌈− . 1 ⌉ = 0. ( e ): ⌈ 2 . 99 ⌉ = 3. ( f ): ⌈− 2 . 99 ⌉ = − 2. ( g ): ⌊ 1 2 + ⌈ 1 2 ⌉⌋ = ⌊ 1 2 + 1 ⌋ = ⌊ 3 2 ⌋ = 1. ( h ): ⌈⌊ 1 2 ⌋ + ⌈ 1 2 ⌉ + 1 2 ⌉ = ⌈ 0 + 1 + 1 2 ⌉ = ⌈ 3 2 ⌉ = 2. § 1.8 Problem 12 ( a ): f ( n ) = n − 1 is one-to-one, because if n negationslash = m then n − 1 negationslash = m − 1, and so f ( n ) negationslash = f ( m ). Thus different inputs produce different outputs....
View Full Document

{[ snackBarMessage ]}

Page1 / 3

Homework 4 Solutions - a Øh4Ô Ö iÒg6ÓÑ eÛ Ó Ök 4...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online