|
|
|||
File indexing completed on 2026-07-26 08:22:17
0001 # SPDX-PackageName = "traccc, a part of the ACTS project" 0002 # SPDX-FileCopyrightText: CERN 0003 # SPDX-License-Identifier: MPL-2.0 0004 0005 0006 def harmonic_sum(vals): 0007 """ 0008 Return the harmonic addition of values, i.e. the reciprocal of the sum of 0009 the reciprocals. 0010 """ 0011 return 1.0 / sum(1.0 / x for x in vals)
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|