/usr/share/pyshared/quantities/constants/mathematical.py is in python-quantities 0.10.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | # -*- coding: utf-8 -*-
import math as _math
from ..unitquantity import UnitConstant
pi = UnitConstant(
'pi',
_math.pi,
u_symbol='π'
)
golden = golden_ratio = UnitConstant(
'golden_ratio',
(1 + _math.sqrt(5)) / 2,
u_symbol='ϕ',
aliases='golden'
)
|