Understanding and Plotting a Step Function: Expert Guidance and Tips

  • Thread starter Thread starter khurram usman
  • Start date Start date
  • Tags Tags
    Graph Plot
Click For Summary
The discussion centers on understanding and plotting a step function defined as f(t) = n for n+1 > t > n > 0, and f(t) = 0 elsewhere. This function is identified as a step function or Greatest Integer Function (GIF), which takes the integral part of a number. Users express confusion about the appearance of vertical lines in the graph, clarifying that these lines are not part of the function's definition but are added for visual clarity. Additionally, participants inquire about plotting such functions in software like Microsoft Math or Mathematica. The conversation emphasizes the importance of understanding the function's behavior and the graphical representation of step functions.
khurram usman
Messages
86
Reaction score
0
i have been given a function to plot. but i don't understand the function.
the function is:
f(t)= n when n+1>t>n>0
f(t)= 0 everywhere else

actually its a step function. i don't know how to write it here.
please explain the function to me and also help me to plot its graph
 
Physics news on Phys.org
The attachment shows the graph using Microsoft Maths.Step function is also known as Greatest Integer Function(GIF).In GIF you only take integral part of that number.
Ex. No. is 2.348947 Here GIF of this(also represented as [2.348947]=2 known informally as box function-same as GIF) is 2.
Ex.3.9999
[3.9999]=GIF(3.9999)=3
Ex.4=[4.0000]=GIF(4.0000)=4
 

Attachments

  • Step.png
    Step.png
    5.7 KB · Views: 489
1994Bhaskar said:
The attachment shows the graph using Microsoft Maths.Step function is also known as Greatest Integer Function(GIF).In GIF you only take integral part of that number.
Ex. No. is 2.348947 Here GIF of this(also represented as [2.348947]=2 known informally as box function-same as GIF) is 2.
Ex.3.9999
[3.9999]=GIF(3.9999)=3
Ex.4=[4.0000]=GIF(4.0000)=4

ok i saw the graph.the graph that i had in mind was nearly the same except that i didnt have the vertical lines in mine.where did those come from. i mean the function won't be defined then.

also how can i plot functions as this or any other complex function in programs such as microsoft math or mathematica?
 
Those lines are just drawn for sake of our convenience, to show connection between two very close numbers.You are right they don't exist there.

You will also get such lines for Fractional Part of x ({x}).
 
Question: A clock's minute hand has length 4 and its hour hand has length 3. What is the distance between the tips at the moment when it is increasing most rapidly?(Putnam Exam Question) Answer: Making assumption that both the hands moves at constant angular velocities, the answer is ## \sqrt{7} .## But don't you think this assumption is somewhat doubtful and wrong?

Similar threads

  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
2
Views
951
  • · Replies 6 ·
Replies
6
Views
1K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
Replies
12
Views
6K
  • · Replies 4 ·
Replies
4
Views
2K