tylerperri
New member
- Joined
- Oct 11, 2016
- Messages
- 2
. Consider the two functions that are defined for any x ∈ R
math.floor(x) = the largest integer less than or equal to x,
math.ceiling(x) = the smallest integer greater than or equal to x.
expressing these definitions using predicate logic... y = math.floor(x) means that y ∈ Z ∧ y ≤ x ∧ (∀z ∈ Z, z ≤ x ⇒ z ≤ y)
andy = math.celing(x) means that y ∈ Z ∧ y ≥ x ∧ (∀z ∈ Z, z ≥ x ⇒ z ≥ y)
(a) Consider the statement:∀x ∈ R, math.ceiling(-x) = −math.floor(x).If you think that the statement is True, prove it.if you think it is False, prove that itsnegation is True.
(b) Consider the statement:∀x ∈ R, ∀n ∈ N, math.floor(n · x) = n · math.floor(x).If you think that the statement is True, prove it. And if you think it is False, prove that itsnegation is True.
math.floor(x) = the largest integer less than or equal to x,
math.ceiling(x) = the smallest integer greater than or equal to x.
expressing these definitions using predicate logic... y = math.floor(x) means that y ∈ Z ∧ y ≤ x ∧ (∀z ∈ Z, z ≤ x ⇒ z ≤ y)
andy = math.celing(x) means that y ∈ Z ∧ y ≥ x ∧ (∀z ∈ Z, z ≥ x ⇒ z ≥ y)
(a) Consider the statement:∀x ∈ R, math.ceiling(-x) = −math.floor(x).If you think that the statement is True, prove it.if you think it is False, prove that itsnegation is True.
(b) Consider the statement:∀x ∈ R, ∀n ∈ N, math.floor(n · x) = n · math.floor(x).If you think that the statement is True, prove it. And if you think it is False, prove that itsnegation is True.