istriangle Module Function

public pure elemental module function istriangle(a, b, c) result(res)

returns whether the arguments satisfy the triangle inequality, assuming that they're positive quantities

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: a
integer, intent(in) :: b
integer, intent(in) :: c

Return Value logical