~ubuntu-branches/ubuntu/wily/afnix/wily

« back to all changes in this revision

Viewing changes to src/lib/std/shl/Math.hpp

  • Committer: Package Import Robot
  • Author(s): Nobuhiro Iwamatsu
  • Date: 2015-07-11 02:00:35 UTC
  • mfrom: (10.1.1 sid)
  • Revision ID: package-import@ubuntu.com-20150711020035-2nhpztq7s15qyc0v
Tags: 2.5.1-1
* New upstream release. (Closes: #789968)
* Update debian/control.
  - Update Standards-Version to 3.9.6.
* Add support mips64(el) and ppc64el. (Closes: #741508, #748146)
* Add patches/support-gcc-5.x.patch. (Closes: #777767)
  - Fix build with gcc-5.x.
* Add patches/Disable-NET0001.als.patch.
  - Disable test of NET0001.als.

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
// - the copyright holder be liable for any  direct, indirect, incidental or -
12
12
// - special damages arising in any way out of the use of this software.     -
13
13
// ---------------------------------------------------------------------------
14
 
// - copyright (c) 1999-2012 amaury darsch                                   -
 
14
// - copyright (c) 1999-2015 amaury darsch                                   -
15
15
// ---------------------------------------------------------------------------
16
16
 
17
17
#ifndef  AFNIX_MATH_HPP
66
66
    /// @param x the reference argument
67
67
    /// @param y the argument to compare
68
68
    static bool acmp (const t_real x, const t_real y);
 
69
 
 
70
    /// compare two numbers by absolute precision
 
71
    /// @param x    the reference argument
 
72
    /// @param y    the argument to compare
 
73
    /// @param aeps the absolute precision
 
74
    static bool acmp (const t_real x, const t_real y, const t_real aeps);
69
75
    
70
76
    /// compare two numbers by relative precision
71
77
    /// @param x the reference argument
72
78
    /// @param y the argument to compare
73
79
    static bool rcmp (const t_real x, const t_real y);
74
 
    
 
80
 
 
81
    /// compare two numbers by relative precision
 
82
    /// @param x the reference argument
 
83
    /// @param y the argument to compare
 
84
    /// @param reps the relative precision
 
85
    static bool rcmp (const t_real x, const t_real y, const t_real reps);
 
86
 
75
87
    /// compute the argument absolute value
76
88
    /// @param x the real argument
77
89
    static t_real abs (const t_real x);
88
100
    /// @param x the real argument
89
101
    static t_real ceiling (const t_real x);
90
102
 
91
 
    /// compute the argument logarithm
 
103
    /// compute the argument natural logarithm
92
104
    /// @param x the real argument
93
 
    static t_real log (const t_real x);
 
105
    static t_real ln (const t_real x);
94
106
 
95
107
    /// compute the exponential of the argument
96
108
    /// @param x the real argument
153
165
    /// @param x the real argument
154
166
    /// @param m the real modulo
155
167
    static t_real mod (const t_real x, const t_real m);
 
168
 
 
169
    /// compute the hypotenuse of the two arguments
 
170
    /// @param x the x argument
 
171
    /// @param y the y argument
 
172
    static t_real hypot (const t_real x, const t_real y);
156
173
  };
157
174
}
158
175