Deriving equation of a ramp function graph.

btbam91
Messages
91
Reaction score
0
Hello, here is my problem.

http://imageshack.us/a/img543/827/rampfunction.png

I'm having a little trouble coming up with the function f(t).

I have something like:

f(t) = [(A/T)*t -A] + [(A/T)*(t-2T) -2A] + A*1(t-3T)

Am I on the right track here?

Thanks!
 
Last edited by a moderator:
Physics news on Phys.org
btbam91 said:
f(t) = [(A/T)*t -A] + [(A/T)*(t-2T) -2A] + A*1(t-3T)
This is still a linear equation in t, so it can't be right: the graph of any linear function is just a straight line. You will have to use a piecewise definition or perhaps a formula that incorporates unit step functions.
 
Have you studied the unit step function ##u(t)##? Expressing your function with it is the best way if you plan to transform the result. For example, if you want your function to equal g(t) on (0,a) and h(t) on (a,b) and 0 elsewhere you would write it like this:$$
f(t) = g(t)u(t) + (h(t) - g(t))u(t-a) + u(t-b)(0-h(t))$$Notice at each term you take out the old formula and put in the new one.
 
Thanks for the guidance! I will try to come up with a solution now with this additional knowledge!
 
LCKurtz, in trying to follow your formula, I got:

f(t) = [(A/T)*t - A]*u(t) + [((A/T)*t-3A)-((A/T)*t-A)]*u(t-2T)+[(0)-((A/T)*t-3A)]*u(t-3T)

Am I on the right track here?
 
btbam91 said:
LCKurtz, in trying to follow your formula, I got:

f(t) = [(A/T)*t - A]*u(t) + [((A/T)*t-3A)-((A/T)*t-A)]*u(t-2T)+[(0)-((A/T)*t-3A)]*u(t-3T)

Am I on the right track here?

That looks OK.
 
Thread 'Use greedy vertex coloring algorithm to prove the upper bound of χ'
Hi! I am struggling with the exercise I mentioned under "Homework statement". The exercise is about a specific "greedy vertex coloring algorithm". One definition (which matches what my book uses) can be found here: https://people.cs.uchicago.edu/~laci/HANDOUTS/greedycoloring.pdf Here is also a screenshot of the relevant parts of the linked PDF, i.e. the def. of the algorithm: Sadly I don't have much to show as far as a solution attempt goes, as I am stuck on how to proceed. I thought...
Back
Top