919 920 921 922
# File 'lib/rubyhacks.rb', line 919 def self.heaviside(num) return 1.0 if num >= 0.0 return 0.0 end