reallife step function
posted by Claire .
So if I wanted to do a stepfunction graph for gas prices, how would that work? I'm a little confused. Could someone give me examples please? That would be so helpful (: Thanks!

if you knew that gas went up 2 cents every week, you might use something like
p = 3.299 + 2⌊x⌋
where x is the number of weeks
and p is the price, which started at 3.299
To see some examples, you can go to
wolframalpha.com
and enter
plot 3.299 + 2⌊x⌋
you can play around with various numbers and see what happens
you can also use int(x) for ⌊x⌋
Respond to this Question
Similar Questions

Algebra
Find the zeros the function *could someone explain this to me step by step I'm very confused Y=x^2x42 
Gr.11  Rational functions graphing.
1. Identify a rational function whose graph is a horizontal line except for two holes. Graph the function. 2. Identify a rational function who graph lies entirely above the xaxis and has a single vertical asymptote. Graph the function. … 
Algebra help+check please?
Graph the function. Compare the graph with the graph of f(x)=x q(x)=x1 How would I do this? 
Precalculus
can someone show how to graph step by step the polynomial function x^4  4x^2. That is x to the fourth power minus 4x squared. Please Help!!! 
AP CAlc. AB Please helppp!!
f(x)=x+1 Let A(r) be the enclosed by the x axis, the line x=2, the graph of the function f, and the line x=r for any r=>2 A) Write A(r) as a piecewise function with its joints at r=0 Please walk me through each step i am really … 
Chemistry
I really need help with this I am really confused with the law, I have looked at multiple examples and I am still so confused, I know you can't give me the answer, but is there anyway you could please take me through this question … 
Math(Reiny Could You Help?)
The graph of the function g(x) has the same shape and direction of opening as the graph of f(x)= 3(x2)^2+9. The graph of g(x) has a vertex that is 2 units to the right and 5 units down from the vertex of the graph of f(x). A.) Determine … 
Math
Is the step function differentiable in its domain? 
Algebra 2
Consider the graph of f(x)=2[[x/3]] +4 with doman {x0<_x<12}. Create the piecewise function that would produce the same graph over the indicated domain. [[ ]] stands for a step function 
math
Is the function a polynomial function? Why or why not?