~maddevelopers/mg5amcnlo/aMCatNLO_rivet

« back to all changes in this revision

Viewing changes to models/sm/function_library.py

  • Committer: Rikkert Frederix
  • Date: 2013-11-28 16:31:40 UTC
  • mfrom: (285.1.12 2.0.0beta4_merge_1.6.0)
  • Revision ID: frederix@physik.uzh.ch-20131128163140-m4ocy1p6xshu8lxd
merge with 2.0.0beta4_merge1.6.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
__date__ = "22 July 2010"
12
12
__author__ = "claude.duhr@durham.ac.uk"
13
13
 
14
 
import cmath
 
14
from cmath import cos, sin, acos, asin
15
15
from object_library import all_functions, Function
16
16
 
17
17
#
31
31
              arguments = ('z',),
32
32
              expression = 'z.imag')
33
33
 
 
34
 
34
35
# New functions (trigonometric)
35
36
 
36
37
sec = Function(name = 'sec',
37
38
             arguments = ('z',),
38
 
             expression = '1./cmath.cos(z)')
 
39
             expression = '1./cos(z)')
39
40
 
40
41
asec = Function(name = 'asec',
41
42
             arguments = ('z',),
42
 
             expression = 'cmath.acos(1./z)')
 
43
             expression = 'acos(1./z)')
43
44
 
44
45
csc = Function(name = 'csc',
45
46
             arguments = ('z',),
46
 
             expression = '1./cmath.sin(z)')
 
47
             expression = '1./sin(z)')
47
48
 
48
49
acsc = Function(name = 'acsc',
49
50
             arguments = ('z',),
50
 
             expression = 'cmath.asin(1./z)')
 
51
             expression = 'asin(1./z)')
51
52
 
52
53
 
53
54