MCPcopy Create free account
hub / github.com/Singular/Singular / sign

Method sign

Singular/svd/libs/ap.cpp:126–131  ·  view source on GitHub ↗

standard functions

Source from the content-addressed store, hash-verified

124// standard functions
125//
126int ap::sign(double x)
127{
128 if( x>0 ) return 1;
129 if( x<0 ) return -1;
130 return 0;
131}
132
133double ap::randomreal()
134{

Calls

no outgoing calls

Tested by

no test coverage detected