mailr11444 - /1.3/maths_fns/pseudo_ellipse.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on August 09, 2010 - 14:02:
Author: bugman
Date: Mon Aug  9 14:02:15 2010
New Revision: 11444

URL: http://svn.gna.org/viewcvs/relax?rev=11444&view=rev
Log:
Reverted r11439 as the sinc function is implemented in numpy.

The command used was:
svn merge -r11439:11438 .

.....
  r11439 | bugman | 2010-08-09 10:39:16 +0200 (Mon, 09 Aug 2010) | 3 lines
  Changed paths:
     M /1.3/maths_fns/pseudo_ellipse.py
  
  Implemented the sinc() function.
.....


Modified:
    1.3/maths_fns/pseudo_ellipse.py

Modified: 1.3/maths_fns/pseudo_ellipse.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/maths_fns/pseudo_ellipse.py?rev=11444&r1=11443&r2=11444&view=diff
==============================================================================
--- 1.3/maths_fns/pseudo_ellipse.py (original)
+++ 1.3/maths_fns/pseudo_ellipse.py Mon Aug  9 14:02:15 2010
@@ -24,7 +24,7 @@
 """Module for the pseudo-elliptical functions."""
 
 # Python module import.
-from math import pi, sin
+from math import pi
 
 
 def factorial(n):
@@ -204,28 +204,3 @@
 
     # Return the approximate function value.
     return fn
-
-
-def sinc(x):
-    """Implementation of the sinc() function.
-
-    The formula is::
-
-                   /  1,            for x = 0,
-        sinc(x) = <
-                   \  sin(x)/x,     otherwise.
-
-
-    @param x:   The angle x in rad.
-    @type x:    float
-    @return:    The value of sinc(x).
-    @rtype:     float
-    """
-
-    # Limit condition.
-    if x == 0:
-        return 1.0
-
-    # All other values.
-    else:
-        return sin(x) / x




Related Messages


Powered by MHonArc, Updated Mon Aug 09 14:20:01 2010