This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
module Math
|
||||
|
||||
# Kronecker symbol of +i+ and +j+.
|
||||
# Returns 1 if +i+ and +j+ are equal, 0 otherwise.
|
||||
def self.delta(i, j)
|
||||
return Integer(i) == Integer(j) ? 1 : 0
|
||||
end
|
||||
|
||||
end
|
||||
Reference in New Issue
Block a user