MCPcopy Create free account
hub / github.com/boutproject/BOUT-dev / RPowerI

Function RPowerI

externalpackages/PVODE/source/llnlmath.cpp:40–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38
39
40real RPowerI(real base, int exponent)
41{
42 int i, expt;
43 real prod;
44
45 prod = ONE;
46 expt = ABS(exponent);
47 for(i=1; i <= expt; i++) prod *= base;
48 if (exponent < 0) prod = ONE/prod;
49 return(prod);
50}
51
52
53real RPowerR(real base, real exponent)

Callers 2

CVodeDkyFunction · 0.85
CVComputeEtaqp1Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected