MCPcopy Create free account
hub / github.com/TheAlgorithms/C / sign

Function sign

numerical_methods/bisection_method.c:32–36  ·  view source on GitHub ↗

* @brief Function to check if two input values have the same sign (the property * of being positive or negative) * @param a Input value * @param b Input value * @returns 1.0 if the input values have the same sign, * @returns -1.0 if the input values have different signs */

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

bisectionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected