a real parameter becomes complex when passing to a function defined in function_library.py
Dear authors,
I am adding a function in the function_library.py file as:
effv = Function(name = 'effv',
I defined flam to be real in the parameter.py file and s1 = P(-1, x).P(-1,x) which is the invariant mass of the x particle.
When I launch, I got the following error:
EFFV = (CONDIF(
Error: COMPLEX quantities cannot be compared at (1)
I tried to use expression = '(1.0 if flam.real > s1.real else 0.0)'), the error turns out to be:
EFFV = (CONDIF(
Error: Function 'condif' at (1) has no IMPLICIT type
I am totally confused. My variable passing to the EFFV function is actually real, why it reminds me they are complex?
When I use .real, it should return double precision real type, why it doesn't work?
Cheers,
YY
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Olivier Mattelaer
- Solved:
- Last query:
- Last reply: