Math object that returns 0 at k=0, 1 at k>0?

  • Context: Undergrad 
  • Thread starter Thread starter DocZaius
  • Start date Start date
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
4 replies · 2K views
DocZaius
Messages
365
Reaction score
11
Hello,

I'm using summation notation (from k=0 to n) and would like a mathematical object to:

return 0 when k=0
return 1 when k>0

I messed around with binomial coefficients but couldn't make it work. It's probably trivial, but I couldn't find it after much googling.
 
Last edited:
Mathematics news on Phys.org
You could use a Green's function, or a Kronecker delta, but these are nonstandard functions. No smooth function will do what you want. Why do you need it?
 
Definitely don't need anything smooth. I am trying to write out integration by parts to the nth derivative of the function g, and I am trying to sum up the boundary terms that pop out of higher n's. I want to be general enough to allow for n=0, which would mean there is no boundary terms and would need the sum to be killed off. Is there a simpler way to do it than:

kroenecker_delta(0,kroenecker_delta(k,0))
 
DocZaius said:
Is there a simpler way to do it than:

kroenecker_delta(0,kroenecker_delta(k,0))

I was thinking of 1-kroenecker_delta(k,0)