MCPcopy Create free account
hub / github.com/SZAILAB/MaterialDFT-Demo / average_pair

Function average_pair

cpp_core/src/scf.cpp:655–657  ·  view source on GitHub ↗

Formula: avg = 0.5 * (a + b) Example input: a=2.0, b=6.0 Example output: avg=4.0

Source from the content-addressed store, hash-verified

653// Example input: a=2.0, b=6.0
654// Example output: avg=4.0
655double average_pair(double a, double b) {
656 return half_value(a + b);
657}
658
659// Formula: v_sum = a + b + c
660// Example input: a=1.0, b=2.0, c=3.0

Callers 1

build_spin_potentialsFunction · 0.85

Calls 1

half_valueFunction · 0.85

Tested by

no test coverage detected