/usr/include/mmdb/math_.h is in libmmdb-dev 1.23.2.1-0ubuntu1.
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 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 | // =================================================================
//
// CCP4 Coordinate Library: support of coordinate-related
// functionality in protein crystallography applications.
//
// Copyright (C) Eugene Krissinel 2000-2008.
//
// This library is free software: you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License version 3, modified in accordance with the provisions
// of the license to address the requirements of UK law.
//
// You should have received a copy of the modified GNU Lesser
// General Public License along with this library. If not, copies
// may be downloaded from http://www.ccp4.ac.uk/ccp4license.php
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// =================================================================
//
// 09.04.03 <-- Date of Last Modification.
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// -----------------------------------------------------------------
//
// **** Module : Math_ <interface>
// ~~~~~~~~~
// **** Functions : GetTorsion
// ~~~~~~~~~~~ GetAngle
//
// (C) E. Krissinel 2000-2008
//
// =================================================================
//
#ifndef __Math__
#define __Math__
#ifndef __MatType__
#include "mattype_.h"
#endif
// ------------------------------------------------------------------
#define NO_TORSION (-MaxReal)
// U[0,1,2] = x,y,z
extern realtype GetTorsion ( rvector U, rvector W, rvector V );
extern realtype GetAngle ( rvector U, rvector V );
// Calculates the binomial coefficient n choose m, 0<=n<=500, 0<=m<=n
extern realtype Combinations ( int n, int m );
// Calculates precisely log(1-x) for x<1, including very small x
extern realtype log1mx ( realtype x );
// Calculates precisely 1 - exp(x) for any x including very small values
extern realtype expc ( realtype x );
// Calculates precisely 1-(1-x)**y including very small x and very large y
extern realtype expc1mx ( realtype x, realtype y );
#endif
|