Discrete Mathamatics (Floor & Ceiling Function in function)

In summary, the conversation is about how to graph the function f(X) = [1/2 - {x/3}], where the output is rounded either up or down depending on whether the decimal is a ceiling or floor. The conversation also discusses how to determine the intervals for the function and how to observe its behavior.
  • #1
geforce
26
0
Ceiling = "{" & "}"
Floor = "[" & "]"

f(X) = [ 1/2 - {x/3}]


How would I graph this function?

Note: If the decimal is floors it will be rounded down , if the decimal is ceiling it will be rounded up.

~Thanks.
 
Physics news on Phys.org
  • #2
geforce said:
Ceiling = "{" & "}"
Floor = "[" & "]"

f(X) = [ 1/2 - {x/3}]


How would I graph this function?

Note: If the decimal is floors it will be rounded down , if the decimal is ceiling it will be rounded up.

~Thanks.

When x = 0, y = 0. Trivial to verify.
Look at [tex]0 < x \leq 3[/tex] Why did I pick 3?
Then look at [tex]3<x\leq 6[/tex]

Just keep observing what is occurring during the intervals.
 
  • #3
Okay, thanks alot, I really appreciate it.
 
  • #4
Would the first domain be ceiling or floors?
 

1. What is the difference between the floor and ceiling function in discrete mathematics?

The floor function, denoted as ⌊x⌋, returns the largest integer that is less than or equal to the input x. On the other hand, the ceiling function, denoted as ⌈x⌉, returns the smallest integer that is greater than or equal to the input x. In other words, the floor function rounds down while the ceiling function rounds up.

2. How are the floor and ceiling functions used in functions?

The floor and ceiling functions are commonly used in functions to round numbers to the nearest integer. For example, the function f(x) = ⌊x⌋ rounds down the input x to the nearest integer, while the function g(x) = ⌈x⌉ rounds up the input x to the nearest integer.

3. Can the floor and ceiling functions be used with non-integer inputs?

Yes, the floor and ceiling functions can be used with both integer and non-integer inputs. For non-integer inputs, the floor function will round down to the nearest integer, while the ceiling function will round up to the nearest integer.

4. How do the floor and ceiling functions relate to the rounding function?

The floor and ceiling functions are similar to the rounding function, but they differ in how they handle negative numbers. The rounding function, denoted as round(x), rounds the input x to the nearest integer. However, for negative numbers, the rounding function will round down for values greater than or equal to -0.5, and round up for values less than -0.5. In contrast, the floor function will always round down to the nearest integer, and the ceiling function will always round up to the nearest integer.

5. Can the floor and ceiling functions be used together in a single function?

Yes, the floor and ceiling functions can be used together in a single function. For example, the function h(x) = ⌊x⌋ + ⌈x⌉ will return the sum of the largest integer less than or equal to x and the smallest integer greater than or equal to x. However, it is important to note that using both functions in a single function may result in a non-continuous function, which can have implications in certain mathematical applications.

Similar threads

  • Calculus and Beyond Homework Help
Replies
11
Views
2K
  • Calculus and Beyond Homework Help
Replies
32
Views
2K
  • Calculus and Beyond Homework Help
Replies
1
Views
1K
  • Calculus and Beyond Homework Help
Replies
1
Views
2K
Replies
2
Views
2K
Replies
3
Views
567
  • Calculus and Beyond Homework Help
Replies
17
Views
1K
  • Calculus and Beyond Homework Help
Replies
23
Views
1K
  • Calculus and Beyond Homework Help
Replies
5
Views
532
  • Introductory Physics Homework Help
Replies
7
Views
329
Back
Top