-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathderivatives.py
25 lines (20 loc) · 224 KB
/
derivatives.py
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
import numpy as np
import math as m
from scipy import special
def power(a, b):
return a**b
def derx(struct):
'''partial wrt x'''
der = struct['C5']*(-((power(struct['E'],-(struct['C1']*power(struct['xlf'],2)) + 2*struct['C1']*struct['xlf']*struct['xr'] - struct['C1']*power(struct['xr'],2) + struct['C2']*struct['xlf']*struct['ylf'] - struct['C2']*struct['xr']*struct['ylf'] - struct['C3']*power(struct['ylf'],2) - struct['C2']*struct['xlf']*struct['yr'] + struct['C2']*struct['xr']*struct['yr'] + 2*struct['C3']*struct['ylf']*struct['yr'] - struct['C3']*power(struct['yr'],2) + power(complex(0,-2)*struct['C1']*struct['xlf']*np.cos(struct['alpha']) + complex(0,2)*struct['C1']*struct['xr']*np.cos(struct['alpha']) + complex(0,1)*struct['C2']*struct['ylf']*np.cos(struct['alpha']) - complex(0,1)*struct['C2']*struct['yr']*np.cos(struct['alpha']) + complex(0,1)*struct['C2']*struct['xlf']*np.sin(struct['alpha']) - complex(0,1)*struct['C2']*struct['xr']*np.sin(struct['alpha']) - complex(0,2)*struct['C3']*struct['ylf']*np.sin(struct['alpha']) + complex(0,2)*struct['C3']*struct['yr']*np.sin(struct['alpha']),2)/ (2.*(struct['C1'] + struct['C3'] + struct['C1']*np.cos(2*struct['alpha']) - struct['C3']*np.cos(2*struct['alpha']) - struct['C2']*np.sin(2*struct['alpha']))) - (-4*power(struct['C1'],2)*power(struct['xlf'],2) - power(struct['C2'],2)*power(struct['xlf'],2) + 8*power(struct['C1'],2)*struct['xlf']*struct['xr'] + 2*power(struct['C2'],2)*struct['xlf']*struct['xr'] - 4*power(struct['C1'],2)*power(struct['xr'],2) - power(struct['C2'],2)*power(struct['xr'],2) + 4*struct['C1']*struct['C2']*struct['xlf']*struct['ylf'] + 4*struct['C2']*struct['C3']*struct['xlf']*struct['ylf'] - 4*struct['C1']*struct['C2']*struct['xr']*struct['ylf'] - 4*struct['C2']*struct['C3']*struct['xr']*struct['ylf'] - power(struct['C2'],2)*power(struct['ylf'],2) - 4*power(struct['C3'],2)*power(struct['ylf'],2) - 4*struct['C1']*struct['C2']*struct['xlf']*struct['yr'] - 4*struct['C2']*struct['C3']*struct['xlf']*struct['yr'] + 4*struct['C1']*struct['C2']*struct['xr']*struct['yr'] + 4*struct['C2']*struct['C3']*struct['xr']*struct['yr'] + 2*power(struct['C2'],2)*struct['ylf']*struct['yr'] + 8*power(struct['C3'],2)*struct['ylf']*struct['yr'] - power(struct['C2'],2)*power(struct['yr'],2) - 4*power(struct['C3'],2)*power(struct['yr'],2) - 4*power(struct['C1'],2)*power(struct['xlf'],2)*np.cos(2*struct['alpha']) + power(struct['C2'],2)*power(struct['xlf'],2)*np.cos(2*struct['alpha']) + 8*power(struct['C1'],2)*struct['xlf']*struct['xr']*np.cos(2*struct['alpha']) - 2*power(struct['C2'],2)*struct['xlf']*struct['xr']*np.cos(2*struct['alpha']) - 4*power(struct['C1'],2)*power(struct['xr'],2)*np.cos(2*struct['alpha']) + power(struct['C2'],2)*power(struct['xr'],2)*np.cos(2*struct['alpha']) + 4*struct['C1']*struct['C2']*struct['xlf']*struct['ylf']*np.cos(2*struct['alpha']) - 4*struct['C2']*struct['C3']*struct['xlf']*struct['ylf']*np.cos(2*struct['alpha']) - 4*struct['C1']*struct['C2']*struct['xr']*struct['ylf']*np.cos(2*struct['alpha']) + 4*struct['C2']*struct['C3']*struct['xr']*struct['ylf']*np.cos(2*struct['alpha']) - power(struct['C2'],2)*power(struct['ylf'],2)*np.cos(2*struct['alpha']) + 4*power(struct['C3'],2)*power(struct['ylf'],2)*np.cos(2*struct['alpha']) - 4*struct['C1']*struct['C2']*struct['xlf']*struct['yr']*np.cos(2*struct['alpha']) + 4*struct['C2']*struct['C3']*struct['xlf']*struct['yr']*np.cos(2*struct['alpha']) + 4*struct['C1']*struct['C2']*struct['xr']*struct['yr']*np.cos(2*struct['alpha']) - 4*struct['C2']*struct['C3']*struct['xr']*struct['yr']*np.cos(2*struct['alpha']) + 2*power(struct['C2'],2)*struct['ylf']*struct['yr']*np.cos(2*struct['alpha']) - 8*power(struct['C3'],2)*struct['ylf']*struct['yr']*np.cos(2*struct['alpha']) - power(struct['C2'],2)*power(struct['yr'],2)*np.cos(2*struct['alpha']) + 4*power(struct['C3'],2)*power(struct['yr'],2)*np.cos(2*struct['alpha']) + 4*struct['C1']*struct['C2']*power(struct['xlf'],2)*np.sin(2*struct['alpha']) - 8*struct['C1']*struct['C2']*struct['xlf']*struct['xr']*np.sin(2*struct['alpha']) + 4*struct['C1']*struct['C2']*power(struct['xr'],2)*np.sin(2*struct['alpha']) - 2*power(struct['C2'],2)*struct['xlf']*struct['ylf']*np.sin(2*struct['alpha']) - 8*struct['C1']*struct['C3']*struct['xlf']*struct['ylf']*np.sin(2*struct['alpha']) + 2*power(struct['C2'],2)*struct['xr']*struct['ylf']*np.sin(2*struct['alpha']) + 8*struct['C1']*struct['C3']*struct['xr']*struct['ylf']*np.sin(2*struct['alpha']) + 4*struct['C2']*struct['C3']*power(struct['ylf'],2)*np.sin(2*struct['alpha']) + 2*power(struct['C2'],2)*struct['xlf']*struct['yr']*np.sin(2*struct['alpha']) + 8*struct['C1']*struct['C3']*struct['xlf']*struct['yr']*np.sin(2*struct['alpha']) - 2*power(struct['C2'],2)*struct['xr']*struct['yr']*np.sin(2*struct['alpha']) - 8*struct['C1']*struct['C3']*struct['xr']*struct['yr']*np.sin(2*struct['alpha']) - 8*struct['C2']*struct['C3']*struct['ylf']*struct['yr']*np.sin(2*struct['alpha']) + 4*struct['C2']*struct['C3']*power(struct['yr'],2)*np.sin(2*struct['alpha']))/ (4.*(struct['C1'] + struct['C3'] + struct['C1']*np.cos(2*struct['alpha']) - struct['C3']*np.cos(2*struct['alpha']) - struct['C2']*np.sin(2*struct['alpha']))))* (complex(0,2)*struct['C1']*np.cos(struct['alpha']) - complex(0,1)*struct['C2']*np.sin(struct['alpha'])))/ (complex(0,1)*struct['C1'] + complex(0,1)*struct['C3'] + complex(0,1)*struct['C1']*np.cos(2*struct['alpha']) - complex(0,1)*struct['C3']*np.cos(2*struct['alpha']) - complex(0,1)*struct['C2']*np.sin(2*struct['alpha']))) + (power(struct['E'],-(struct['C1']*power(struct['xlf'],2)) + 2*struct['C1']*struct['xlf']*struct['xr'] - struct['C1']*power(struct['xr'],2) + struct['C2']*struct['xlf']*struct['ylf'] - struct['C2']*struct['xr']*struct['ylf'] - struct['C3']*power(struct['ylf'],2) - struct['C2']*struct['xlf']*struct['yr'] + struct['C2']*struct['xr']*struct['yr'] + 2*struct['C3']*struct['ylf']*struct['yr'] - struct['C3']*power(struct['yr'],2) + power(complex(0,1)*struct['C1']*struct['L'] + complex(0,1)*struct['C3']*struct['L'] - complex(0,2)*struct['C1']*struct['xlf']*np.cos(struct['alpha']) + complex(0,2)*struct['C1']*struct['xr']*np.cos(struct['alpha']) + complex(0,1)*struct['C2']*struct['ylf']*np.cos(struct['alpha']) - complex(0,1)*struct['C2']*struct['yr']*np.cos(struct['alpha']) + complex(0,1)*struct['C1']*struct['L']*np.cos(2*struct['alpha']) - complex(0,1)*struct['C3']*struct['L']*np.cos(2*struct['alpha']) + complex(0,1)*struct['C2']*struct['xlf']*np.sin(struct['alpha']) - complex(0,1)*struct['C2']*struct['xr']*np.sin(struct['alpha']) - complex(0,2)*struct['C3']*struct['ylf']*np.sin(struct['alpha']) + complex(0,2)*struct['C3']*struct['yr']*np.sin(struct['alpha']) - complex(0,1)*struct['C2']*struct['L']*np.sin(2*struct['alpha']),2)/ (2.*(struct['C1'] + struct['C3'] + struct['C1']*np.cos(2*struct['alpha']) - struct['C3']*np.cos(2*struct['alpha']) - struct['C2']*np.sin(2*struct['alpha']))) - (-4*power(struct['C1'],2)*power(struct['xlf'],2) - power(struct['C2'],2)*power(struct['xlf'],2) + 8*power(struct['C1'],2)*struct['xlf']*struct['xr'] + 2*power(struct['C2'],2)*struct['xlf']*struct['xr'] - 4*power(struct['C1'],2)*power(struct['xr'],2) - power(struct['C2'],2)*power(struct['xr'],2) + 4*struct['C1']*struct['C2']*struct['xlf']*struct['ylf'] + 4*struct['C2']*struct['C3']*struct['xlf']*struct['ylf'] - 4*struct['C1']*struct['C2']*struct['xr']*struct['ylf'] - 4*struct['C2']*struct['C3']*struct['xr']*struct['ylf'] - power(struct['C2'],2)*power(struct['ylf'],2) - 4*power(struct['C3'],2)*power(struct['ylf'],2) - 4*struct['C1']*struct['C2']*struct['xlf']*struct['yr'] - 4*struct['C2']*struct['C3']*struct['xlf']*struct['yr'] + 4*struct['C1']*struct['C2']*struct['xr']*struct['yr'] + 4*struct['C2']*struct['C3']*struct['xr']*struct['yr'] + 2*power(struct['C2'],2)*struct['ylf']*struct['yr'] + 8*power(struct['C3'],2)*struct['ylf']*struct['yr'] - power(struct['C2'],2)*power(struct['yr'],2) - 4*power(struct['C3'],2)*power(struct['yr'],2) - 4*power(struct['C1'],2)*power(struct['xlf'],2)*np.cos(2*struct['alpha']) + power(struct['C2'],2)*power(struct['xlf'],2)*np.cos(2*struct['alpha']) + 8*power(struct['C1'],2)*struct['xlf']*struct['xr']*np.cos(2*struct['alpha']) - 2*power(struct['C2'],2)*struct['xlf']*struct['xr']*np.cos(2*struct['alpha']) - 4*power(struct['C1'],2)*power(struct['xr'],2)*np.cos(2*struct['alpha']) + power(struct['C2'],2)*power(struct['xr'],2)*np.cos(2*struct['alpha']) + 4*struct['C1']*struct['C2']*struct['xlf']*struct['ylf']*np.cos(2*struct['alpha']) - 4*struct['C2']*struct['C3']*struct['xlf']*struct['ylf']*np.cos(2*struct['alpha']) - 4*struct['C1']*struct['C2']*struct['xr']*struct['ylf']*np.cos(2*struct['alpha']) + 4*struct['C2']*struct['C3']*struct['xr']*struct['ylf']*np.cos(2*struct['alpha']) - power(struct['C2'],2)*power(struct['ylf'],2)*np.cos(2*struct['alpha']) + 4*power(struct['C3'],2)*power(struct['ylf'],2)*np.cos(2*struct['alpha']) - 4*struct['C1']*struct['C2']*struct['xlf']*struct['yr']*np.cos(2*struct['alpha']) + 4*struct['C2']*struct['C3']*struct['xlf']*struct['yr']*np.cos(2*struct['alpha']) + 4*struct['C1']*struct['C2']*struct['xr']*struct['yr']*np.cos(2*struct['alpha']) - 4*struct['C2']*struct['C3']*struct['xr']*struct['yr']*np.cos(2*struct['alpha']) + 2*power(struct['C2'],2)*struct['ylf']*struct['yr']*np.cos(2*struct['alpha']) - 8*power(struct['C3'],2)*struct['ylf']*struct['yr']*np.cos(2*struct['alpha']) - power(struct['C2'],2)*power(struct['yr'],2)*np.cos(2*struct['alpha']) + 4*power(struct['C3'],2)*power(struct['yr'],2)*np.cos(2*struct['alpha']) + 4*struct['C1']*struct['C2']*power(struct['xlf'],2)*np.sin(2*struct['alpha']) - 8*struct['C1']*struct['C2']*struct['xlf']*struct['xr']*np.sin(2*struct['alpha']) + 4*struct['C1']*struct['C2']*power(struct['xr'],2)*np.sin(2*struct['alpha']) - 2*power(struct['C2'],2)*struct['xlf']*struct['ylf']*np.sin(2*struct['alpha']) - 8*struct['C1']*struct['C3']*struct['xlf']*struct['ylf']*np.sin(2*struct['alpha']) + 2*power(struct['C2'],2)*struct['xr']*struct['ylf']*np.sin(2*struct['alpha']) + 8*struct['C1']*struct['C3']*struct['xr']*struct['ylf']*np.sin(2*struct['alpha']) + 4*struct['C2']*struct['C3']*power(struct['ylf'],2)*np.sin(2*struct['alpha']) + 2*power(struct['C2'],2)*struct['xlf']*struct['yr']*np.sin(2*struct['alpha']) + 8*struct['C1']*struct['C3']*struct['xlf']*struct['yr']*np.sin(2*struct['alpha']) - 2*power(struct['C2'],2)*struct['xr']*struct['yr']*np.sin(2*struct['alpha']) - 8*struct['C1']*struct['C3']*struct['xr']*struct['yr']*np.sin(2*struct['alpha']) - 8*struct['C2']*struct['C3']*struct['ylf']*struct['yr']*np.sin(2*struct['alpha']) + 4*struct['C2']*struct['C3']*power(struct['yr'],2)*np.sin(2*struct['alpha']))/ (4.*(struct['C1'] + struct['C3'] + struct['C1']*np.cos(2*struct['alpha']) - struct['C3']*np.cos(2*struct['alpha']) - struct['C2']*np.sin(2*struct['alpha']))))* (complex(0,2)*struct['C1']*np.cos(struct['alpha']) - complex(0,1)*struct['C2']*np.sin(struct['alpha']))) /(complex(0,1)*struct['C1'] + complex(0,1)*struct['C3'] + complex(0,1)*struct['C1']*np.cos(2*struct['alpha']) - complex(0,1)*struct['C3']*np.cos(2*struct['alpha']) - complex(0,1)*struct['C2']*np.sin(2*struct['alpha'])) - (power(struct['E'],-(struct['C1']*power(struct['xlf'],2)) + 2*struct['C1']*struct['xlf']*struct['xr'] - struct['C1']*power(struct['xr'],2) + struct['C2']*struct['xlf']*struct['ylf'] - struct['C2']*struct['xr']*struct['ylf'] - struct['C3']*power(struct['ylf'],2) - struct['C2']*struct['xlf']*struct['yr'] + struct['C2']*struct['xr']*struct['yr'] + 2*struct['C3']*struct['ylf']*struct['yr'] - struct['C3']*power(struct['yr'],2) - (-4*power(struct['C1'],2)*power(struct['xlf'],2) - power(struct['C2'],2)*power(struct['xlf'],2) + 8*power(struct['C1'],2)*struct['xlf']*struct['xr'] + 2*power(struct['C2'],2)*struct['xlf']*struct['xr'] - 4*power(struct['C1'],2)*power(struct['xr'],2) - power(struct['C2'],2)*power(struct['xr'],2) + 4*struct['C1']*struct['C2']*struct['xlf']*struct['ylf'] + 4*struct['C2']*struct['C3']*struct['xlf']*struct['ylf'] - 4*struct['C1']*struct['C2']*struct['xr']*struct['ylf'] - 4*struct['C2']*struct['C3']*struct['xr']*struct['ylf'] - power(struct['C2'],2)*power(struct['ylf'],2) - 4*power(struct['C3'],2)*power(struct['ylf'],2) - 4*struct['C1']*struct['C2']*struct['xlf']*struct['yr'] - 4*struct['C2']*struct['C3']*struct['xlf']*struct['yr'] + 4*struct['C1']*struct['C2']*struct['xr']*struct['yr'] + 4*struct['C2']*struct['C3']*struct['xr']*struct['yr'] + 2*power(struct['C2'],2)*struct['ylf']*struct['yr'] + 8*power(struct['C3'],2)*struct['ylf']*struct['yr'] - power(struct['C2'],2)*power(struct['yr'],2) - 4*power(struct['C3'],2)*power(struct['yr'],2) - 4*power(struct['C1'],2)*power(struct['xlf'],2)*np.cos(2*struct['alpha']) + power(struct['C2'],2)*power(struct['xlf'],2)*np.cos(2*struct['alpha']) + 8*power(struct['C1'],2)*struct['xlf']*struct['xr']*np.cos(2*struct['alpha']) - 2*power(struct['C2'],2)*struct['xlf']*struct['xr']*np.cos(2*struct['alpha']) - 4*power(struct['C1'],2)*power(struct['xr'],2)*np.cos(2*struct['alpha']) + power(struct['C2'],2)*power(struct['xr'],2)*np.cos(2*struct['alpha']) + 4*struct['C1']*struct['C2']*struct['xlf']*struct['ylf']*np.cos(2*struct['alpha']) - 4*struct['C2']*struct['C3']*struct['xlf']*struct['ylf']*np.cos(2*struct['alpha']) - 4*struct['C1']*struct['C2']*struct['xr']*struct['ylf']*np.cos(2*struct['alpha']) + 4*struct['C2']*struct['C3']*struct['xr']*struct['ylf']*np.cos(2*struct['alpha']) - power(struct['C2'],2)*power(struct['ylf'],2)*np.cos(2*struct['alpha']) + 4*power(struct['C3'],2)*power(struct['ylf'],2)*np.cos(2*struct['alpha']) - 4*struct['C1']*struct['C2']*struct['xlf']*struct['yr']*np.cos(2*struct['alpha']) + 4*struct['C2']*struct['C3']*struct['xlf']*struct['yr']*np.cos(2*struct['alpha']) + 4*struct['C1']*struct['C2']*struct['xr']*struct['yr']*np.cos(2*struct['alpha']) - 4*struct['C2']*struct['C3']*struct['xr']*struct['yr']*np.cos(2*struct['alpha']) + 2*power(struct['C2'],2)*struct['ylf']*struct['yr']*np.cos(2*struct['alpha']) - 8*power(struct['C3'],2)*struct['ylf']*struct['yr']*np.cos(2*struct['alpha']) - power(struct['C2'],2)*power(struct['yr'],2)*np.cos(2*struct['alpha']) + 4*power(struct['C3'],2)*power(struct['yr'],2)*np.cos(2*struct['alpha']) + 4*struct['C1']*struct['C2']*power(struct['xlf'],2)*np.sin(2*struct['alpha']) - 8*struct['C1']*struct['C2']*struct['xlf']*struct['xr']*np.sin(2*struct['alpha']) + 4*struct['C1']*struct['C2']*power(struct['xr'],2)*np.sin(2*struct['alpha']) - 2*power(struct['C2'],2)*struct['xlf']*struct['ylf']*np.sin(2*struct['alpha']) - 8*struct['C1']*struct['C3']*struct['xlf']*struct['ylf']*np.sin(2*struct['alpha']) + 2*power(struct['C2'],2)*struct['xr']*struct['ylf']*np.sin(2*struct['alpha']) + 8*struct['C1']*struct['C3']*struct['xr']*struct['ylf']*np.sin(2*struct['alpha']) + 4*struct['C2']*struct['C3']*power(struct['ylf'],2)*np.sin(2*struct['alpha']) + 2*power(struct['C2'],2)*struct['xlf']*struct['yr']*np.sin(2*struct['alpha']) + 8*struct['C1']*struct['C3']*struct['xlf']*struct['yr']*np.sin(2*struct['alpha']) - 2*power(struct['C2'],2)*struct['xr']*struct['yr']*np.sin(2*struct['alpha']) - 8*struct['C1']*struct['C3']*struct['xr']*struct['yr']*np.sin(2*struct['alpha']) - 8*struct['C2']*struct['C3']*struct['ylf']*struct['yr']*np.sin(2*struct['alpha']) + 4*struct['C2']*struct['C3']*power(struct['yr'],2)*np.sin(2*struct['alpha']))/ (4.*(struct['C1'] + struct['C3'] + struct['C1']*np.cos(2*struct['alpha']) - struct['C3']*np.cos(2*struct['alpha']) - struct['C2']*np.sin(2*struct['alpha']))))*np.sqrt(np.pi/2.)* special.erfi((complex(0,-2)*struct['C1']*struct['xlf']*np.cos(struct['alpha']) + complex(0,2)*struct['C1']*struct['xr']*np.cos(struct['alpha']) + complex(0,1)*struct['C2']*struct['ylf']*np.cos(struct['alpha']) - complex(0,1)*struct['C2']*struct['yr']*np.cos(struct['alpha']) + complex(0,1)*struct['C2']*struct['xlf']*np.sin(struct['alpha']) - complex(0,1)*struct['C2']*struct['xr']*np.sin(struct['alpha']) - complex(0,2)*struct['C3']*struct['ylf']*np.sin(struct['alpha']) + complex(0,2)*struct['C3']*struct['yr']*np.sin(struct['alpha']))/ (np.sqrt(2)*np.sqrt(struct['C1'] + struct['C3'] + struct['C1']*np.cos(2*struct['alpha']) - struct['C3']*np.cos(2*struct['alpha']) - struct['C2']*np.sin(2*struct['alpha']))))* np.sqrt(struct['C1'] + struct['C3'] + struct['C1']*np.cos(2*struct['alpha']) - struct['C3']*np.cos(2*struct['alpha']) - struct['C2']*np.sin(2*struct['alpha']))* (2*struct['C1']*struct['xlf'] - 2*struct['C1']*struct['xr'] - struct['C2']*struct['ylf'] + struct['C2']*struct['yr'] - (8*power(struct['C1'],2)*struct['xlf'] + 2*power(struct['C2'],2)*struct['xlf'] - 8*power(struct['C1'],2)*struct['xr'] - 2*power(struct['C2'],2)*struct['xr'] - 4*struct['C1']*struct['C2']*struct['ylf'] - 4*struct['C2']*struct['C3']*struct['ylf'] + 4*struct['C1']*struct['C2']*struct['yr'] + 4*struct['C2']*struct['C3']*struct['yr'] + 8*power(struct['C1'],2)*struct['xlf']*np.cos(2*struct['alpha']) - 2*power(struct['C2'],2)*struct['xlf']*np.cos(2*struct['alpha']) - 8*power(struct['C1'],2)*struct['xr']*np.cos(2*struct['alpha']) + 2*power(struct['C2'],2)*struct['xr']*np.cos(2*struct['alpha']) - 4*struct['C1']*struct['C2']*struct['ylf']*np.cos(2*struct['alpha']) + 4*struct['C2']*struct['C3']*struct['ylf']*np.cos(2*struct['alpha']) + 4*struct['C1']*struct['C2']*struct['yr']*np.cos(2*struct['alpha']) - 4*struct['C2']*struct['C3']*struct['yr']*np.cos(2*struct['alpha']) - 8*struct['C1']*struct['C2']*struct['xlf']*np.sin(2*struct['alpha']) + 8*struct['C1']*struct['C2']*struct['xr']*np.sin(2*struct['alpha']) + 2*power(struct['C2'],2)*struct['ylf']*np.sin(2*struct['alpha']) + 8*struct['C1']*struct['C3']*struct['ylf']*np.sin(2*struct['alpha']) - 2*power(struct['C2'],2)*struct['yr']*np.sin(2*struct['alpha']) - 8*struct['C1']*struct['C3']*struct['yr']*np.sin(2*struct['alpha']))/ (4.*(struct['C1'] + struct['C3'] + struct['C1']*np.cos(2*struct['alpha']) - struct['C3']*np.cos(2*struct['alpha']) - struct['C2']*np.sin(2*struct['alpha'])))))/ (complex(0,1)*struct['C1'] + complex(0,1)*struct['C3'] + complex(0,1)*struct['C1']*np.cos(2*struct['alpha']) - complex(0,1)*struct['C3']*np.cos(2*struct['alpha']) - complex(0,1)*struct['C2']*np.sin(2*struct['alpha'])) + (power(struct['E'],-(struct['C1']*power(struct['xlf'],2)) + 2*struct['C1']*struct['xlf']*struct['xr'] - struct['C1']*power(struct['xr'],2) + struct['C2']*struct['xlf']*struct['ylf'] - struct['C2']*struct['xr']*struct['ylf'] - struct['C3']*power(struct['ylf'],2) - struct['C2']*struct['xlf']*struct['yr'] + struct['C2']*struct['xr']*struct['yr'] + 2*struct['C3']*struct['ylf']*struct['yr'] - struct['C3']*power(struct['yr'],2) - (-4*power(struct['C1'],2)*power(struct['xlf'],2) - power(struct['C2'],2)*power(struct['xlf'],2) + 8*power(struct['C1'],2)*struct['xlf']*struct['xr'] + 2*power(struct['C2'],2)*struct['xlf']*struct['xr'] - 4*power(struct['C1'],2)*power(struct['xr'],2) - power(struct['C2'],2)*power(struct['xr'],2) + 4*struct['C1']*struct['C2']*struct['xlf']*struct['ylf'] + 4*struct['C2']*struct['C3']*struct['xlf']*struct['ylf'] - 4*struct['C1']*struct['C2']*struct['xr']*struct['ylf'] - 4*struct['C2']*struct['C3']*struct['xr']*struct['ylf'] - power(struct['C2'],2)*power(struct['ylf'],2) - 4*power(struct['C3'],2)*power(struct['ylf'],2) - 4*struct['C1']*struct['C2']*struct['xlf']*struct['yr'] - 4*struct['C2']*struct['C3']*struct['xlf']*struct['yr'] + 4*struct['C1']*struct['C2']*struct['xr']*struct['yr'] + 4*struct['C2']*struct['C3']*struct['xr']*struct['yr'] + 2*power(struct['C2'],2)*struct['ylf']*struct['yr'] + 8*power(struct['C3'],2)*struct['ylf']*struct['yr'] - power(struct['C2'],2)*power(struct['yr'],2) - 4*power(struct['C3'],2)*power(struct['yr'],2) - 4*power(struct['C1'],2)*power(struct['xlf'],2)*np.cos(2*struct['alpha']) + power(struct['C2'],2)*power(struct['xlf'],2)*np.cos(2*struct['alpha']) + 8*power(struct['C1'],2)*struct['xlf']*struct['xr']*np.cos(2*struct['alpha']) - 2*power(struct['C2'],2)*struct['xlf']*struct['xr']*np.cos(2*struct['alpha']) - 4*power(struct['C1'],2)*power(struct['xr'],2)*np.cos(2*struct['alpha']) + power(struct['C2'],2)*power(struct['xr'],2)*np.cos(2*struct['alpha']) + 4*struct['C1']*struct['C2']*struct['xlf']*struct['ylf']*np.cos(2*struct['alpha']) - 4*struct['C2']*struct['C3']*struct['xlf']*struct['ylf']*np.cos(2*struct['alpha']) - 4*struct['C1']*struct['C2']*struct['xr']*struct['ylf']*np.cos(2*struct['alpha']) + 4*struct['C2']*struct['C3']*struct['xr']*struct['ylf']*np.cos(2*struct['alpha']) - power(struct['C2'],2)*power(struct['ylf'],2)*np.cos(2*struct['alpha']) + 4*power(struct['C3'],2)*power(struct['ylf'],2)*np.cos(2*struct['alpha']) - 4*struct['C1']*struct['C2']*struct['xlf']*struct['yr']*np.cos(2*struct['alpha']) + 4*struct['C2']*struct['C3']*struct['xlf']*struct['yr']*np.cos(2*struct['alpha']) + 4*struct['C1']*struct['C2']*struct['xr']*struct['yr']*np.cos(2*struct['alpha']) - 4*struct['C2']*struct['C3']*struct['xr']*struct['yr']*np.cos(2*struct['alpha']) + 2*power(struct['C2'],2)*struct['ylf']*struct['yr']*np.cos(2*struct['alpha']) - 8*power(struct['C3'],2)*struct['ylf']*struct['yr']*np.cos(2*struct['alpha']) - power(struct['C2'],2)*power(struct['yr'],2)*np.cos(2*struct['alpha']) + 4*power(struct['C3'],2)*power(struct['yr'],2)*np.cos(2*struct['alpha']) + 4*struct['C1']*struct['C2']*power(struct['xlf'],2)*np.sin(2*struct['alpha']) - 8*struct['C1']*struct['C2']*struct['xlf']*struct['xr']*np.sin(2*struct['alpha']) + 4*struct['C1']*struct['C2']*power(struct['xr'],2)*np.sin(2*struct['alpha']) - 2*power(struct['C2'],2)*struct['xlf']*struct['ylf']*np.sin(2*struct['alpha']) - 8*struct['C1']*struct['C3']*struct['xlf']*struct['ylf']*np.sin(2*struct['alpha']) + 2*power(struct['C2'],2)*struct['xr']*struct['ylf']*np.sin(2*struct['alpha']) + 8*struct['C1']*struct['C3']*struct['xr']*struct['ylf']*np.sin(2*struct['alpha']) + 4*struct['C2']*struct['C3']*power(struct['ylf'],2)*np.sin(2*struct['alpha']) + 2*power(struct['C2'],2)*struct['xlf']*struct['yr']*np.sin(2*struct['alpha']) + 8*struct['C1']*struct['C3']*struct['xlf']*struct['yr']*np.sin(2*struct['alpha']) - 2*power(struct['C2'],2)*struct['xr']*struct['yr']*np.sin(2*struct['alpha']) - 8*struct['C1']*struct['C3']*struct['xr']*struct['yr']*np.sin(2*struct['alpha']) - 8*struct['C2']*struct['C3']*struct['ylf']*struct['yr']*np.sin(2*struct['alpha']) + 4*struct['C2']*struct['C3']*power(struct['yr'],2)*np.sin(2*struct['alpha']))/ (4.*(struct['C1'] + struct['C3'] + struct['C1']*np.cos(2*struct['alpha']) - struct['C3']*np.cos(2*struct['alpha']) - struct['C2']*np.sin(2*struct['alpha']))))*np.sqrt(np.pi/2.)* special.erfi((complex(0,1)*struct['C1']*struct['L'] + complex(0,1)*struct['C3']*struct['L'] - complex(0,2)*struct['C1']*struct['xlf']*np.cos(struct['alpha']) + complex(0,2)*struct['C1']*struct['xr']*np.cos(struct['alpha']) + complex(0,1)*struct['C2']*struct['ylf']*np.cos(struct['alpha']) - complex(0,1)*struct['C2']*struct['yr']*np.cos(struct['alpha']) + complex(0,1)*struct['C1']*struct['L']*np.cos(2*struct['alpha']) - complex(0,1)*struct['C3']*struct['L']*np.cos(2*struct['alpha']) + complex(0,1)*struct['C2']*struct['xlf']*np.sin(struct['alpha']) - complex(0,1)*struct['C2']*struct['xr']*np.sin(struct['alpha']) - complex(0,2)*struct['C3']*struct['ylf']*np.sin(struct['alpha']) + complex(0,2)*struct['C3']*struct['yr']*np.sin(struct['alpha']) - complex(0,1)*struct['C2']*struct['L']*np.sin(2*struct['alpha']))/ (np.sqrt(2)*np.sqrt(struct['C1'] + struct['C3'] + struct['C1']*np.cos(2*struct['alpha']) - struct['C3']*np.cos(2*struct['alpha']) - struct['C2']*np.sin(2*struct['alpha']))))* np.sqrt(struct['C1'] + struct['C3'] + struct['C1']*np.cos(2*struct['alpha']) - struct['C3']*np.cos(2*struct['alpha']) - struct['C2']*np.sin(2*struct['alpha']))* (2*struct['C1']*struct['xlf'] - 2*struct['C1']*struct['xr'] - struct['C2']*struct['ylf'] + struct['C2']*struct['yr'] - (8*power(struct['C1'],2)*struct['xlf'] + 2*power(struct['C2'],2)*struct['xlf'] - 8*power(struct['C1'],2)*struct['xr'] - 2*power(struct['C2'],2)*struct['xr'] - 4*struct['C1']*struct['C2']*struct['ylf'] - 4*struct['C2']*struct['C3']*struct['ylf'] + 4*struct['C1']*struct['C2']*struct['yr'] + 4*struct['C2']*struct['C3']*struct['yr'] + 8*power(struct['C1'],2)*struct['xlf']*np.cos(2*struct['alpha']) - 2*power(struct['C2'],2)*struct['xlf']*np.cos(2*struct['alpha']) - 8*power(struct['C1'],2)*struct['xr']*np.cos(2*struct['alpha']) + 2*power(struct['C2'],2)*struct['xr']*np.cos(2*struct['alpha']) - 4*struct['C1']*struct['C2']*struct['ylf']*np.cos(2*struct['alpha']) + 4*struct['C2']*struct['C3']*struct['ylf']*np.cos(2*struct['alpha']) + 4*struct['C1']*struct['C2']*struct['yr']*np.cos(2*struct['alpha']) - 4*struct['C2']*struct['C3']*struct['yr']*np.cos(2*struct['alpha']) - 8*struct['C1']*struct['C2']*struct['xlf']*np.sin(2*struct['alpha']) + 8*struct['C1']*struct['C2']*struct['xr']*np.sin(2*struct['alpha']) + 2*power(struct['C2'],2)*struct['ylf']*np.sin(2*struct['alpha']) + 8*struct['C1']*struct['C3']*struct['ylf']*np.sin(2*struct['alpha']) - 2*power(struct['C2'],2)*struct['yr']*np.sin(2*struct['alpha']) - 8*struct['C1']*struct['C3']*struct['yr']*np.sin(2*struct['alpha']))/ (4.*(struct['C1'] + struct['C3'] + struct['C1']*np.cos(2*struct['alpha']) - struct['C3']*np.cos(2*struct['alpha']) - struct['C2']*np.sin(2*struct['alpha'])))))/ (complex(0,1)*struct['C1'] + complex(0,1)*struct['C3'] + complex(0,1)*struct['C1']*np.cos(2*struct['alpha']) - complex(0,1)*struct['C3']*np.cos(2*struct['alpha']) - complex(0,1)*struct['C2']*np.sin(2*struct['alpha']))) + struct['C5r']*(-((power(struct['E'],-(struct['C1r']*power(struct['xr'],2)) + 2*struct['C1r']*struct['xr']*struct['xrf'] - struct['C1r']*power(struct['xrf'],2) + struct['C2r']*struct['xr']*struct['yr'] - struct['C2r']*struct['xrf']*struct['yr'] - struct['C3r']*power(struct['yr'],2) - struct['C2r']*struct['xr']*struct['yrf'] + struct['C2r']*struct['xrf']*struct['yrf'] + 2*struct['C3r']*struct['yr']*struct['yrf'] - struct['C3r']*power(struct['yrf'],2) + power(complex(0,2)*struct['C1r']*struct['xr']*np.cos(struct['alpha']) - complex(0,2)*struct['C1r']*struct['xrf']*np.cos(struct['alpha']) - complex(0,1)*struct['C2r']*struct['yr']*np.cos(struct['alpha']) + complex(0,1)*struct['C2r']*struct['yrf']*np.cos(struct['alpha']) - complex(0,1)*struct['C2r']*struct['xr']*np.sin(struct['alpha']) + complex(0,1)*struct['C2r']*struct['xrf']*np.sin(struct['alpha']) + complex(0,2)*struct['C3r']*struct['yr']*np.sin(struct['alpha']) - complex(0,2)*struct['C3r']*struct['yrf']*np.sin(struct['alpha']),2)/ (2.*(struct['C1r'] + struct['C3r'] + struct['C1r']*np.cos(2*struct['alpha']) - struct['C3r']*np.cos(2*struct['alpha']) - struct['C2r']*np.sin(2*struct['alpha']))) - (-4*power(struct['C1r'],2)*power(struct['xr'],2) - power(struct['C2r'],2)*power(struct['xr'],2) + 8*power(struct['C1r'],2)*struct['xr']*struct['xrf'] + 2*power(struct['C2r'],2)*struct['xr']*struct['xrf'] - 4*power(struct['C1r'],2)*power(struct['xrf'],2) - power(struct['C2r'],2)*power(struct['xrf'],2) + 4*struct['C1r']*struct['C2r']*struct['xr']*struct['yr'] + 4*struct['C2r']*struct['C3r']*struct['xr']*struct['yr'] - 4*struct['C1r']*struct['C2r']*struct['xrf']*struct['yr'] - 4*struct['C2r']*struct['C3r']*struct['xrf']*struct['yr'] - power(struct['C2r'],2)*power(struct['yr'],2) - 4*power(struct['C3r'],2)*power(struct['yr'],2) - 4*struct['C1r']*struct['C2r']*struct['xr']*struct['yrf'] - 4*struct['C2r']*struct['C3r']*struct['xr']*struct['yrf'] + 4*struct['C1r']*struct['C2r']*struct['xrf']*struct['yrf'] + 4*struct['C2r']*struct['C3r']*struct['xrf']*struct['yrf'] + 2*power(struct['C2r'],2)*struct['yr']*struct['yrf'] + 8*power(struct['C3r'],2)*struct['yr']*struct['yrf'] - power(struct['C2r'],2)*power(struct['yrf'],2) - 4*power(struct['C3r'],2)*power(struct['yrf'],2) - 4*power(struct['C1r'],2)*power(struct['xr'],2)*np.cos(2*struct['alpha']) + power(struct['C2r'],2)*power(struct['xr'],2)*np.cos(2*struct['alpha']) + 8*power(struct['C1r'],2)*struct['xr']*struct['xrf']*np.cos(2*struct['alpha']) - 2*power(struct['C2r'],2)*struct['xr']*struct['xrf']*np.cos(2*struct['alpha']) - 4*power(struct['C1r'],2)*power(struct['xrf'],2)*np.cos(2*struct['alpha']) + power(struct['C2r'],2)*power(struct['xrf'],2)*np.cos(2*struct['alpha']) + 4*struct['C1r']*struct['C2r']*struct['xr']*struct['yr']*np.cos(2*struct['alpha']) - 4*struct['C2r']*struct['C3r']*struct['xr']*struct['yr']*np.cos(2*struct['alpha']) - 4*struct['C1r']*struct['C2r']*struct['xrf']*struct['yr']*np.cos(2*struct['alpha']) + 4*struct['C2r']*struct['C3r']*struct['xrf']*struct['yr']*np.cos(2*struct['alpha']) - power(struct['C2r'],2)*power(struct['yr'],2)*np.cos(2*struct['alpha']) + 4*power(struct['C3r'],2)*power(struct['yr'],2)*np.cos(2*struct['alpha']) - 4*struct['C1r']*struct['C2r']*struct['xr']*struct['yrf']*np.cos(2*struct['alpha']) + 4*struct['C2r']*struct['C3r']*struct['xr']*struct['yrf']*np.cos(2*struct['alpha']) + 4*struct['C1r']*struct['C2r']*struct['xrf']*struct['yrf']*np.cos(2*struct['alpha']) - 4*struct['C2r']*struct['C3r']*struct['xrf']*struct['yrf']*np.cos(2*struct['alpha']) + 2*power(struct['C2r'],2)*struct['yr']*struct['yrf']*np.cos(2*struct['alpha']) - 8*power(struct['C3r'],2)*struct['yr']*struct['yrf']*np.cos(2*struct['alpha']) - power(struct['C2r'],2)*power(struct['yrf'],2)*np.cos(2*struct['alpha']) + 4*power(struct['C3r'],2)*power(struct['yrf'],2)*np.cos(2*struct['alpha']) + 4*struct['C1r']*struct['C2r']*power(struct['xr'],2)*np.sin(2*struct['alpha']) - 8*struct['C1r']*struct['C2r']*struct['xr']*struct['xrf']*np.sin(2*struct['alpha']) + 4*struct['C1r']*struct['C2r']*power(struct['xrf'],2)*np.sin(2*struct['alpha']) - 2*power(struct['C2r'],2)*struct['xr']*struct['yr']*np.sin(2*struct['alpha']) - 8*struct['C1r']*struct['C3r']*struct['xr']*struct['yr']*np.sin(2*struct['alpha']) + 2*power(struct['C2r'],2)*struct['xrf']*struct['yr']*np.sin(2*struct['alpha']) + 8*struct['C1r']*struct['C3r']*struct['xrf']*struct['yr']*np.sin(2*struct['alpha']) + 4*struct['C2r']*struct['C3r']*power(struct['yr'],2)*np.sin(2*struct['alpha']) + 2*power(struct['C2r'],2)*struct['xr']*struct['yrf']*np.sin(2*struct['alpha']) + 8*struct['C1r']*struct['C3r']*struct['xr']*struct['yrf']*np.sin(2*struct['alpha']) - 2*power(struct['C2r'],2)*struct['xrf']*struct['yrf']*np.sin(2*struct['alpha']) - 8*struct['C1r']*struct['C3r']*struct['xrf']*struct['yrf']*np.sin(2*struct['alpha']) - 8*struct['C2r']*struct['C3r']*struct['yr']*struct['yrf']*np.sin(2*struct['alpha']) + 4*struct['C2r']*struct['C3r']*power(struct['yrf'],2)*np.sin(2*struct['alpha']))/ (4.*(struct['C1r'] + struct['C3r'] + struct['C1r']*np.cos(2*struct['alpha']) - struct['C3r']*np.cos(2*struct['alpha']) - struct['C2r']*np.sin(2*struct['alpha']))))* (complex(0,2)*struct['C1r']*np.cos(struct['alpha']) - complex(0,1)*struct['C2r']*np.sin(struct['alpha'])))/ (complex(0,1)*struct['C1r'] + complex(0,1)*struct['C3r'] + complex(0,1)*struct['C1r']*np.cos(2*struct['alpha']) - complex(0,1)*struct['C3r']*np.cos(2*struct['alpha']) - complex(0,1)*struct['C2r']*np.sin(2*struct['alpha']))) + (power(struct['E'],-(struct['C1r']*power(struct['xr'],2)) + 2*struct['C1r']*struct['xr']*struct['xrf'] - struct['C1r']*power(struct['xrf'],2) + struct['C2r']*struct['xr']*struct['yr'] - struct['C2r']*struct['xrf']*struct['yr'] - struct['C3r']*power(struct['yr'],2) - struct['C2r']*struct['xr']*struct['yrf'] + struct['C2r']*struct['xrf']*struct['yrf'] + 2*struct['C3r']*struct['yr']*struct['yrf'] - struct['C3r']*power(struct['yrf'],2) + power(complex(0,1)*struct['C1r']*struct['L'] + complex(0,1)*struct['C3r']*struct['L'] + complex(0,2)*struct['C1r']*struct['xr']*np.cos(struct['alpha']) - complex(0,2)*struct['C1r']*struct['xrf']*np.cos(struct['alpha']) - complex(0,1)*struct['C2r']*struct['yr']*np.cos(struct['alpha']) + complex(0,1)*struct['C2r']*struct['yrf']*np.cos(struct['alpha']) + complex(0,1)*struct['C1r']*struct['L']*np.cos(2*struct['alpha']) - complex(0,1)*struct['C3r']*struct['L']*np.cos(2*struct['alpha']) - complex(0,1)*struct['C2r']*struct['xr']*np.sin(struct['alpha']) + complex(0,1)*struct['C2r']*struct['xrf']*np.sin(struct['alpha']) + complex(0,2)*struct['C3r']*struct['yr']*np.sin(struct['alpha']) - complex(0,2)*struct['C3r']*struct['yrf']*np.sin(struct['alpha']) - complex(0,1)*struct['C2r']*struct['L']*np.sin(2*struct['alpha']),2)/ (2.*(struct['C1r'] + struct['C3r'] + struct['C1r']*np.cos(2*struct['alpha']) - struct['C3r']*np.cos(2*struct['alpha']) - struct['C2r']*np.sin(2*struct['alpha']))) - (-4*power(struct['C1r'],2)*power(struct['xr'],2) - power(struct['C2r'],2)*power(struct['xr'],2) + 8*power(struct['C1r'],2)*struct['xr']*struct['xrf'] + 2*power(struct['C2r'],2)*struct['xr']*struct['xrf'] - 4*power(struct['C1r'],2)*power(struct['xrf'],2) - power(struct['C2r'],2)*power(struct['xrf'],2) + 4*struct['C1r']*struct['C2r']*struct['xr']*struct['yr'] + 4*struct['C2r']*struct['C3r']*struct['xr']*struct['yr'] - 4*struct['C1r']*struct['C2r']*struct['xrf']*struct['yr'] - 4*struct['C2r']*struct['C3r']*struct['xrf']*struct['yr'] - power(struct['C2r'],2)*power(struct['yr'],2) - 4*power(struct['C3r'],2)*power(struct['yr'],2) - 4*struct['C1r']*struct['C2r']*struct['xr']*struct['yrf'] - 4*struct['C2r']*struct['C3r']*struct['xr']*struct['yrf'] + 4*struct['C1r']*struct['C2r']*struct['xrf']*struct['yrf'] + 4*struct['C2r']*struct['C3r']*struct['xrf']*struct['yrf'] + 2*power(struct['C2r'],2)*struct['yr']*struct['yrf'] + 8*power(struct['C3r'],2)*struct['yr']*struct['yrf'] - power(struct['C2r'],2)*power(struct['yrf'],2) - 4*power(struct['C3r'],2)*power(struct['yrf'],2) - 4*power(struct['C1r'],2)*power(struct['xr'],2)*np.cos(2*struct['alpha']) + power(struct['C2r'],2)*power(struct['xr'],2)*np.cos(2*struct['alpha']) + 8*power(struct['C1r'],2)*struct['xr']*struct['xrf']*np.cos(2*struct['alpha']) - 2*power(struct['C2r'],2)*struct['xr']*struct['xrf']*np.cos(2*struct['alpha']) - 4*power(struct['C1r'],2)*power(struct['xrf'],2)*np.cos(2*struct['alpha']) + power(struct['C2r'],2)*power(struct['xrf'],2)*np.cos(2*struct['alpha']) + 4*struct['C1r']*struct['C2r']*struct['xr']*struct['yr']*np.cos(2*struct['alpha']) - 4*struct['C2r']*struct['C3r']*struct['xr']*struct['yr']*np.cos(2*struct['alpha']) - 4*struct['C1r']*struct['C2r']*struct['xrf']*struct['yr']*np.cos(2*struct['alpha']) + 4*struct['C2r']*struct['C3r']*struct['xrf']*struct['yr']*np.cos(2*struct['alpha']) - power(struct['C2r'],2)*power(struct['yr'],2)*np.cos(2*struct['alpha']) + 4*power(struct['C3r'],2)*power(struct['yr'],2)*np.cos(2*struct['alpha']) - 4*struct['C1r']*struct['C2r']*struct['xr']*struct['yrf']*np.cos(2*struct['alpha']) + 4*struct['C2r']*struct['C3r']*struct['xr']*struct['yrf']*np.cos(2*struct['alpha']) + 4*struct['C1r']*struct['C2r']*struct['xrf']*struct['yrf']*np.cos(2*struct['alpha']) - 4*struct['C2r']*struct['C3r']*struct['xrf']*struct['yrf']*np.cos(2*struct['alpha']) + 2*power(struct['C2r'],2)*struct['yr']*struct['yrf']*np.cos(2*struct['alpha']) - 8*power(struct['C3r'],2)*struct['yr']*struct['yrf']*np.cos(2*struct['alpha']) - power(struct['C2r'],2)*power(struct['yrf'],2)*np.cos(2*struct['alpha']) + 4*power(struct['C3r'],2)*power(struct['yrf'],2)*np.cos(2*struct['alpha']) + 4*struct['C1r']*struct['C2r']*power(struct['xr'],2)*np.sin(2*struct['alpha']) - 8*struct['C1r']*struct['C2r']*struct['xr']*struct['xrf']*np.sin(2*struct['alpha']) + 4*struct['C1r']*struct['C2r']*power(struct['xrf'],2)*np.sin(2*struct['alpha']) - 2*power(struct['C2r'],2)*struct['xr']*struct['yr']*np.sin(2*struct['alpha']) - 8*struct['C1r']*struct['C3r']*struct['xr']*struct['yr']*np.sin(2*struct['alpha']) + 2*power(struct['C2r'],2)*struct['xrf']*struct['yr']*np.sin(2*struct['alpha']) + 8*struct['C1r']*struct['C3r']*struct['xrf']*struct['yr']*np.sin(2*struct['alpha']) + 4*struct['C2r']*struct['C3r']*power(struct['yr'],2)*np.sin(2*struct['alpha']) + 2*power(struct['C2r'],2)*struct['xr']*struct['yrf']*np.sin(2*struct['alpha']) + 8*struct['C1r']*struct['C3r']*struct['xr']*struct['yrf']*np.sin(2*struct['alpha']) - 2*power(struct['C2r'],2)*struct['xrf']*struct['yrf']*np.sin(2*struct['alpha']) - 8*struct['C1r']*struct['C3r']*struct['xrf']*struct['yrf']*np.sin(2*struct['alpha']) - 8*struct['C2r']*struct['C3r']*struct['yr']*struct['yrf']*np.sin(2*struct['alpha']) + 4*struct['C2r']*struct['C3r']*power(struct['yrf'],2)*np.sin(2*struct['alpha']))/ (4.*(struct['C1r'] + struct['C3r'] + struct['C1r']*np.cos(2*struct['alpha']) - struct['C3r']*np.cos(2*struct['alpha']) - struct['C2r']*np.sin(2*struct['alpha']))))* (complex(0,2)*struct['C1r']*np.cos(struct['alpha']) - complex(0,1)*struct['C2r']*np.sin(struct['alpha'])))/ (complex(0,1)*struct['C1r'] + complex(0,1)*struct['C3r'] + complex(0,1)*struct['C1r']*np.cos(2*struct['alpha']) - complex(0,1)*struct['C3r']*np.cos(2*struct['alpha']) - complex(0,1)*struct['C2r']*np.sin(2*struct['alpha'])) - (power(struct['E'],-(struct['C1r']*power(struct['xr'],2)) + 2*struct['C1r']*struct['xr']*struct['xrf'] - struct['C1r']*power(struct['xrf'],2) + struct['C2r']*struct['xr']*struct['yr'] - struct['C2r']*struct['xrf']*struct['yr'] - struct['C3r']*power(struct['yr'],2) - struct['C2r']*struct['xr']*struct['yrf'] + struct['C2r']*struct['xrf']*struct['yrf'] + 2*struct['C3r']*struct['yr']*struct['yrf'] - struct['C3r']*power(struct['yrf'],2) - (-4*power(struct['C1r'],2)*power(struct['xr'],2) - power(struct['C2r'],2)*power(struct['xr'],2) + 8*power(struct['C1r'],2)*struct['xr']*struct['xrf'] + 2*power(struct['C2r'],2)*struct['xr']*struct['xrf'] - 4*power(struct['C1r'],2)*power(struct['xrf'],2) - power(struct['C2r'],2)*power(struct['xrf'],2) + 4*struct['C1r']*struct['C2r']*struct['xr']*struct['yr'] + 4*struct['C2r']*struct['C3r']*struct['xr']*struct['yr'] - 4*struct['C1r']*struct['C2r']*struct['xrf']*struct['yr'] - 4*struct['C2r']*struct['C3r']*struct['xrf']*struct['yr'] - power(struct['C2r'],2)*power(struct['yr'],2) - 4*power(struct['C3r'],2)*power(struct['yr'],2) - 4*struct['C1r']*struct['C2r']*struct['xr']*struct['yrf'] - 4*struct['C2r']*struct['C3r']*struct['xr']*struct['yrf'] + 4*struct['C1r']*struct['C2r']*struct['xrf']*struct['yrf'] + 4*struct['C2r']*struct['C3r']*struct['xrf']*struct['yrf'] + 2*power(struct['C2r'],2)*struct['yr']*struct['yrf'] + 8*power(struct['C3r'],2)*struct['yr']*struct['yrf'] - power(struct['C2r'],2)*power(struct['yrf'],2) - 4*power(struct['C3r'],2)*power(struct['yrf'],2) - 4*power(struct['C1r'],2)*power(struct['xr'],2)*np.cos(2*struct['alpha']) + power(struct['C2r'],2)*power(struct['xr'],2)*np.cos(2*struct['alpha']) + 8*power(struct['C1r'],2)*struct['xr']*struct['xrf']*np.cos(2*struct['alpha']) - 2*power(struct['C2r'],2)*struct['xr']*struct['xrf']*np.cos(2*struct['alpha']) - 4*power(struct['C1r'],2)*power(struct['xrf'],2)*np.cos(2*struct['alpha']) + power(struct['C2r'],2)*power(struct['xrf'],2)*np.cos(2*struct['alpha']) + 4*struct['C1r']*struct['C2r']*struct['xr']*struct['yr']*np.cos(2*struct['alpha']) - 4*struct['C2r']*struct['C3r']*struct['xr']*struct['yr']*np.cos(2*struct['alpha']) - 4*struct['C1r']*struct['C2r']*struct['xrf']*struct['yr']*np.cos(2*struct['alpha']) + 4*struct['C2r']*struct['C3r']*struct['xrf']*struct['yr']*np.cos(2*struct['alpha']) - power(struct['C2r'],2)*power(struct['yr'],2)*np.cos(2*struct['alpha']) + 4*power(struct['C3r'],2)*power(struct['yr'],2)*np.cos(2*struct['alpha']) - 4*struct['C1r']*struct['C2r']*struct['xr']*struct['yrf']*np.cos(2*struct['alpha']) + 4*struct['C2r']*struct['C3r']*struct['xr']*struct['yrf']*np.cos(2*struct['alpha']) + 4*struct['C1r']*struct['C2r']*struct['xrf']*struct['yrf']*np.cos(2*struct['alpha']) - 4*struct['C2r']*struct['C3r']*struct['xrf']*struct['yrf']*np.cos(2*struct['alpha']) + 2*power(struct['C2r'],2)*struct['yr']*struct['yrf']*np.cos(2*struct['alpha']) - 8*power(struct['C3r'],2)*struct['yr']*struct['yrf']*np.cos(2*struct['alpha']) - power(struct['C2r'],2)*power(struct['yrf'],2)*np.cos(2*struct['alpha']) + 4*power(struct['C3r'],2)*power(struct['yrf'],2)*np.cos(2*struct['alpha']) + 4*struct['C1r']*struct['C2r']*power(struct['xr'],2)*np.sin(2*struct['alpha']) - 8*struct['C1r']*struct['C2r']*struct['xr']*struct['xrf']*np.sin(2*struct['alpha']) + 4*struct['C1r']*struct['C2r']*power(struct['xrf'],2)*np.sin(2*struct['alpha']) - 2*power(struct['C2r'],2)*struct['xr']*struct['yr']*np.sin(2*struct['alpha']) - 8*struct['C1r']*struct['C3r']*struct['xr']*struct['yr']*np.sin(2*struct['alpha']) + 2*power(struct['C2r'],2)*struct['xrf']*struct['yr']*np.sin(2*struct['alpha']) + 8*struct['C1r']*struct['C3r']*struct['xrf']*struct['yr']*np.sin(2*struct['alpha']) + 4*struct['C2r']*struct['C3r']*power(struct['yr'],2)*np.sin(2*struct['alpha']) + 2*power(struct['C2r'],2)*struct['xr']*struct['yrf']*np.sin(2*struct['alpha']) + 8*struct['C1r']*struct['C3r']*struct['xr']*struct['yrf']*np.sin(2*struct['alpha']) - 2*power(struct['C2r'],2)*struct['xrf']*struct['yrf']*np.sin(2*struct['alpha']) - 8*struct['C1r']*struct['C3r']*struct['xrf']*struct['yrf']*np.sin(2*struct['alpha']) - 8*struct['C2r']*struct['C3r']*struct['yr']*struct['yrf']*np.sin(2*struct['alpha']) + 4*struct['C2r']*struct['C3r']*power(struct['yrf'],2)*np.sin(2*struct['alpha']))/ (4.*(struct['C1r'] + struct['C3r'] + struct['C1r']*np.cos(2*struct['alpha']) - struct['C3r']*np.cos(2*struct['alpha']) - struct['C2r']*np.sin(2*struct['alpha']))))*np.sqrt(np.pi/2.)* special.erfi((complex(0,2)*struct['C1r']*struct['xr']*np.cos(struct['alpha']) - complex(0,2)*struct['C1r']*struct['xrf']*np.cos(struct['alpha']) - complex(0,1)*struct['C2r']*struct['yr']*np.cos(struct['alpha']) + complex(0,1)*struct['C2r']*struct['yrf']*np.cos(struct['alpha']) - complex(0,1)*struct['C2r']*struct['xr']*np.sin(struct['alpha']) + complex(0,1)*struct['C2r']*struct['xrf']*np.sin(struct['alpha']) + complex(0,2)*struct['C3r']*struct['yr']*np.sin(struct['alpha']) - complex(0,2)*struct['C3r']*struct['yrf']*np.sin(struct['alpha']))/ (np.sqrt(2)*np.sqrt(struct['C1r'] + struct['C3r'] + struct['C1r']*np.cos(2*struct['alpha']) - struct['C3r']*np.cos(2*struct['alpha']) - struct['C2r']*np.sin(2*struct['alpha']))))* np.sqrt(struct['C1r'] + struct['C3r'] + struct['C1r']*np.cos(2*struct['alpha']) - struct['C3r']*np.cos(2*struct['alpha']) - struct['C2r']*np.sin(2*struct['alpha']))* (-2*struct['C1r']*struct['xr'] + 2*struct['C1r']*struct['xrf'] + struct['C2r']*struct['yr'] - struct['C2r']*struct['yrf'] - (-8*power(struct['C1r'],2)*struct['xr'] - 2*power(struct['C2r'],2)*struct['xr'] + 8*power(struct['C1r'],2)*struct['xrf'] + 2*power(struct['C2r'],2)*struct['xrf'] + 4*struct['C1r']*struct['C2r']*struct['yr'] + 4*struct['C2r']*struct['C3r']*struct['yr'] - 4*struct['C1r']*struct['C2r']*struct['yrf'] - 4*struct['C2r']*struct['C3r']*struct['yrf'] - 8*power(struct['C1r'],2)*struct['xr']*np.cos(2*struct['alpha']) + 2*power(struct['C2r'],2)*struct['xr']*np.cos(2*struct['alpha']) + 8*power(struct['C1r'],2)*struct['xrf']*np.cos(2*struct['alpha']) - 2*power(struct['C2r'],2)*struct['xrf']*np.cos(2*struct['alpha']) + 4*struct['C1r']*struct['C2r']*struct['yr']*np.cos(2*struct['alpha']) - 4*struct['C2r']*struct['C3r']*struct['yr']*np.cos(2*struct['alpha']) - 4*struct['C1r']*struct['C2r']*struct['yrf']*np.cos(2*struct['alpha']) + 4*struct['C2r']*struct['C3r']*struct['yrf']*np.cos(2*struct['alpha']) + 8*struct['C1r']*struct['C2r']*struct['xr']*np.sin(2*struct['alpha']) - 8*struct['C1r']*struct['C2r']*struct['xrf']*np.sin(2*struct['alpha']) - 2*power(struct['C2r'],2)*struct['yr']*np.sin(2*struct['alpha']) - 8*struct['C1r']*struct['C3r']*struct['yr']*np.sin(2*struct['alpha']) + 2*power(struct['C2r'],2)*struct['yrf']*np.sin(2*struct['alpha']) + 8*struct['C1r']*struct['C3r']*struct['yrf']*np.sin(2*struct['alpha']))/ (4.*(struct['C1r'] + struct['C3r'] + struct['C1r']*np.cos(2*struct['alpha']) - struct['C3r']*np.cos(2*struct['alpha']) - struct['C2r']*np.sin(2*struct['alpha'])))))/ (complex(0,1)*struct['C1r'] + complex(0,1)*struct['C3r'] + complex(0,1)*struct['C1r']*np.cos(2*struct['alpha']) - complex(0,1)*struct['C3r']*np.cos(2*struct['alpha']) - complex(0,1)*struct['C2r']*np.sin(2*struct['alpha'])) + (power(struct['E'],-(struct['C1r']*power(struct['xr'],2)) + 2*struct['C1r']*struct['xr']*struct['xrf'] - struct['C1r']*power(struct['xrf'],2) + struct['C2r']*struct['xr']*struct['yr'] - struct['C2r']*struct['xrf']*struct['yr'] - struct['C3r']*power(struct['yr'],2) - struct['C2r']*struct['xr']*struct['yrf'] + struct['C2r']*struct['xrf']*struct['yrf'] + 2*struct['C3r']*struct['yr']*struct['yrf'] - struct['C3r']*power(struct['yrf'],2) - (-4*power(struct['C1r'],2)*power(struct['xr'],2) - power(struct['C2r'],2)*power(struct['xr'],2) + 8*power(struct['C1r'],2)*struct['xr']*struct['xrf'] + 2*power(struct['C2r'],2)*struct['xr']*struct['xrf'] - 4*power(struct['C1r'],2)*power(struct['xrf'],2) - power(struct['C2r'],2)*power(struct['xrf'],2) + 4*struct['C1r']*struct['C2r']*struct['xr']*struct['yr'] + 4*struct['C2r']*struct['C3r']*struct['xr']*struct['yr'] - 4*struct['C1r']*struct['C2r']*struct['xrf']*struct['yr'] - 4*struct['C2r']*struct['C3r']*struct['xrf']*struct['yr'] - power(struct['C2r'],2)*power(struct['yr'],2) - 4*power(struct['C3r'],2)*power(struct['yr'],2) - 4*struct['C1r']*struct['C2r']*struct['xr']*struct['yrf'] - 4*struct['C2r']*struct['C3r']*struct['xr']*struct['yrf'] + 4*struct['C1r']*struct['C2r']*struct['xrf']*struct['yrf'] + 4*struct['C2r']*struct['C3r']*struct['xrf']*struct['yrf'] + 2*power(struct['C2r'],2)*struct['yr']*struct['yrf'] + 8*power(struct['C3r'],2)*struct['yr']*struct['yrf'] - power(struct['C2r'],2)*power(struct['yrf'],2) - 4*power(struct['C3r'],2)*power(struct['yrf'],2) - 4*power(struct['C1r'],2)*power(struct['xr'],2)*np.cos(2*struct['alpha']) + power(struct['C2r'],2)*power(struct['xr'],2)*np.cos(2*struct['alpha']) + 8*power(struct['C1r'],2)*struct['xr']*struct['xrf']*np.cos(2*struct['alpha']) - 2*power(struct['C2r'],2)*struct['xr']*struct['xrf']*np.cos(2*struct['alpha']) - 4*power(struct['C1r'],2)*power(struct['xrf'],2)*np.cos(2*struct['alpha']) + power(struct['C2r'],2)*power(struct['xrf'],2)*np.cos(2*struct['alpha']) + 4*struct['C1r']*struct['C2r']*struct['xr']*struct['yr']*np.cos(2*struct['alpha']) - 4*struct['C2r']*struct['C3r']*struct['xr']*struct['yr']*np.cos(2*struct['alpha']) - 4*struct['C1r']*struct['C2r']*struct['xrf']*struct['yr']*np.cos(2*struct['alpha']) + 4*struct['C2r']*struct['C3r']*struct['xrf']*struct['yr']*np.cos(2*struct['alpha']) - power(struct['C2r'],2)*power(struct['yr'],2)*np.cos(2*struct['alpha']) + 4*power(struct['C3r'],2)*power(struct['yr'],2)*np.cos(2*struct['alpha']) - 4*struct['C1r']*struct['C2r']*struct['xr']*struct['yrf']*np.cos(2*struct['alpha']) + 4*struct['C2r']*struct['C3r']*struct['xr']*struct['yrf']*np.cos(2*struct['alpha']) + 4*struct['C1r']*struct['C2r']*struct['xrf']*struct['yrf']*np.cos(2*struct['alpha']) - 4*struct['C2r']*struct['C3r']*struct['xrf']*struct['yrf']*np.cos(2*struct['alpha']) + 2*power(struct['C2r'],2)*struct['yr']*struct['yrf']*np.cos(2*struct['alpha']) - 8*power(struct['C3r'],2)*struct['yr']*struct['yrf']*np.cos(2*struct['alpha']) - power(struct['C2r'],2)*power(struct['yrf'],2)*np.cos(2*struct['alpha']) + 4*power(struct['C3r'],2)*power(struct['yrf'],2)*np.cos(2*struct['alpha']) + 4*struct['C1r']*struct['C2r']*power(struct['xr'],2)*np.sin(2*struct['alpha']) - 8*struct['C1r']*struct['C2r']*struct['xr']*struct['xrf']*np.sin(2*struct['alpha']) + 4*struct['C1r']*struct['C2r']*power(struct['xrf'],2)*np.sin(2*struct['alpha']) - 2*power(struct['C2r'],2)*struct['xr']*struct['yr']*np.sin(2*struct['alpha']) - 8*struct['C1r']*struct['C3r']*struct['xr']*struct['yr']*np.sin(2*struct['alpha']) + 2*power(struct['C2r'],2)*struct['xrf']*struct['yr']*np.sin(2*struct['alpha']) + 8*struct['C1r']*struct['C3r']*struct['xrf']*struct['yr']*np.sin(2*struct['alpha']) + 4*struct['C2r']*struct['C3r']*power(struct['yr'],2)*np.sin(2*struct['alpha']) + 2*power(struct['C2r'],2)*struct['xr']*struct['yrf']*np.sin(2*struct['alpha']) + 8*struct['C1r']*struct['C3r']*struct['xr']*struct['yrf']*np.sin(2*struct['alpha']) - 2*power(struct['C2r'],2)*struct['xrf']*struct['yrf']*np.sin(2*struct['alpha']) - 8*struct['C1r']*struct['C3r']*struct['xrf']*struct['yrf']*np.sin(2*struct['alpha']) - 8*struct['C2r']*struct['C3r']*struct['yr']*struct['yrf']*np.sin(2*struct['alpha']) + 4*struct['C2r']*struct['C3r']*power(struct['yrf'],2)*np.sin(2*struct['alpha']))/ (4.*(struct['C1r'] + struct['C3r'] + struct['C1r']*np.cos(2*struct['alpha']) - struct['C3r']*np.cos(2*struct['alpha']) - struct['C2r']*np.sin(2*struct['alpha']))))*np.sqrt(np.pi/2.)* special.erfi((complex(0,1)*struct['C1r']*struct['L'] + complex(0,1)*struct['C3r']*struct['L'] + complex(0,2)*struct['C1r']*struct['xr']*np.cos(struct['alpha']) - complex(0,2)*struct['C1r']*struct['xrf']*np.cos(struct['alpha']) - complex(0,1)*struct['C2r']*struct['yr']*np.cos(struct['alpha']) + complex(0,1)*struct['C2r']*struct['yrf']*np.cos(struct['alpha']) + complex(0,1)*struct['C1r']*struct['L']*np.cos(2*struct['alpha']) - complex(0,1)*struct['C3r']*struct['L']*np.cos(2*struct['alpha']) - complex(0,1)*struct['C2r']*struct['xr']*np.sin(struct['alpha']) + complex(0,1)*struct['C2r']*struct['xrf']*np.sin(struct['alpha']) + complex(0,2)*struct['C3r']*struct['yr']*np.sin(struct['alpha']) - complex(0,2)*struct['C3r']*struct['yrf']*np.sin(struct['alpha']) - complex(0,1)*struct['C2r']*struct['L']*np.sin(2*struct['alpha']))/ (np.sqrt(2)*np.sqrt(struct['C1r'] + struct['C3r'] + struct['C1r']*np.cos(2*struct['alpha']) - struct['C3r']*np.cos(2*struct['alpha']) - struct['C2r']*np.sin(2*struct['alpha']))))* np.sqrt(struct['C1r'] + struct['C3r'] + struct['C1r']*np.cos(2*struct['alpha']) - struct['C3r']*np.cos(2*struct['alpha']) - struct['C2r']*np.sin(2*struct['alpha']))* (-2*struct['C1r']*struct['xr'] + 2*struct['C1r']*struct['xrf'] + struct['C2r']*struct['yr'] - struct['C2r']*struct['yrf'] - (-8*power(struct['C1r'],2)*struct['xr'] - 2*power(struct['C2r'],2)*struct['xr'] + 8*power(struct['C1r'],2)*struct['xrf'] + 2*power(struct['C2r'],2)*struct['xrf'] + 4*struct['C1r']*struct['C2r']*struct['yr'] + 4*struct['C2r']*struct['C3r']*struct['yr'] - 4*struct['C1r']*struct['C2r']*struct['yrf'] - 4*struct['C2r']*struct['C3r']*struct['yrf'] - 8*power(struct['C1r'],2)*struct['xr']*np.cos(2*struct['alpha']) + 2*power(struct['C2r'],2)*struct['xr']*np.cos(2*struct['alpha']) + 8*power(struct['C1r'],2)*struct['xrf']*np.cos(2*struct['alpha']) - 2*power(struct['C2r'],2)*struct['xrf']*np.cos(2*struct['alpha']) + 4*struct['C1r']*struct['C2r']*struct['yr']*np.cos(2*struct['alpha']) - 4*struct['C2r']*struct['C3r']*struct['yr']*np.cos(2*struct['alpha']) - 4*struct['C1r']*struct['C2r']*struct['yrf']*np.cos(2*struct['alpha']) + 4*struct['C2r']*struct['C3r']*struct['yrf']*np.cos(2*struct['alpha']) + 8*struct['C1r']*struct['C2r']*struct['xr']*np.sin(2*struct['alpha']) - 8*struct['C1r']*struct['C2r']*struct['xrf']*np.sin(2*struct['alpha']) - 2*power(struct['C2r'],2)*struct['yr']*np.sin(2*struct['alpha']) - 8*struct['C1r']*struct['C3r']*struct['yr']*np.sin(2*struct['alpha']) + 2*power(struct['C2r'],2)*struct['yrf']*np.sin(2*struct['alpha']) + 8*struct['C1r']*struct['C3r']*struct['yrf']*np.sin(2*struct['alpha']))/ (4.*(struct['C1r'] + struct['C3r'] + struct['C1r']*np.cos(2*struct['alpha']) - struct['C3r']*np.cos(2*struct['alpha']) - struct['C2r']*np.sin(2*struct['alpha'])))))/ (complex(0,1)*struct['C1r'] + complex(0,1)*struct['C3r'] + complex(0,1)*struct['C1r']*np.cos(2*struct['alpha']) - complex(0,1)*struct['C3r']*np.cos(2*struct['alpha']) - complex(0,1)*struct['C2r']*np.sin(2*struct['alpha'])))
return der
def dery(struct):
'''partial wrt y'''
der = struct['C5']*(-((power(struct['E'],-(struct['C1']*power(struct['xlf'],2)) + 2*struct['C1']*struct['xlf']*struct['xr'] - struct['C1']*power(struct['xr'],2) + struct['C2']*struct['xlf']*struct['ylf'] - struct['C2']*struct['xr']*struct['ylf'] - struct['C3']*power(struct['ylf'],2) - struct['C2']*struct['xlf']*struct['yr'] + struct['C2']*struct['xr']*struct['yr'] + 2*struct['C3']*struct['ylf']*struct['yr'] - struct['C3']*power(struct['yr'],2) + power(complex(0,-2)*struct['C1']*struct['xlf']*np.cos(struct['alpha']) + complex(0,2)*struct['C1']*struct['xr']*np.cos(struct['alpha']) + complex(0,1)*struct['C2']*struct['ylf']*np.cos(struct['alpha']) - complex(0,1)*struct['C2']*struct['yr']*np.cos(struct['alpha']) + complex(0,1)*struct['C2']*struct['xlf']*np.sin(struct['alpha']) - complex(0,1)*struct['C2']*struct['xr']*np.sin(struct['alpha']) - complex(0,2)*struct['C3']*struct['ylf']*np.sin(struct['alpha']) + complex(0,2)*struct['C3']*struct['yr']*np.sin(struct['alpha']),2)/ (2.*(struct['C1'] + struct['C3'] + struct['C1']*np.cos(2*struct['alpha']) - struct['C3']*np.cos(2*struct['alpha']) - struct['C2']*np.sin(2*struct['alpha']))) - (-4*power(struct['C1'],2)*power(struct['xlf'],2) - power(struct['C2'],2)*power(struct['xlf'],2) + 8*power(struct['C1'],2)*struct['xlf']*struct['xr'] + 2*power(struct['C2'],2)*struct['xlf']*struct['xr'] - 4*power(struct['C1'],2)*power(struct['xr'],2) - power(struct['C2'],2)*power(struct['xr'],2) + 4*struct['C1']*struct['C2']*struct['xlf']*struct['ylf'] + 4*struct['C2']*struct['C3']*struct['xlf']*struct['ylf'] - 4*struct['C1']*struct['C2']*struct['xr']*struct['ylf'] - 4*struct['C2']*struct['C3']*struct['xr']*struct['ylf'] - power(struct['C2'],2)*power(struct['ylf'],2) - 4*power(struct['C3'],2)*power(struct['ylf'],2) - 4*struct['C1']*struct['C2']*struct['xlf']*struct['yr'] - 4*struct['C2']*struct['C3']*struct['xlf']*struct['yr'] + 4*struct['C1']*struct['C2']*struct['xr']*struct['yr'] + 4*struct['C2']*struct['C3']*struct['xr']*struct['yr'] + 2*power(struct['C2'],2)*struct['ylf']*struct['yr'] + 8*power(struct['C3'],2)*struct['ylf']*struct['yr'] - power(struct['C2'],2)*power(struct['yr'],2) - 4*power(struct['C3'],2)*power(struct['yr'],2) - 4*power(struct['C1'],2)*power(struct['xlf'],2)*np.cos(2*struct['alpha']) + power(struct['C2'],2)*power(struct['xlf'],2)*np.cos(2*struct['alpha']) + 8*power(struct['C1'],2)*struct['xlf']*struct['xr']*np.cos(2*struct['alpha']) - 2*power(struct['C2'],2)*struct['xlf']*struct['xr']*np.cos(2*struct['alpha']) - 4*power(struct['C1'],2)*power(struct['xr'],2)*np.cos(2*struct['alpha']) + power(struct['C2'],2)*power(struct['xr'],2)*np.cos(2*struct['alpha']) + 4*struct['C1']*struct['C2']*struct['xlf']*struct['ylf']*np.cos(2*struct['alpha']) - 4*struct['C2']*struct['C3']*struct['xlf']*struct['ylf']*np.cos(2*struct['alpha']) - 4*struct['C1']*struct['C2']*struct['xr']*struct['ylf']*np.cos(2*struct['alpha']) + 4*struct['C2']*struct['C3']*struct['xr']*struct['ylf']*np.cos(2*struct['alpha']) - power(struct['C2'],2)*power(struct['ylf'],2)*np.cos(2*struct['alpha']) + 4*power(struct['C3'],2)*power(struct['ylf'],2)*np.cos(2*struct['alpha']) - 4*struct['C1']*struct['C2']*struct['xlf']*struct['yr']*np.cos(2*struct['alpha']) + 4*struct['C2']*struct['C3']*struct['xlf']*struct['yr']*np.cos(2*struct['alpha']) + 4*struct['C1']*struct['C2']*struct['xr']*struct['yr']*np.cos(2*struct['alpha']) - 4*struct['C2']*struct['C3']*struct['xr']*struct['yr']*np.cos(2*struct['alpha']) + 2*power(struct['C2'],2)*struct['ylf']*struct['yr']*np.cos(2*struct['alpha']) - 8*power(struct['C3'],2)*struct['ylf']*struct['yr']*np.cos(2*struct['alpha']) - power(struct['C2'],2)*power(struct['yr'],2)*np.cos(2*struct['alpha']) + 4*power(struct['C3'],2)*power(struct['yr'],2)*np.cos(2*struct['alpha']) + 4*struct['C1']*struct['C2']*power(struct['xlf'],2)*np.sin(2*struct['alpha']) - 8*struct['C1']*struct['C2']*struct['xlf']*struct['xr']*np.sin(2*struct['alpha']) + 4*struct['C1']*struct['C2']*power(struct['xr'],2)*np.sin(2*struct['alpha']) - 2*power(struct['C2'],2)*struct['xlf']*struct['ylf']*np.sin(2*struct['alpha']) - 8*struct['C1']*struct['C3']*struct['xlf']*struct['ylf']*np.sin(2*struct['alpha']) + 2*power(struct['C2'],2)*struct['xr']*struct['ylf']*np.sin(2*struct['alpha']) + 8*struct['C1']*struct['C3']*struct['xr']*struct['ylf']*np.sin(2*struct['alpha']) + 4*struct['C2']*struct['C3']*power(struct['ylf'],2)*np.sin(2*struct['alpha']) + 2*power(struct['C2'],2)*struct['xlf']*struct['yr']*np.sin(2*struct['alpha']) + 8*struct['C1']*struct['C3']*struct['xlf']*struct['yr']*np.sin(2*struct['alpha']) - 2*power(struct['C2'],2)*struct['xr']*struct['yr']*np.sin(2*struct['alpha']) - 8*struct['C1']*struct['C3']*struct['xr']*struct['yr']*np.sin(2*struct['alpha']) - 8*struct['C2']*struct['C3']*struct['ylf']*struct['yr']*np.sin(2*struct['alpha']) + 4*struct['C2']*struct['C3']*power(struct['yr'],2)*np.sin(2*struct['alpha']))/ (4.*(struct['C1'] + struct['C3'] + struct['C1']*np.cos(2*struct['alpha']) - struct['C3']*np.cos(2*struct['alpha']) - struct['C2']*np.sin(2*struct['alpha']))))* (complex(0,-1)*struct['C2']*np.cos(struct['alpha']) + complex(0,2)*struct['C3']*np.sin(struct['alpha'])))/ (complex(0,1)*struct['C1'] + complex(0,1)*struct['C3'] + complex(0,1)*struct['C1']*np.cos(2*struct['alpha']) - complex(0,1)*struct['C3']*np.cos(2*struct['alpha']) - complex(0,1)*struct['C2']*np.sin(2*struct['alpha']))) + (power(struct['E'],-(struct['C1']*power(struct['xlf'],2)) + 2*struct['C1']*struct['xlf']*struct['xr'] - struct['C1']*power(struct['xr'],2) + struct['C2']*struct['xlf']*struct['ylf'] - struct['C2']*struct['xr']*struct['ylf'] - struct['C3']*power(struct['ylf'],2) - struct['C2']*struct['xlf']*struct['yr'] + struct['C2']*struct['xr']*struct['yr'] + 2*struct['C3']*struct['ylf']*struct['yr'] - struct['C3']*power(struct['yr'],2) + power(complex(0,1)*struct['C1']*struct['L'] + complex(0,1)*struct['C3']*struct['L'] - complex(0,2)*struct['C1']*struct['xlf']*np.cos(struct['alpha']) + complex(0,2)*struct['C1']*struct['xr']*np.cos(struct['alpha']) + complex(0,1)*struct['C2']*struct['ylf']*np.cos(struct['alpha']) - complex(0,1)*struct['C2']*struct['yr']*np.cos(struct['alpha']) + complex(0,1)*struct['C1']*struct['L']*np.cos(2*struct['alpha']) - complex(0,1)*struct['C3']*struct['L']*np.cos(2*struct['alpha']) + complex(0,1)*struct['C2']*struct['xlf']*np.sin(struct['alpha']) - complex(0,1)*struct['C2']*struct['xr']*np.sin(struct['alpha']) - complex(0,2)*struct['C3']*struct['ylf']*np.sin(struct['alpha']) + complex(0,2)*struct['C3']*struct['yr']*np.sin(struct['alpha']) - complex(0,1)*struct['C2']*struct['L']*np.sin(2*struct['alpha']),2)/ (2.*(struct['C1'] + struct['C3'] + struct['C1']*np.cos(2*struct['alpha']) - struct['C3']*np.cos(2*struct['alpha']) - struct['C2']*np.sin(2*struct['alpha']))) - (-4*power(struct['C1'],2)*power(struct['xlf'],2) - power(struct['C2'],2)*power(struct['xlf'],2) + 8*power(struct['C1'],2)*struct['xlf']*struct['xr'] + 2*power(struct['C2'],2)*struct['xlf']*struct['xr'] - 4*power(struct['C1'],2)*power(struct['xr'],2) - power(struct['C2'],2)*power(struct['xr'],2) + 4*struct['C1']*struct['C2']*struct['xlf']*struct['ylf'] + 4*struct['C2']*struct['C3']*struct['xlf']*struct['ylf'] - 4*struct['C1']*struct['C2']*struct['xr']*struct['ylf'] - 4*struct['C2']*struct['C3']*struct['xr']*struct['ylf'] - power(struct['C2'],2)*power(struct['ylf'],2) - 4*power(struct['C3'],2)*power(struct['ylf'],2) - 4*struct['C1']*struct['C2']*struct['xlf']*struct['yr'] - 4*struct['C2']*struct['C3']*struct['xlf']*struct['yr'] + 4*struct['C1']*struct['C2']*struct['xr']*struct['yr'] + 4*struct['C2']*struct['C3']*struct['xr']*struct['yr'] + 2*power(struct['C2'],2)*struct['ylf']*struct['yr'] + 8*power(struct['C3'],2)*struct['ylf']*struct['yr'] - power(struct['C2'],2)*power(struct['yr'],2) - 4*power(struct['C3'],2)*power(struct['yr'],2) - 4*power(struct['C1'],2)*power(struct['xlf'],2)*np.cos(2*struct['alpha']) + power(struct['C2'],2)*power(struct['xlf'],2)*np.cos(2*struct['alpha']) + 8*power(struct['C1'],2)*struct['xlf']*struct['xr']*np.cos(2*struct['alpha']) - 2*power(struct['C2'],2)*struct['xlf']*struct['xr']*np.cos(2*struct['alpha']) - 4*power(struct['C1'],2)*power(struct['xr'],2)*np.cos(2*struct['alpha']) + power(struct['C2'],2)*power(struct['xr'],2)*np.cos(2*struct['alpha']) + 4*struct['C1']*struct['C2']*struct['xlf']*struct['ylf']*np.cos(2*struct['alpha']) - 4*struct['C2']*struct['C3']*struct['xlf']*struct['ylf']*np.cos(2*struct['alpha']) - 4*struct['C1']*struct['C2']*struct['xr']*struct['ylf']*np.cos(2*struct['alpha']) + 4*struct['C2']*struct['C3']*struct['xr']*struct['ylf']*np.cos(2*struct['alpha']) - power(struct['C2'],2)*power(struct['ylf'],2)*np.cos(2*struct['alpha']) + 4*power(struct['C3'],2)*power(struct['ylf'],2)*np.cos(2*struct['alpha']) - 4*struct['C1']*struct['C2']*struct['xlf']*struct['yr']*np.cos(2*struct['alpha']) + 4*struct['C2']*struct['C3']*struct['xlf']*struct['yr']*np.cos(2*struct['alpha']) + 4*struct['C1']*struct['C2']*struct['xr']*struct['yr']*np.cos(2*struct['alpha']) - 4*struct['C2']*struct['C3']*struct['xr']*struct['yr']*np.cos(2*struct['alpha']) + 2*power(struct['C2'],2)*struct['ylf']*struct['yr']*np.cos(2*struct['alpha']) - 8*power(struct['C3'],2)*struct['ylf']*struct['yr']*np.cos(2*struct['alpha']) - power(struct['C2'],2)*power(struct['yr'],2)*np.cos(2*struct['alpha']) + 4*power(struct['C3'],2)*power(struct['yr'],2)*np.cos(2*struct['alpha']) + 4*struct['C1']*struct['C2']*power(struct['xlf'],2)*np.sin(2*struct['alpha']) - 8*struct['C1']*struct['C2']*struct['xlf']*struct['xr']*np.sin(2*struct['alpha']) + 4*struct['C1']*struct['C2']*power(struct['xr'],2)*np.sin(2*struct['alpha']) - 2*power(struct['C2'],2)*struct['xlf']*struct['ylf']*np.sin(2*struct['alpha']) - 8*struct['C1']*struct['C3']*struct['xlf']*struct['ylf']*np.sin(2*struct['alpha']) + 2*power(struct['C2'],2)*struct['xr']*struct['ylf']*np.sin(2*struct['alpha']) + 8*struct['C1']*struct['C3']*struct['xr']*struct['ylf']*np.sin(2*struct['alpha']) + 4*struct['C2']*struct['C3']*power(struct['ylf'],2)*np.sin(2*struct['alpha']) + 2*power(struct['C2'],2)*struct['xlf']*struct['yr']*np.sin(2*struct['alpha']) + 8*struct['C1']*struct['C3']*struct['xlf']*struct['yr']*np.sin(2*struct['alpha']) - 2*power(struct['C2'],2)*struct['xr']*struct['yr']*np.sin(2*struct['alpha']) - 8*struct['C1']*struct['C3']*struct['xr']*struct['yr']*np.sin(2*struct['alpha']) - 8*struct['C2']*struct['C3']*struct['ylf']*struct['yr']*np.sin(2*struct['alpha']) + 4*struct['C2']*struct['C3']*power(struct['yr'],2)*np.sin(2*struct['alpha']))/ (4.*(struct['C1'] + struct['C3'] + struct['C1']*np.cos(2*struct['alpha']) - struct['C3']*np.cos(2*struct['alpha']) - struct['C2']*np.sin(2*struct['alpha']))))* (complex(0,-1)*struct['C2']*np.cos(struct['alpha']) + complex(0,2)*struct['C3']*np.sin(struct['alpha'])) )/(complex(0,1)*struct['C1'] + complex(0,1)*struct['C3'] + complex(0,1)*struct['C1']*np.cos(2*struct['alpha']) - complex(0,1)*struct['C3']*np.cos(2*struct['alpha']) - complex(0,1)*struct['C2']*np.sin(2*struct['alpha'])) - (power(struct['E'],-(struct['C1']*power(struct['xlf'],2)) + 2*struct['C1']*struct['xlf']*struct['xr'] - struct['C1']*power(struct['xr'],2) + struct['C2']*struct['xlf']*struct['ylf'] - struct['C2']*struct['xr']*struct['ylf'] - struct['C3']*power(struct['ylf'],2) - struct['C2']*struct['xlf']*struct['yr'] + struct['C2']*struct['xr']*struct['yr'] + 2*struct['C3']*struct['ylf']*struct['yr'] - struct['C3']*power(struct['yr'],2) - (-4*power(struct['C1'],2)*power(struct['xlf'],2) - power(struct['C2'],2)*power(struct['xlf'],2) + 8*power(struct['C1'],2)*struct['xlf']*struct['xr'] + 2*power(struct['C2'],2)*struct['xlf']*struct['xr'] - 4*power(struct['C1'],2)*power(struct['xr'],2) - power(struct['C2'],2)*power(struct['xr'],2) + 4*struct['C1']*struct['C2']*struct['xlf']*struct['ylf'] + 4*struct['C2']*struct['C3']*struct['xlf']*struct['ylf'] - 4*struct['C1']*struct['C2']*struct['xr']*struct['ylf'] - 4*struct['C2']*struct['C3']*struct['xr']*struct['ylf'] - power(struct['C2'],2)*power(struct['ylf'],2) - 4*power(struct['C3'],2)*power(struct['ylf'],2) - 4*struct['C1']*struct['C2']*struct['xlf']*struct['yr'] - 4*struct['C2']*struct['C3']*struct['xlf']*struct['yr'] + 4*struct['C1']*struct['C2']*struct['xr']*struct['yr'] + 4*struct['C2']*struct['C3']*struct['xr']*struct['yr'] + 2*power(struct['C2'],2)*struct['ylf']*struct['yr'] + 8*power(struct['C3'],2)*struct['ylf']*struct['yr'] - power(struct['C2'],2)*power(struct['yr'],2) - 4*power(struct['C3'],2)*power(struct['yr'],2) - 4*power(struct['C1'],2)*power(struct['xlf'],2)*np.cos(2*struct['alpha']) + power(struct['C2'],2)*power(struct['xlf'],2)*np.cos(2*struct['alpha']) + 8*power(struct['C1'],2)*struct['xlf']*struct['xr']*np.cos(2*struct['alpha']) - 2*power(struct['C2'],2)*struct['xlf']*struct['xr']*np.cos(2*struct['alpha']) - 4*power(struct['C1'],2)*power(struct['xr'],2)*np.cos(2*struct['alpha']) + power(struct['C2'],2)*power(struct['xr'],2)*np.cos(2*struct['alpha']) + 4*struct['C1']*struct['C2']*struct['xlf']*struct['ylf']*np.cos(2*struct['alpha']) - 4*struct['C2']*struct['C3']*struct['xlf']*struct['ylf']*np.cos(2*struct['alpha']) - 4*struct['C1']*struct['C2']*struct['xr']*struct['ylf']*np.cos(2*struct['alpha']) + 4*struct['C2']*struct['C3']*struct['xr']*struct['ylf']*np.cos(2*struct['alpha']) - power(struct['C2'],2)*power(struct['ylf'],2)*np.cos(2*struct['alpha']) + 4*power(struct['C3'],2)*power(struct['ylf'],2)*np.cos(2*struct['alpha']) - 4*struct['C1']*struct['C2']*struct['xlf']*struct['yr']*np.cos(2*struct['alpha']) + 4*struct['C2']*struct['C3']*struct['xlf']*struct['yr']*np.cos(2*struct['alpha']) + 4*struct['C1']*struct['C2']*struct['xr']*struct['yr']*np.cos(2*struct['alpha']) - 4*struct['C2']*struct['C3']*struct['xr']*struct['yr']*np.cos(2*struct['alpha']) + 2*power(struct['C2'],2)*struct['ylf']*struct['yr']*np.cos(2*struct['alpha']) - 8*power(struct['C3'],2)*struct['ylf']*struct['yr']*np.cos(2*struct['alpha']) - power(struct['C2'],2)*power(struct['yr'],2)*np.cos(2*struct['alpha']) + 4*power(struct['C3'],2)*power(struct['yr'],2)*np.cos(2*struct['alpha']) + 4*struct['C1']*struct['C2']*power(struct['xlf'],2)*np.sin(2*struct['alpha']) - 8*struct['C1']*struct['C2']*struct['xlf']*struct['xr']*np.sin(2*struct['alpha']) + 4*struct['C1']*struct['C2']*power(struct['xr'],2)*np.sin(2*struct['alpha']) - 2*power(struct['C2'],2)*struct['xlf']*struct['ylf']*np.sin(2*struct['alpha']) - 8*struct['C1']*struct['C3']*struct['xlf']*struct['ylf']*np.sin(2*struct['alpha']) + 2*power(struct['C2'],2)*struct['xr']*struct['ylf']*np.sin(2*struct['alpha']) + 8*struct['C1']*struct['C3']*struct['xr']*struct['ylf']*np.sin(2*struct['alpha']) + 4*struct['C2']*struct['C3']*power(struct['ylf'],2)*np.sin(2*struct['alpha']) + 2*power(struct['C2'],2)*struct['xlf']*struct['yr']*np.sin(2*struct['alpha']) + 8*struct['C1']*struct['C3']*struct['xlf']*struct['yr']*np.sin(2*struct['alpha']) - 2*power(struct['C2'],2)*struct['xr']*struct['yr']*np.sin(2*struct['alpha']) - 8*struct['C1']*struct['C3']*struct['xr']*struct['yr']*np.sin(2*struct['alpha']) - 8*struct['C2']*struct['C3']*struct['ylf']*struct['yr']*np.sin(2*struct['alpha']) + 4*struct['C2']*struct['C3']*power(struct['yr'],2)*np.sin(2*struct['alpha']))/ (4.*(struct['C1'] + struct['C3'] + struct['C1']*np.cos(2*struct['alpha']) - struct['C3']*np.cos(2*struct['alpha']) - struct['C2']*np.sin(2*struct['alpha']))))*np.sqrt(np.pi/2.)* special.erfi((complex(0,-2)*struct['C1']*struct['xlf']*np.cos(struct['alpha']) + complex(0,2)*struct['C1']*struct['xr']*np.cos(struct['alpha']) + complex(0,1)*struct['C2']*struct['ylf']*np.cos(struct['alpha']) - complex(0,1)*struct['C2']*struct['yr']*np.cos(struct['alpha']) + complex(0,1)*struct['C2']*struct['xlf']*np.sin(struct['alpha']) - complex(0,1)*struct['C2']*struct['xr']*np.sin(struct['alpha']) - complex(0,2)*struct['C3']*struct['ylf']*np.sin(struct['alpha']) + complex(0,2)*struct['C3']*struct['yr']*np.sin(struct['alpha']))/ (np.sqrt(2)*np.sqrt(struct['C1'] + struct['C3'] + struct['C1']*np.cos(2*struct['alpha']) - struct['C3']*np.cos(2*struct['alpha']) - struct['C2']*np.sin(2*struct['alpha']))))* np.sqrt(struct['C1'] + struct['C3'] + struct['C1']*np.cos(2*struct['alpha']) - struct['C3']*np.cos(2*struct['alpha']) - struct['C2']*np.sin(2*struct['alpha']))* (-(struct['C2']*struct['xlf']) + struct['C2']*struct['xr'] + 2*struct['C3']*struct['ylf'] - 2*struct['C3']*struct['yr'] - (-4*struct['C1']*struct['C2']*struct['xlf'] - 4*struct['C2']*struct['C3']*struct['xlf'] + 4*struct['C1']*struct['C2']*struct['xr'] + 4*struct['C2']*struct['C3']*struct['xr'] + 2*power(struct['C2'],2)*struct['ylf'] + 8*power(struct['C3'],2)*struct['ylf'] - 2*power(struct['C2'],2)*struct['yr'] - 8*power(struct['C3'],2)*struct['yr'] - 4*struct['C1']*struct['C2']*struct['xlf']*np.cos(2*struct['alpha']) + 4*struct['C2']*struct['C3']*struct['xlf']*np.cos(2*struct['alpha']) + 4*struct['C1']*struct['C2']*struct['xr']*np.cos(2*struct['alpha']) - 4*struct['C2']*struct['C3']*struct['xr']*np.cos(2*struct['alpha']) + 2*power(struct['C2'],2)*struct['ylf']*np.cos(2*struct['alpha']) - 8*power(struct['C3'],2)*struct['ylf']*np.cos(2*struct['alpha']) - 2*power(struct['C2'],2)*struct['yr']*np.cos(2*struct['alpha']) + 8*power(struct['C3'],2)*struct['yr']*np.cos(2*struct['alpha']) + 2*power(struct['C2'],2)*struct['xlf']*np.sin(2*struct['alpha']) + 8*struct['C1']*struct['C3']*struct['xlf']*np.sin(2*struct['alpha']) - 2*power(struct['C2'],2)*struct['xr']*np.sin(2*struct['alpha']) - 8*struct['C1']*struct['C3']*struct['xr']*np.sin(2*struct['alpha']) - 8*struct['C2']*struct['C3']*struct['ylf']*np.sin(2*struct['alpha']) + 8*struct['C2']*struct['C3']*struct['yr']*np.sin(2*struct['alpha']))/ (4.*(struct['C1'] + struct['C3'] + struct['C1']*np.cos(2*struct['alpha']) - struct['C3']*np.cos(2*struct['alpha']) - struct['C2']*np.sin(2*struct['alpha'])))))/ (complex(0,1)*struct['C1'] + complex(0,1)*struct['C3'] + complex(0,1)*struct['C1']*np.cos(2*struct['alpha']) - complex(0,1)*struct['C3']*np.cos(2*struct['alpha']) - complex(0,1)*struct['C2']*np.sin(2*struct['alpha'])) + (power(struct['E'],-(struct['C1']*power(struct['xlf'],2)) + 2*struct['C1']*struct['xlf']*struct['xr'] - struct['C1']*power(struct['xr'],2) + struct['C2']*struct['xlf']*struct['ylf'] - struct['C2']*struct['xr']*struct['ylf'] - struct['C3']*power(struct['ylf'],2) - struct['C2']*struct['xlf']*struct['yr'] + struct['C2']*struct['xr']*struct['yr'] + 2*struct['C3']*struct['ylf']*struct['yr'] - struct['C3']*power(struct['yr'],2) - (-4*power(struct['C1'],2)*power(struct['xlf'],2) - power(struct['C2'],2)*power(struct['xlf'],2) + 8*power(struct['C1'],2)*struct['xlf']*struct['xr'] + 2*power(struct['C2'],2)*struct['xlf']*struct['xr'] - 4*power(struct['C1'],2)*power(struct['xr'],2) - power(struct['C2'],2)*power(struct['xr'],2) + 4*struct['C1']*struct['C2']*struct['xlf']*struct['ylf'] + 4*struct['C2']*struct['C3']*struct['xlf']*struct['ylf'] - 4*struct['C1']*struct['C2']*struct['xr']*struct['ylf'] - 4*struct['C2']*struct['C3']*struct['xr']*struct['ylf'] - power(struct['C2'],2)*power(struct['ylf'],2) - 4*power(struct['C3'],2)*power(struct['ylf'],2) - 4*struct['C1']*struct['C2']*struct['xlf']*struct['yr'] - 4*struct['C2']*struct['C3']*struct['xlf']*struct['yr'] + 4*struct['C1']*struct['C2']*struct['xr']*struct['yr'] + 4*struct['C2']*struct['C3']*struct['xr']*struct['yr'] + 2*power(struct['C2'],2)*struct['ylf']*struct['yr'] + 8*power(struct['C3'],2)*struct['ylf']*struct['yr'] - power(struct['C2'],2)*power(struct['yr'],2) - 4*power(struct['C3'],2)*power(struct['yr'],2) - 4*power(struct['C1'],2)*power(struct['xlf'],2)*np.cos(2*struct['alpha']) + power(struct['C2'],2)*power(struct['xlf'],2)*np.cos(2*struct['alpha']) + 8*power(struct['C1'],2)*struct['xlf']*struct['xr']*np.cos(2*struct['alpha']) - 2*power(struct['C2'],2)*struct['xlf']*struct['xr']*np.cos(2*struct['alpha']) - 4*power(struct['C1'],2)*power(struct['xr'],2)*np.cos(2*struct['alpha']) + power(struct['C2'],2)*power(struct['xr'],2)*np.cos(2*struct['alpha']) + 4*struct['C1']*struct['C2']*struct['xlf']*struct['ylf']*np.cos(2*struct['alpha']) - 4*struct['C2']*struct['C3']*struct['xlf']*struct['ylf']*np.cos(2*struct['alpha']) - 4*struct['C1']*struct['C2']*struct['xr']*struct['ylf']*np.cos(2*struct['alpha']) + 4*struct['C2']*struct['C3']*struct['xr']*struct['ylf']*np.cos(2*struct['alpha']) - power(struct['C2'],2)*power(struct['ylf'],2)*np.cos(2*struct['alpha']) + 4*power(struct['C3'],2)*power(struct['ylf'],2)*np.cos(2*struct['alpha']) - 4*struct['C1']*struct['C2']*struct['xlf']*struct['yr']*np.cos(2*struct['alpha']) + 4*struct['C2']*struct['C3']*struct['xlf']*struct['yr']*np.cos(2*struct['alpha']) + 4*struct['C1']*struct['C2']*struct['xr']*struct['yr']*np.cos(2*struct['alpha']) - 4*struct['C2']*struct['C3']*struct['xr']*struct['yr']*np.cos(2*struct['alpha']) + 2*power(struct['C2'],2)*struct['ylf']*struct['yr']*np.cos(2*struct['alpha']) - 8*power(struct['C3'],2)*struct['ylf']*struct['yr']*np.cos(2*struct['alpha']) - power(struct['C2'],2)*power(struct['yr'],2)*np.cos(2*struct['alpha']) + 4*power(struct['C3'],2)*power(struct['yr'],2)*np.cos(2*struct['alpha']) + 4*struct['C1']*struct['C2']*power(struct['xlf'],2)*np.sin(2*struct['alpha']) - 8*struct['C1']*struct['C2']*struct['xlf']*struct['xr']*np.sin(2*struct['alpha']) + 4*struct['C1']*struct['C2']*power(struct['xr'],2)*np.sin(2*struct['alpha']) - 2*power(struct['C2'],2)*struct['xlf']*struct['ylf']*np.sin(2*struct['alpha']) - 8*struct['C1']*struct['C3']*struct['xlf']*struct['ylf']*np.sin(2*struct['alpha']) + 2*power(struct['C2'],2)*struct['xr']*struct['ylf']*np.sin(2*struct['alpha']) + 8*struct['C1']*struct['C3']*struct['xr']*struct['ylf']*np.sin(2*struct['alpha']) + 4*struct['C2']*struct['C3']*power(struct['ylf'],2)*np.sin(2*struct['alpha']) + 2*power(struct['C2'],2)*struct['xlf']*struct['yr']*np.sin(2*struct['alpha']) + 8*struct['C1']*struct['C3']*struct['xlf']*struct['yr']*np.sin(2*struct['alpha']) - 2*power(struct['C2'],2)*struct['xr']*struct['yr']*np.sin(2*struct['alpha']) - 8*struct['C1']*struct['C3']*struct['xr']*struct['yr']*np.sin(2*struct['alpha']) - 8*struct['C2']*struct['C3']*struct['ylf']*struct['yr']*np.sin(2*struct['alpha']) + 4*struct['C2']*struct['C3']*power(struct['yr'],2)*np.sin(2*struct['alpha']))/ (4.*(struct['C1'] + struct['C3'] + struct['C1']*np.cos(2*struct['alpha']) - struct['C3']*np.cos(2*struct['alpha']) - struct['C2']*np.sin(2*struct['alpha']))))*np.sqrt(np.pi/2.)* special.erfi((complex(0,1)*struct['C1']*struct['L'] + complex(0,1)*struct['C3']*struct['L'] - complex(0,2)*struct['C1']*struct['xlf']*np.cos(struct['alpha']) + complex(0,2)*struct['C1']*struct['xr']*np.cos(struct['alpha']) + complex(0,1)*struct['C2']*struct['ylf']*np.cos(struct['alpha']) - complex(0,1)*struct['C2']*struct['yr']*np.cos(struct['alpha']) + complex(0,1)*struct['C1']*struct['L']*np.cos(2*struct['alpha']) - complex(0,1)*struct['C3']*struct['L']*np.cos(2*struct['alpha']) + complex(0,1)*struct['C2']*struct['xlf']*np.sin(struct['alpha']) - complex(0,1)*struct['C2']*struct['xr']*np.sin(struct['alpha']) - complex(0,2)*struct['C3']*struct['ylf']*np.sin(struct['alpha']) + complex(0,2)*struct['C3']*struct['yr']*np.sin(struct['alpha']) - complex(0,1)*struct['C2']*struct['L']*np.sin(2*struct['alpha']))/ (np.sqrt(2)*np.sqrt(struct['C1'] + struct['C3'] + struct['C1']*np.cos(2*struct['alpha']) - struct['C3']*np.cos(2*struct['alpha']) - struct['C2']*np.sin(2*struct['alpha']))))* np.sqrt(struct['C1'] + struct['C3'] + struct['C1']*np.cos(2*struct['alpha']) - struct['C3']*np.cos(2*struct['alpha']) - struct['C2']*np.sin(2*struct['alpha']))* (-(struct['C2']*struct['xlf']) + struct['C2']*struct['xr'] + 2*struct['C3']*struct['ylf'] - 2*struct['C3']*struct['yr'] - (-4*struct['C1']*struct['C2']*struct['xlf'] - 4*struct['C2']*struct['C3']*struct['xlf'] + 4*struct['C1']*struct['C2']*struct['xr'] + 4*struct['C2']*struct['C3']*struct['xr'] + 2*power(struct['C2'],2)*struct['ylf'] + 8*power(struct['C3'],2)*struct['ylf'] - 2*power(struct['C2'],2)*struct['yr'] - 8*power(struct['C3'],2)*struct['yr'] - 4*struct['C1']*struct['C2']*struct['xlf']*np.cos(2*struct['alpha']) + 4*struct['C2']*struct['C3']*struct['xlf']*np.cos(2*struct['alpha']) + 4*struct['C1']*struct['C2']*struct['xr']*np.cos(2*struct['alpha']) - 4*struct['C2']*struct['C3']*struct['xr']*np.cos(2*struct['alpha']) + 2*power(struct['C2'],2)*struct['ylf']*np.cos(2*struct['alpha']) - 8*power(struct['C3'],2)*struct['ylf']*np.cos(2*struct['alpha']) - 2*power(struct['C2'],2)*struct['yr']*np.cos(2*struct['alpha']) + 8*power(struct['C3'],2)*struct['yr']*np.cos(2*struct['alpha']) + 2*power(struct['C2'],2)*struct['xlf']*np.sin(2*struct['alpha']) + 8*struct['C1']*struct['C3']*struct['xlf']*np.sin(2*struct['alpha']) - 2*power(struct['C2'],2)*struct['xr']*np.sin(2*struct['alpha']) - 8*struct['C1']*struct['C3']*struct['xr']*np.sin(2*struct['alpha']) - 8*struct['C2']*struct['C3']*struct['ylf']*np.sin(2*struct['alpha']) + 8*struct['C2']*struct['C3']*struct['yr']*np.sin(2*struct['alpha']))/ (4.*(struct['C1'] + struct['C3'] + struct['C1']*np.cos(2*struct['alpha']) - struct['C3']*np.cos(2*struct['alpha']) - struct['C2']*np.sin(2*struct['alpha'])))))/ (complex(0,1)*struct['C1'] + complex(0,1)*struct['C3'] + complex(0,1)*struct['C1']*np.cos(2*struct['alpha']) - complex(0,1)*struct['C3']*np.cos(2*struct['alpha']) - complex(0,1)*struct['C2']*np.sin(2*struct['alpha']))) + struct['C5r']*(-((power(struct['E'],-(struct['C1r']*power(struct['xr'],2)) + 2*struct['C1r']*struct['xr']*struct['xrf'] - struct['C1r']*power(struct['xrf'],2) + struct['C2r']*struct['xr']*struct['yr'] - struct['C2r']*struct['xrf']*struct['yr'] - struct['C3r']*power(struct['yr'],2) - struct['C2r']*struct['xr']*struct['yrf'] + struct['C2r']*struct['xrf']*struct['yrf'] + 2*struct['C3r']*struct['yr']*struct['yrf'] - struct['C3r']*power(struct['yrf'],2) + power(complex(0,2)*struct['C1r']*struct['xr']*np.cos(struct['alpha']) - complex(0,2)*struct['C1r']*struct['xrf']*np.cos(struct['alpha']) - complex(0,1)*struct['C2r']*struct['yr']*np.cos(struct['alpha']) + complex(0,1)*struct['C2r']*struct['yrf']*np.cos(struct['alpha']) - complex(0,1)*struct['C2r']*struct['xr']*np.sin(struct['alpha']) + complex(0,1)*struct['C2r']*struct['xrf']*np.sin(struct['alpha']) + complex(0,2)*struct['C3r']*struct['yr']*np.sin(struct['alpha']) - complex(0,2)*struct['C3r']*struct['yrf']*np.sin(struct['alpha']),2)/ (2.*(struct['C1r'] + struct['C3r'] + struct['C1r']*np.cos(2*struct['alpha']) - struct['C3r']*np.cos(2*struct['alpha']) - struct['C2r']*np.sin(2*struct['alpha']))) - (-4*power(struct['C1r'],2)*power(struct['xr'],2) - power(struct['C2r'],2)*power(struct['xr'],2) + 8*power(struct['C1r'],2)*struct['xr']*struct['xrf'] + 2*power(struct['C2r'],2)*struct['xr']*struct['xrf'] - 4*power(struct['C1r'],2)*power(struct['xrf'],2) - power(struct['C2r'],2)*power(struct['xrf'],2) + 4*struct['C1r']*struct['C2r']*struct['xr']*struct['yr'] + 4*struct['C2r']*struct['C3r']*struct['xr']*struct['yr'] - 4*struct['C1r']*struct['C2r']*struct['xrf']*struct['yr'] - 4*struct['C2r']*struct['C3r']*struct['xrf']*struct['yr'] - power(struct['C2r'],2)*power(struct['yr'],2) - 4*power(struct['C3r'],2)*power(struct['yr'],2) - 4*struct['C1r']*struct['C2r']*struct['xr']*struct['yrf'] - 4*struct['C2r']*struct['C3r']*struct['xr']*struct['yrf'] + 4*struct['C1r']*struct['C2r']*struct['xrf']*struct['yrf'] + 4*struct['C2r']*struct['C3r']*struct['xrf']*struct['yrf'] + 2*power(struct['C2r'],2)*struct['yr']*struct['yrf'] + 8*power(struct['C3r'],2)*struct['yr']*struct['yrf'] - power(struct['C2r'],2)*power(struct['yrf'],2) - 4*power(struct['C3r'],2)*power(struct['yrf'],2) - 4*power(struct['C1r'],2)*power(struct['xr'],2)*np.cos(2*struct['alpha']) + power(struct['C2r'],2)*power(struct['xr'],2)*np.cos(2*struct['alpha']) + 8*power(struct['C1r'],2)*struct['xr']*struct['xrf']*np.cos(2*struct['alpha']) - 2*power(struct['C2r'],2)*struct['xr']*struct['xrf']*np.cos(2*struct['alpha']) - 4*power(struct['C1r'],2)*power(struct['xrf'],2)*np.cos(2*struct['alpha']) + power(struct['C2r'],2)*power(struct['xrf'],2)*np.cos(2*struct['alpha']) + 4*struct['C1r']*struct['C2r']*struct['xr']*struct['yr']*np.cos(2*struct['alpha']) - 4*struct['C2r']*struct['C3r']*struct['xr']*struct['yr']*np.cos(2*struct['alpha']) - 4*struct['C1r']*struct['C2r']*struct['xrf']*struct['yr']*np.cos(2*struct['alpha']) + 4*struct['C2r']*struct['C3r']*struct['xrf']*struct['yr']*np.cos(2*struct['alpha']) - power(struct['C2r'],2)*power(struct['yr'],2)*np.cos(2*struct['alpha']) + 4*power(struct['C3r'],2)*power(struct['yr'],2)*np.cos(2*struct['alpha']) - 4*struct['C1r']*struct['C2r']*struct['xr']*struct['yrf']*np.cos(2*struct['alpha']) + 4*struct['C2r']*struct['C3r']*struct['xr']*struct['yrf']*np.cos(2*struct['alpha']) + 4*struct['C1r']*struct['C2r']*struct['xrf']*struct['yrf']*np.cos(2*struct['alpha']) - 4*struct['C2r']*struct['C3r']*struct['xrf']*struct['yrf']*np.cos(2*struct['alpha']) + 2*power(struct['C2r'],2)*struct['yr']*struct['yrf']*np.cos(2*struct['alpha']) - 8*power(struct['C3r'],2)*struct['yr']*struct['yrf']*np.cos(2*struct['alpha']) - power(struct['C2r'],2)*power(struct['yrf'],2)*np.cos(2*struct['alpha']) + 4*power(struct['C3r'],2)*power(struct['yrf'],2)*np.cos(2*struct['alpha']) + 4*struct['C1r']*struct['C2r']*power(struct['xr'],2)*np.sin(2*struct['alpha']) - 8*struct['C1r']*struct['C2r']*struct['xr']*struct['xrf']*np.sin(2*struct['alpha']) + 4*struct['C1r']*struct['C2r']*power(struct['xrf'],2)*np.sin(2*struct['alpha']) - 2*power(struct['C2r'],2)*struct['xr']*struct['yr']*np.sin(2*struct['alpha']) - 8*struct['C1r']*struct['C3r']*struct['xr']*struct['yr']*np.sin(2*struct['alpha']) + 2*power(struct['C2r'],2)*struct['xrf']*struct['yr']*np.sin(2*struct['alpha']) + 8*struct['C1r']*struct['C3r']*struct['xrf']*struct['yr']*np.sin(2*struct['alpha']) + 4*struct['C2r']*struct['C3r']*power(struct['yr'],2)*np.sin(2*struct['alpha']) + 2*power(struct['C2r'],2)*struct['xr']*struct['yrf']*np.sin(2*struct['alpha']) + 8*struct['C1r']*struct['C3r']*struct['xr']*struct['yrf']*np.sin(2*struct['alpha']) - 2*power(struct['C2r'],2)*struct['xrf']*struct['yrf']*np.sin(2*struct['alpha']) - 8*struct['C1r']*struct['C3r']*struct['xrf']*struct['yrf']*np.sin(2*struct['alpha']) - 8*struct['C2r']*struct['C3r']*struct['yr']*struct['yrf']*np.sin(2*struct['alpha']) + 4*struct['C2r']*struct['C3r']*power(struct['yrf'],2)*np.sin(2*struct['alpha']))/ (4.*(struct['C1r'] + struct['C3r'] + struct['C1r']*np.cos(2*struct['alpha']) - struct['C3r']*np.cos(2*struct['alpha']) - struct['C2r']*np.sin(2*struct['alpha']))))* (complex(0,-1)*struct['C2r']*np.cos(struct['alpha']) + complex(0,2)*struct['C3r']*np.sin(struct['alpha'])))/ (complex(0,1)*struct['C1r'] + complex(0,1)*struct['C3r'] + complex(0,1)*struct['C1r']*np.cos(2*struct['alpha']) - complex(0,1)*struct['C3r']*np.cos(2*struct['alpha']) - complex(0,1)*struct['C2r']*np.sin(2*struct['alpha']))) + (power(struct['E'],-(struct['C1r']*power(struct['xr'],2)) + 2*struct['C1r']*struct['xr']*struct['xrf'] - struct['C1r']*power(struct['xrf'],2) + struct['C2r']*struct['xr']*struct['yr'] - struct['C2r']*struct['xrf']*struct['yr'] - struct['C3r']*power(struct['yr'],2) - struct['C2r']*struct['xr']*struct['yrf'] + struct['C2r']*struct['xrf']*struct['yrf'] + 2*struct['C3r']*struct['yr']*struct['yrf'] - struct['C3r']*power(struct['yrf'],2) + power(complex(0,1)*struct['C1r']*struct['L'] + complex(0,1)*struct['C3r']*struct['L'] + complex(0,2)*struct['C1r']*struct['xr']*np.cos(struct['alpha']) - complex(0,2)*struct['C1r']*struct['xrf']*np.cos(struct['alpha']) - complex(0,1)*struct['C2r']*struct['yr']*np.cos(struct['alpha']) + complex(0,1)*struct['C2r']*struct['yrf']*np.cos(struct['alpha']) + complex(0,1)*struct['C1r']*struct['L']*np.cos(2*struct['alpha']) - complex(0,1)*struct['C3r']*struct['L']*np.cos(2*struct['alpha']) - complex(0,1)*struct['C2r']*struct['xr']*np.sin(struct['alpha']) + complex(0,1)*struct['C2r']*struct['xrf']*np.sin(struct['alpha']) + complex(0,2)*struct['C3r']*struct['yr']*np.sin(struct['alpha']) - complex(0,2)*struct['C3r']*struct['yrf']*np.sin(struct['alpha']) - complex(0,1)*struct['C2r']*struct['L']*np.sin(2*struct['alpha']),2)/ (2.*(struct['C1r'] + struct['C3r'] + struct['C1r']*np.cos(2*struct['alpha']) - struct['C3r']*np.cos(2*struct['alpha']) - struct['C2r']*np.sin(2*struct['alpha']))) - (-4*power(struct['C1r'],2)*power(struct['xr'],2) - power(struct['C2r'],2)*power(struct['xr'],2) + 8*power(struct['C1r'],2)*struct['xr']*struct['xrf'] + 2*power(struct['C2r'],2)*struct['xr']*struct['xrf'] - 4*power(struct['C1r'],2)*power(struct['xrf'],2) - power(struct['C2r'],2)*power(struct['xrf'],2) + 4*struct['C1r']*struct['C2r']*struct['xr']*struct['yr'] + 4*struct['C2r']*struct['C3r']*struct['xr']*struct['yr'] - 4*struct['C1r']*struct['C2r']*struct['xrf']*struct['yr'] - 4*struct['C2r']*struct['C3r']*struct['xrf']*struct['yr'] - power(struct['C2r'],2)*power(struct['yr'],2) - 4*power(struct['C3r'],2)*power(struct['yr'],2) - 4*struct['C1r']*struct['C2r']*struct['xr']*struct['yrf'] - 4*struct['C2r']*struct['C3r']*struct['xr']*struct['yrf'] + 4*struct['C1r']*struct['C2r']*struct['xrf']*struct['yrf'] + 4*struct['C2r']*struct['C3r']*struct['xrf']*struct['yrf'] + 2*power(struct['C2r'],2)*struct['yr']*struct['yrf'] + 8*power(struct['C3r'],2)*struct['yr']*struct['yrf'] - power(struct['C2r'],2)*power(struct['yrf'],2) - 4*power(struct['C3r'],2)*power(struct['yrf'],2) - 4*power(struct['C1r'],2)*power(struct['xr'],2)*np.cos(2*struct['alpha']) + power(struct['C2r'],2)*power(struct['xr'],2)*np.cos(2*struct['alpha']) + 8*power(struct['C1r'],2)*struct['xr']*struct['xrf']*np.cos(2*struct['alpha']) - 2*power(struct['C2r'],2)*struct['xr']*struct['xrf']*np.cos(2*struct['alpha']) - 4*power(struct['C1r'],2)*power(struct['xrf'],2)*np.cos(2*struct['alpha']) + power(struct['C2r'],2)*power(struct['xrf'],2)*np.cos(2*struct['alpha']) + 4*struct['C1r']*struct['C2r']*struct['xr']*struct['yr']*np.cos(2*struct['alpha']) - 4*struct['C2r']*struct['C3r']*struct['xr']*struct['yr']*np.cos(2*struct['alpha']) - 4*struct['C1r']*struct['C2r']*struct['xrf']*struct['yr']*np.cos(2*struct['alpha']) + 4*struct['C2r']*struct['C3r']*struct['xrf']*struct['yr']*np.cos(2*struct['alpha']) - power(struct['C2r'],2)*power(struct['yr'],2)*np.cos(2*struct['alpha']) + 4*power(struct['C3r'],2)*power(struct['yr'],2)*np.cos(2*struct['alpha']) - 4*struct['C1r']*struct['C2r']*struct['xr']*struct['yrf']*np.cos(2*struct['alpha']) + 4*struct['C2r']*struct['C3r']*struct['xr']*struct['yrf']*np.cos(2*struct['alpha']) + 4*struct['C1r']*struct['C2r']*struct['xrf']*struct['yrf']*np.cos(2*struct['alpha']) - 4*struct['C2r']*struct['C3r']*struct['xrf']*struct['yrf']*np.cos(2*struct['alpha']) + 2*power(struct['C2r'],2)*struct['yr']*struct['yrf']*np.cos(2*struct['alpha']) - 8*power(struct['C3r'],2)*struct['yr']*struct['yrf']*np.cos(2*struct['alpha']) - power(struct['C2r'],2)*power(struct['yrf'],2)*np.cos(2*struct['alpha']) + 4*power(struct['C3r'],2)*power(struct['yrf'],2)*np.cos(2*struct['alpha']) + 4*struct['C1r']*struct['C2r']*power(struct['xr'],2)*np.sin(2*struct['alpha']) - 8*struct['C1r']*struct['C2r']*struct['xr']*struct['xrf']*np.sin(2*struct['alpha']) + 4*struct['C1r']*struct['C2r']*power(struct['xrf'],2)*np.sin(2*struct['alpha']) - 2*power(struct['C2r'],2)*struct['xr']*struct['yr']*np.sin(2*struct['alpha']) - 8*struct['C1r']*struct['C3r']*struct['xr']*struct['yr']*np.sin(2*struct['alpha']) + 2*power(struct['C2r'],2)*struct['xrf']*struct['yr']*np.sin(2*struct['alpha']) + 8*struct['C1r']*struct['C3r']*struct['xrf']*struct['yr']*np.sin(2*struct['alpha']) + 4*struct['C2r']*struct['C3r']*power(struct['yr'],2)*np.sin(2*struct['alpha']) + 2*power(struct['C2r'],2)*struct['xr']*struct['yrf']*np.sin(2*struct['alpha']) + 8*struct['C1r']*struct['C3r']*struct['xr']*struct['yrf']*np.sin(2*struct['alpha']) - 2*power(struct['C2r'],2)*struct['xrf']*struct['yrf']*np.sin(2*struct['alpha']) - 8*struct['C1r']*struct['C3r']*struct['xrf']*struct['yrf']*np.sin(2*struct['alpha']) - 8*struct['C2r']*struct['C3r']*struct['yr']*struct['yrf']*np.sin(2*struct['alpha']) + 4*struct['C2r']*struct['C3r']*power(struct['yrf'],2)*np.sin(2*struct['alpha']))/ (4.*(struct['C1r'] + struct['C3r'] + struct['C1r']*np.cos(2*struct['alpha']) - struct['C3r']*np.cos(2*struct['alpha']) - struct['C2r']*np.sin(2*struct['alpha']))))* (complex(0,-1)*struct['C2r']*np.cos(struct['alpha']) + complex(0,2)*struct['C3r']*np.sin(struct['alpha'])))/ (complex(0,1)*struct['C1r'] + complex(0,1)*struct['C3r'] + complex(0,1)*struct['C1r']*np.cos(2*struct['alpha']) - complex(0,1)*struct['C3r']*np.cos(2*struct['alpha']) - complex(0,1)*struct['C2r']*np.sin(2*struct['alpha'])) - (power(struct['E'],-(struct['C1r']*power(struct['xr'],2)) + 2*struct['C1r']*struct['xr']*struct['xrf'] - struct['C1r']*power(struct['xrf'],2) + struct['C2r']*struct['xr']*struct['yr'] - struct['C2r']*struct['xrf']*struct['yr'] - struct['C3r']*power(struct['yr'],2) - struct['C2r']*struct['xr']*struct['yrf'] + struct['C2r']*struct['xrf']*struct['yrf'] + 2*struct['C3r']*struct['yr']*struct['yrf'] - struct['C3r']*power(struct['yrf'],2) - (-4*power(struct['C1r'],2)*power(struct['xr'],2) - power(struct['C2r'],2)*power(struct['xr'],2) + 8*power(struct['C1r'],2)*struct['xr']*struct['xrf'] + 2*power(struct['C2r'],2)*struct['xr']*struct['xrf'] - 4*power(struct['C1r'],2)*power(struct['xrf'],2) - power(struct['C2r'],2)*power(struct['xrf'],2) + 4*struct['C1r']*struct['C2r']*struct['xr']*struct['yr'] + 4*struct['C2r']*struct['C3r']*struct['xr']*struct['yr'] - 4*struct['C1r']*struct['C2r']*struct['xrf']*struct['yr'] - 4*struct['C2r']*struct['C3r']*struct['xrf']*struct['yr'] - power(struct['C2r'],2)*power(struct['yr'],2) - 4*power(struct['C3r'],2)*power(struct['yr'],2) - 4*struct['C1r']*struct['C2r']*struct['xr']*struct['yrf'] - 4*struct['C2r']*struct['C3r']*struct['xr']*struct['yrf'] + 4*struct['C1r']*struct['C2r']*struct['xrf']*struct['yrf'] + 4*struct['C2r']*struct['C3r']*struct['xrf']*struct['yrf'] + 2*power(struct['C2r'],2)*struct['yr']*struct['yrf'] + 8*power(struct['C3r'],2)*struct['yr']*struct['yrf'] - power(struct['C2r'],2)*power(struct['yrf'],2) - 4*power(struct['C3r'],2)*power(struct['yrf'],2) - 4*power(struct['C1r'],2)*power(struct['xr'],2)*np.cos(2*struct['alpha']) + power(struct['C2r'],2)*power(struct['xr'],2)*np.cos(2*struct['alpha']) + 8*power(struct['C1r'],2)*struct['xr']*struct['xrf']*np.cos(2*struct['alpha']) - 2*power(struct['C2r'],2)*struct['xr']*struct['xrf']*np.cos(2*struct['alpha']) - 4*power(struct['C1r'],2)*power(struct['xrf'],2)*np.cos(2*struct['alpha']) + power(struct['C2r'],2)*power(struct['xrf'],2)*np.cos(2*struct['alpha']) + 4*struct['C1r']*struct['C2r']*struct['xr']*struct['yr']*np.cos(2*struct['alpha']) - 4*struct['C2r']*struct['C3r']*struct['xr']*struct['yr']*np.cos(2*struct['alpha']) - 4*struct['C1r']*struct['C2r']*struct['xrf']*struct['yr']*np.cos(2*struct['alpha']) + 4*struct['C2r']*struct['C3r']*struct['xrf']*struct['yr']*np.cos(2*struct['alpha']) - power(struct['C2r'],2)*power(struct['yr'],2)*np.cos(2*struct['alpha']) + 4*power(struct['C3r'],2)*power(struct['yr'],2)*np.cos(2*struct['alpha']) - 4*struct['C1r']*struct['C2r']*struct['xr']*struct['yrf']*np.cos(2*struct['alpha']) + 4*struct['C2r']*struct['C3r']*struct['xr']*struct['yrf']*np.cos(2*struct['alpha']) + 4*struct['C1r']*struct['C2r']*struct['xrf']*struct['yrf']*np.cos(2*struct['alpha']) - 4*struct['C2r']*struct['C3r']*struct['xrf']*struct['yrf']*np.cos(2*struct['alpha']) + 2*power(struct['C2r'],2)*struct['yr']*struct['yrf']*np.cos(2*struct['alpha']) - 8*power(struct['C3r'],2)*struct['yr']*struct['yrf']*np.cos(2*struct['alpha']) - power(struct['C2r'],2)*power(struct['yrf'],2)*np.cos(2*struct['alpha']) + 4*power(struct['C3r'],2)*power(struct['yrf'],2)*np.cos(2*struct['alpha']) + 4*struct['C1r']*struct['C2r']*power(struct['xr'],2)*np.sin(2*struct['alpha']) - 8*struct['C1r']*struct['C2r']*struct['xr']*struct['xrf']*np.sin(2*struct['alpha']) + 4*struct['C1r']*struct['C2r']*power(struct['xrf'],2)*np.sin(2*struct['alpha']) - 2*power(struct['C2r'],2)*struct['xr']*struct['yr']*np.sin(2*struct['alpha']) - 8*struct['C1r']*struct['C3r']*struct['xr']*struct['yr']*np.sin(2*struct['alpha']) + 2*power(struct['C2r'],2)*struct['xrf']*struct['yr']*np.sin(2*struct['alpha']) + 8*struct['C1r']*struct['C3r']*struct['xrf']*struct['yr']*np.sin(2*struct['alpha']) + 4*struct['C2r']*struct['C3r']*power(struct['yr'],2)*np.sin(2*struct['alpha']) + 2*power(struct['C2r'],2)*struct['xr']*struct['yrf']*np.sin(2*struct['alpha']) + 8*struct['C1r']*struct['C3r']*struct['xr']*struct['yrf']*np.sin(2*struct['alpha']) - 2*power(struct['C2r'],2)*struct['xrf']*struct['yrf']*np.sin(2*struct['alpha']) - 8*struct['C1r']*struct['C3r']*struct['xrf']*struct['yrf']*np.sin(2*struct['alpha']) - 8*struct['C2r']*struct['C3r']*struct['yr']*struct['yrf']*np.sin(2*struct['alpha']) + 4*struct['C2r']*struct['C3r']*power(struct['yrf'],2)*np.sin(2*struct['alpha']))/ (4.*(struct['C1r'] + struct['C3r'] + struct['C1r']*np.cos(2*struct['alpha']) - struct['C3r']*np.cos(2*struct['alpha']) - struct['C2r']*np.sin(2*struct['alpha']))))*np.sqrt(np.pi/2.)* special.erfi((complex(0,2)*struct['C1r']*struct['xr']*np.cos(struct['alpha']) - complex(0,2)*struct['C1r']*struct['xrf']*np.cos(struct['alpha']) - complex(0,1)*struct['C2r']*struct['yr']*np.cos(struct['alpha']) + complex(0,1)*struct['C2r']*struct['yrf']*np.cos(struct['alpha']) - complex(0,1)*struct['C2r']*struct['xr']*np.sin(struct['alpha']) + complex(0,1)*struct['C2r']*struct['xrf']*np.sin(struct['alpha']) + complex(0,2)*struct['C3r']*struct['yr']*np.sin(struct['alpha']) - complex(0,2)*struct['C3r']*struct['yrf']*np.sin(struct['alpha']))/ (np.sqrt(2)*np.sqrt(struct['C1r'] + struct['C3r'] + struct['C1r']*np.cos(2*struct['alpha']) - struct['C3r']*np.cos(2*struct['alpha']) - struct['C2r']*np.sin(2*struct['alpha']))))* np.sqrt(struct['C1r'] + struct['C3r'] + struct['C1r']*np.cos(2*struct['alpha']) - struct['C3r']*np.cos(2*struct['alpha']) - struct['C2r']*np.sin(2*struct['alpha']))* (struct['C2r']*struct['xr'] - struct['C2r']*struct['xrf'] - 2*struct['C3r']*struct['yr'] + 2*struct['C3r']*struct['yrf'] - (4*struct['C1r']*struct['C2r']*struct['xr'] + 4*struct['C2r']*struct['C3r']*struct['xr'] - 4*struct['C1r']*struct['C2r']*struct['xrf'] - 4*struct['C2r']*struct['C3r']*struct['xrf'] - 2*power(struct['C2r'],2)*struct['yr'] - 8*power(struct['C3r'],2)*struct['yr'] + 2*power(struct['C2r'],2)*struct['yrf'] + 8*power(struct['C3r'],2)*struct['yrf'] + 4*struct['C1r']*struct['C2r']*struct['xr']*np.cos(2*struct['alpha']) - 4*struct['C2r']*struct['C3r']*struct['xr']*np.cos(2*struct['alpha']) - 4*struct['C1r']*struct['C2r']*struct['xrf']*np.cos(2*struct['alpha']) + 4*struct['C2r']*struct['C3r']*struct['xrf']*np.cos(2*struct['alpha']) - 2*power(struct['C2r'],2)*struct['yr']*np.cos(2*struct['alpha']) + 8*power(struct['C3r'],2)*struct['yr']*np.cos(2*struct['alpha']) + 2*power(struct['C2r'],2)*struct['yrf']*np.cos(2*struct['alpha']) - 8*power(struct['C3r'],2)*struct['yrf']*np.cos(2*struct['alpha']) - 2*power(struct['C2r'],2)*struct['xr']*np.sin(2*struct['alpha']) - 8*struct['C1r']*struct['C3r']*struct['xr']*np.sin(2*struct['alpha']) + 2*power(struct['C2r'],2)*struct['xrf']*np.sin(2*struct['alpha']) + 8*struct['C1r']*struct['C3r']*struct['xrf']*np.sin(2*struct['alpha']) + 8*struct['C2r']*struct['C3r']*struct['yr']*np.sin(2*struct['alpha']) - 8*struct['C2r']*struct['C3r']*struct['yrf']*np.sin(2*struct['alpha']))/ (4.*(struct['C1r'] + struct['C3r'] + struct['C1r']*np.cos(2*struct['alpha']) - struct['C3r']*np.cos(2*struct['alpha']) - struct['C2r']*np.sin(2*struct['alpha'])))))/ (complex(0,1)*struct['C1r'] + complex(0,1)*struct['C3r'] + complex(0,1)*struct['C1r']*np.cos(2*struct['alpha']) - complex(0,1)*struct['C3r']*np.cos(2*struct['alpha']) - complex(0,1)*struct['C2r']*np.sin(2*struct['alpha'])) + (power(struct['E'],-(struct['C1r']*power(struct['xr'],2)) + 2*struct['C1r']*struct['xr']*struct['xrf'] - struct['C1r']*power(struct['xrf'],2) + struct['C2r']*struct['xr']*struct['yr'] - struct['C2r']*struct['xrf']*struct['yr'] - struct['C3r']*power(struct['yr'],2) - struct['C2r']*struct['xr']*struct['yrf'] + struct['C2r']*struct['xrf']*struct['yrf'] + 2*struct['C3r']*struct['yr']*struct['yrf'] - struct['C3r']*power(struct['yrf'],2) - (-4*power(struct['C1r'],2)*power(struct['xr'],2) - power(struct['C2r'],2)*power(struct['xr'],2) + 8*power(struct['C1r'],2)*struct['xr']*struct['xrf'] + 2*power(struct['C2r'],2)*struct['xr']*struct['xrf'] - 4*power(struct['C1r'],2)*power(struct['xrf'],2) - power(struct['C2r'],2)*power(struct['xrf'],2) + 4*struct['C1r']*struct['C2r']*struct['xr']*struct['yr'] + 4*struct['C2r']*struct['C3r']*struct['xr']*struct['yr'] - 4*struct['C1r']*struct['C2r']*struct['xrf']*struct['yr'] - 4*struct['C2r']*struct['C3r']*struct['xrf']*struct['yr'] - power(struct['C2r'],2)*power(struct['yr'],2) - 4*power(struct['C3r'],2)*power(struct['yr'],2) - 4*struct['C1r']*struct['C2r']*struct['xr']*struct['yrf'] - 4*struct['C2r']*struct['C3r']*struct['xr']*struct['yrf'] + 4*struct['C1r']*struct['C2r']*struct['xrf']*struct['yrf'] + 4*struct['C2r']*struct['C3r']*struct['xrf']*struct['yrf'] + 2*power(struct['C2r'],2)*struct['yr']*struct['yrf'] + 8*power(struct['C3r'],2)*struct['yr']*struct['yrf'] - power(struct['C2r'],2)*power(struct['yrf'],2) - 4*power(struct['C3r'],2)*power(struct['yrf'],2) - 4*power(struct['C1r'],2)*power(struct['xr'],2)*np.cos(2*struct['alpha']) + power(struct['C2r'],2)*power(struct['xr'],2)*np.cos(2*struct['alpha']) + 8*power(struct['C1r'],2)*struct['xr']*struct['xrf']*np.cos(2*struct['alpha']) - 2*power(struct['C2r'],2)*struct['xr']*struct['xrf']*np.cos(2*struct['alpha']) - 4*power(struct['C1r'],2)*power(struct['xrf'],2)*np.cos(2*struct['alpha']) + power(struct['C2r'],2)*power(struct['xrf'],2)*np.cos(2*struct['alpha']) + 4*struct['C1r']*struct['C2r']*struct['xr']*struct['yr']*np.cos(2*struct['alpha']) - 4*struct['C2r']*struct['C3r']*struct['xr']*struct['yr']*np.cos(2*struct['alpha']) - 4*struct['C1r']*struct['C2r']*struct['xrf']*struct['yr']*np.cos(2*struct['alpha']) + 4*struct['C2r']*struct['C3r']*struct['xrf']*struct['yr']*np.cos(2*struct['alpha']) - power(struct['C2r'],2)*power(struct['yr'],2)*np.cos(2*struct['alpha']) + 4*power(struct['C3r'],2)*power(struct['yr'],2)*np.cos(2*struct['alpha']) - 4*struct['C1r']*struct['C2r']*struct['xr']*struct['yrf']*np.cos(2*struct['alpha']) + 4*struct['C2r']*struct['C3r']*struct['xr']*struct['yrf']*np.cos(2*struct['alpha']) + 4*struct['C1r']*struct['C2r']*struct['xrf']*struct['yrf']*np.cos(2*struct['alpha']) - 4*struct['C2r']*struct['C3r']*struct['xrf']*struct['yrf']*np.cos(2*struct['alpha']) + 2*power(struct['C2r'],2)*struct['yr']*struct['yrf']*np.cos(2*struct['alpha']) - 8*power(struct['C3r'],2)*struct['yr']*struct['yrf']*np.cos(2*struct['alpha']) - power(struct['C2r'],2)*power(struct['yrf'],2)*np.cos(2*struct['alpha']) + 4*power(struct['C3r'],2)*power(struct['yrf'],2)*np.cos(2*struct['alpha']) + 4*struct['C1r']*struct['C2r']*power(struct['xr'],2)*np.sin(2*struct['alpha']) - 8*struct['C1r']*struct['C2r']*struct['xr']*struct['xrf']*np.sin(2*struct['alpha']) + 4*struct['C1r']*struct['C2r']*power(struct['xrf'],2)*np.sin(2*struct['alpha']) - 2*power(struct['C2r'],2)*struct['xr']*struct['yr']*np.sin(2*struct['alpha']) - 8*struct['C1r']*struct['C3r']*struct['xr']*struct['yr']*np.sin(2*struct['alpha']) + 2*power(struct['C2r'],2)*struct['xrf']*struct['yr']*np.sin(2*struct['alpha']) + 8*struct['C1r']*struct['C3r']*struct['xrf']*struct['yr']*np.sin(2*struct['alpha']) + 4*struct['C2r']*struct['C3r']*power(struct['yr'],2)*np.sin(2*struct['alpha']) + 2*power(struct['C2r'],2)*struct['xr']*struct['yrf']*np.sin(2*struct['alpha']) + 8*struct['C1r']*struct['C3r']*struct['xr']*struct['yrf']*np.sin(2*struct['alpha']) - 2*power(struct['C2r'],2)*struct['xrf']*struct['yrf']*np.sin(2*struct['alpha']) - 8*struct['C1r']*struct['C3r']*struct['xrf']*struct['yrf']*np.sin(2*struct['alpha']) - 8*struct['C2r']*struct['C3r']*struct['yr']*struct['yrf']*np.sin(2*struct['alpha']) + 4*struct['C2r']*struct['C3r']*power(struct['yrf'],2)*np.sin(2*struct['alpha']))/ (4.*(struct['C1r'] + struct['C3r'] + struct['C1r']*np.cos(2*struct['alpha']) - struct['C3r']*np.cos(2*struct['alpha']) - struct['C2r']*np.sin(2*struct['alpha']))))*np.sqrt(np.pi/2.)* special.erfi((complex(0,1)*struct['C1r']*struct['L'] + complex(0,1)*struct['C3r']*struct['L'] + complex(0,2)*struct['C1r']*struct['xr']*np.cos(struct['alpha']) - complex(0,2)*struct['C1r']*struct['xrf']*np.cos(struct['alpha']) - complex(0,1)*struct['C2r']*struct['yr']*np.cos(struct['alpha']) + complex(0,1)*struct['C2r']*struct['yrf']*np.cos(struct['alpha']) + complex(0,1)*struct['C1r']*struct['L']*np.cos(2*struct['alpha']) - complex(0,1)*struct['C3r']*struct['L']*np.cos(2*struct['alpha']) - complex(0,1)*struct['C2r']*struct['xr']*np.sin(struct['alpha']) + complex(0,1)*struct['C2r']*struct['xrf']*np.sin(struct['alpha']) + complex(0,2)*struct['C3r']*struct['yr']*np.sin(struct['alpha']) - complex(0,2)*struct['C3r']*struct['yrf']*np.sin(struct['alpha']) - complex(0,1)*struct['C2r']*struct['L']*np.sin(2*struct['alpha']))/ (np.sqrt(2)*np.sqrt(struct['C1r'] + struct['C3r'] + struct['C1r']*np.cos(2*struct['alpha']) - struct['C3r']*np.cos(2*struct['alpha']) - struct['C2r']*np.sin(2*struct['alpha']))))* np.sqrt(struct['C1r'] + struct['C3r'] + struct['C1r']*np.cos(2*struct['alpha']) - struct['C3r']*np.cos(2*struct['alpha']) - struct['C2r']*np.sin(2*struct['alpha']))* (struct['C2r']*struct['xr'] - struct['C2r']*struct['xrf'] - 2*struct['C3r']*struct['yr'] + 2*struct['C3r']*struct['yrf'] - (4*struct['C1r']*struct['C2r']*struct['xr'] + 4*struct['C2r']*struct['C3r']*struct['xr'] - 4*struct['C1r']*struct['C2r']*struct['xrf'] - 4*struct['C2r']*struct['C3r']*struct['xrf'] - 2*power(struct['C2r'],2)*struct['yr'] - 8*power(struct['C3r'],2)*struct['yr'] + 2*power(struct['C2r'],2)*struct['yrf'] + 8*power(struct['C3r'],2)*struct['yrf'] + 4*struct['C1r']*struct['C2r']*struct['xr']*np.cos(2*struct['alpha']) - 4*struct['C2r']*struct['C3r']*struct['xr']*np.cos(2*struct['alpha']) - 4*struct['C1r']*struct['C2r']*struct['xrf']*np.cos(2*struct['alpha']) + 4*struct['C2r']*struct['C3r']*struct['xrf']*np.cos(2*struct['alpha']) - 2*power(struct['C2r'],2)*struct['yr']*np.cos(2*struct['alpha']) + 8*power(struct['C3r'],2)*struct['yr']*np.cos(2*struct['alpha']) + 2*power(struct['C2r'],2)*struct['yrf']*np.cos(2*struct['alpha']) - 8*power(struct['C3r'],2)*struct['yrf']*np.cos(2*struct['alpha']) - 2*power(struct['C2r'],2)*struct['xr']*np.sin(2*struct['alpha']) - 8*struct['C1r']*struct['C3r']*struct['xr']*np.sin(2*struct['alpha']) + 2*power(struct['C2r'],2)*struct['xrf']*np.sin(2*struct['alpha']) + 8*struct['C1r']*struct['C3r']*struct['xrf']*np.sin(2*struct['alpha']) + 8*struct['C2r']*struct['C3r']*struct['yr']*np.sin(2*struct['alpha']) - 8*struct['C2r']*struct['C3r']*struct['yrf']*np.sin(2*struct['alpha']))/ (4.*(struct['C1r'] + struct['C3r'] + struct['C1r']*np.cos(2*struct['alpha']) - struct['C3r']*np.cos(2*struct['alpha']) - struct['C2r']*np.sin(2*struct['alpha'])))))/ (complex(0,1)*struct['C1r'] + complex(0,1)*struct['C3r'] + complex(0,1)*struct['C1r']*np.cos(2*struct['alpha']) - complex(0,1)*struct['C3r']*np.cos(2*struct['alpha']) - complex(0,1)*struct['C2r']*np.sin(2*struct['alpha'])))
return der
def deralpha(struct):
'''partial wrt struct['alpha']'''
der = struct['C5']*((power(struct['E'],-(struct['C1']*power(struct['xlf'],2)) + 2*struct['C1']*struct['xlf']*struct['xr'] - struct['C1']*power(struct['xr'],2) + struct['C2']*struct['xlf']*struct['ylf'] - struct['C2']*struct['xr']*struct['ylf'] - struct['C3']*power(struct['ylf'],2) - struct['C2']*struct['xlf']*struct['yr'] + struct['C2']*struct['xr']*struct['yr'] + 2*struct['C3']*struct['ylf']*struct['yr'] - struct['C3']*power(struct['yr'],2) - (-4*power(struct['C1'],2)*power(struct['xlf'],2) - power(struct['C2'],2)*power(struct['xlf'],2) + 8*power(struct['C1'],2)*struct['xlf']*struct['xr'] + 2*power(struct['C2'],2)*struct['xlf']*struct['xr'] - 4*power(struct['C1'],2)*power(struct['xr'],2) - power(struct['C2'],2)*power(struct['xr'],2) + 4*struct['C1']*struct['C2']*struct['xlf']*struct['ylf'] + 4*struct['C2']*struct['C3']*struct['xlf']*struct['ylf'] - 4*struct['C1']*struct['C2']*struct['xr']*struct['ylf'] - 4*struct['C2']*struct['C3']*struct['xr']*struct['ylf'] - power(struct['C2'],2)*power(struct['ylf'],2) - 4*power(struct['C3'],2)*power(struct['ylf'],2) - 4*struct['C1']*struct['C2']*struct['xlf']*struct['yr'] - 4*struct['C2']*struct['C3']*struct['xlf']*struct['yr'] + 4*struct['C1']*struct['C2']*struct['xr']*struct['yr'] + 4*struct['C2']*struct['C3']*struct['xr']*struct['yr'] + 2*power(struct['C2'],2)*struct['ylf']*struct['yr'] + 8*power(struct['C3'],2)*struct['ylf']*struct['yr'] - power(struct['C2'],2)*power(struct['yr'],2) - 4*power(struct['C3'],2)*power(struct['yr'],2) - 4*power(struct['C1'],2)*power(struct['xlf'],2)*np.cos(2*struct['alpha']) + power(struct['C2'],2)*power(struct['xlf'],2)*np.cos(2*struct['alpha']) + 8*power(struct['C1'],2)*struct['xlf']*struct['xr']*np.cos(2*struct['alpha']) - 2*power(struct['C2'],2)*struct['xlf']*struct['xr']*np.cos(2*struct['alpha']) - 4*power(struct['C1'],2)*power(struct['xr'],2)*np.cos(2*struct['alpha']) + power(struct['C2'],2)*power(struct['xr'],2)*np.cos(2*struct['alpha']) + 4*struct['C1']*struct['C2']*struct['xlf']*struct['ylf']*np.cos(2*struct['alpha']) - 4*struct['C2']*struct['C3']*struct['xlf']*struct['ylf']*np.cos(2*struct['alpha']) - 4*struct['C1']*struct['C2']*struct['xr']*struct['ylf']*np.cos(2*struct['alpha']) + 4*struct['C2']*struct['C3']*struct['xr']*struct['ylf']*np.cos(2*struct['alpha']) - power(struct['C2'],2)*power(struct['ylf'],2)*np.cos(2*struct['alpha']) + 4*power(struct['C3'],2)*power(struct['ylf'],2)*np.cos(2*struct['alpha']) - 4*struct['C1']*struct['C2']*struct['xlf']*struct['yr']*np.cos(2*struct['alpha']) + 4*struct['C2']*struct['C3']*struct['xlf']*struct['yr']*np.cos(2*struct['alpha']) + 4*struct['C1']*struct['C2']*struct['xr']*struct['yr']*np.cos(2*struct['alpha']) - 4*struct['C2']*struct['C3']*struct['xr']*struct['yr']*np.cos(2*struct['alpha']) + 2*power(struct['C2'],2)*struct['ylf']*struct['yr']*np.cos(2*struct['alpha']) - 8*power(struct['C3'],2)*struct['ylf']*struct['yr']*np.cos(2*struct['alpha']) - power(struct['C2'],2)*power(struct['yr'],2)*np.cos(2*struct['alpha']) + 4*power(struct['C3'],2)*power(struct['yr'],2)*np.cos(2*struct['alpha']) + 4*struct['C1']*struct['C2']*power(struct['xlf'],2)*np.sin(2*struct['alpha']) - 8*struct['C1']*struct['C2']*struct['xlf']*struct['xr']*np.sin(2*struct['alpha']) + 4*struct['C1']*struct['C2']*power(struct['xr'],2)*np.sin(2*struct['alpha']) - 2*power(struct['C2'],2)*struct['xlf']*struct['ylf']*np.sin(2*struct['alpha']) - 8*struct['C1']*struct['C3']*struct['xlf']*struct['ylf']*np.sin(2*struct['alpha']) + 2*power(struct['C2'],2)*struct['xr']*struct['ylf']*np.sin(2*struct['alpha']) + 8*struct['C1']*struct['C3']*struct['xr']*struct['ylf']*np.sin(2*struct['alpha']) + 4*struct['C2']*struct['C3']*power(struct['ylf'],2)*np.sin(2*struct['alpha']) + 2*power(struct['C2'],2)*struct['xlf']*struct['yr']*np.sin(2*struct['alpha']) + 8*struct['C1']*struct['C3']*struct['xlf']*struct['yr']*np.sin(2*struct['alpha']) - 2*power(struct['C2'],2)*struct['xr']*struct['yr']*np.sin(2*struct['alpha']) - 8*struct['C1']*struct['C3']*struct['xr']*struct['yr']*np.sin(2*struct['alpha']) - 8*struct['C2']*struct['C3']*struct['ylf']*struct['yr']*np.sin(2*struct['alpha']) + 4*struct['C2']*struct['C3']*power(struct['yr'],2)*np.sin(2*struct['alpha']))/ (4.*(struct['C1'] + struct['C3'] + struct['C1']*np.cos(2*struct['alpha']) - struct['C3']*np.cos(2*struct['alpha']) - struct['C2']*np.sin(2*struct['alpha']))))*np.sqrt(np.pi/2.)* special.erfi((complex(0,-2)*struct['C1']*struct['xlf']*np.cos(struct['alpha']) + complex(0,2)*struct['C1']*struct['xr']*np.cos(struct['alpha']) + complex(0,1)*struct['C2']*struct['ylf']*np.cos(struct['alpha']) - complex(0,1)*struct['C2']*struct['yr']*np.cos(struct['alpha']) + complex(0,1)*struct['C2']*struct['xlf']*np.sin(struct['alpha']) - complex(0,1)*struct['C2']*struct['xr']*np.sin(struct['alpha']) - complex(0,2)*struct['C3']*struct['ylf']*np.sin(struct['alpha']) + complex(0,2)*struct['C3']*struct['yr']*np.sin(struct['alpha']))/ (np.sqrt(2)*np.sqrt(struct['C1'] + struct['C3'] + struct['C1']*np.cos(2*struct['alpha']) - struct['C3']*np.cos(2*struct['alpha']) - struct['C2']*np.sin(2*struct['alpha']))))* np.sqrt(struct['C1'] + struct['C3'] + struct['C1']*np.cos(2*struct['alpha']) - struct['C3']*np.cos(2*struct['alpha']) - struct['C2']*np.sin(2*struct['alpha']))* (complex(0,-2)*struct['C2']*np.cos(2*struct['alpha']) - complex(0,2)*struct['C1']*np.sin(2*struct['alpha']) + complex(0,2)*struct['C3']*np.sin(2*struct['alpha'])))/ power(complex(0,1)*struct['C1'] + complex(0,1)*struct['C3'] + complex(0,1)*struct['C1']*np.cos(2*struct['alpha']) - complex(0,1)*struct['C3']*np.cos(2*struct['alpha']) - complex(0,1)*struct['C2']*np.sin(2*struct['alpha']),2) - (power(struct['E'],-(struct['C1']*power(struct['xlf'],2)) + 2*struct['C1']*struct['xlf']*struct['xr'] - struct['C1']*power(struct['xr'],2) + struct['C2']*struct['xlf']*struct['ylf'] - struct['C2']*struct['xr']*struct['ylf'] - struct['C3']*power(struct['ylf'],2) - struct['C2']*struct['xlf']*struct['yr'] + struct['C2']*struct['xr']*struct['yr'] + 2*struct['C3']*struct['ylf']*struct['yr'] - struct['C3']*power(struct['yr'],2) - (-4*power(struct['C1'],2)*power(struct['xlf'],2) - power(struct['C2'],2)*power(struct['xlf'],2) + 8*power(struct['C1'],2)*struct['xlf']*struct['xr'] + 2*power(struct['C2'],2)*struct['xlf']*struct['xr'] - 4*power(struct['C1'],2)*power(struct['xr'],2) - power(struct['C2'],2)*power(struct['xr'],2) + 4*struct['C1']*struct['C2']*struct['xlf']*struct['ylf'] + 4*struct['C2']*struct['C3']*struct['xlf']*struct['ylf'] - 4*struct['C1']*struct['C2']*struct['xr']*struct['ylf'] - 4*struct['C2']*struct['C3']*struct['xr']*struct['ylf'] - power(struct['C2'],2)*power(struct['ylf'],2) - 4*power(struct['C3'],2)*power(struct['ylf'],2) - 4*struct['C1']*struct['C2']*struct['xlf']*struct['yr'] - 4*struct['C2']*struct['C3']*struct['xlf']*struct['yr'] + 4*struct['C1']*struct['C2']*struct['xr']*struct['yr'] + 4*struct['C2']*struct['C3']*struct['xr']*struct['yr'] + 2*power(struct['C2'],2)*struct['ylf']*struct['yr'] + 8*power(struct['C3'],2)*struct['ylf']*struct['yr'] - power(struct['C2'],2)*power(struct['yr'],2) - 4*power(struct['C3'],2)*power(struct['yr'],2) - 4*power(struct['C1'],2)*power(struct['xlf'],2)*np.cos(2*struct['alpha']) + power(struct['C2'],2)*power(struct['xlf'],2)*np.cos(2*struct['alpha']) + 8*power(struct['C1'],2)*struct['xlf']*struct['xr']*np.cos(2*struct['alpha']) - 2*power(struct['C2'],2)*struct['xlf']*struct['xr']*np.cos(2*struct['alpha']) - 4*power(struct['C1'],2)*power(struct['xr'],2)*np.cos(2*struct['alpha']) + power(struct['C2'],2)*power(struct['xr'],2)*np.cos(2*struct['alpha']) + 4*struct['C1']*struct['C2']*struct['xlf']*struct['ylf']*np.cos(2*struct['alpha']) - 4*struct['C2']*struct['C3']*struct['xlf']*struct['ylf']*np.cos(2*struct['alpha']) - 4*struct['C1']*struct['C2']*struct['xr']*struct['ylf']*np.cos(2*struct['alpha']) + 4*struct['C2']*struct['C3']*struct['xr']*struct['ylf']*np.cos(2*struct['alpha']) - power(struct['C2'],2)*power(struct['ylf'],2)*np.cos(2*struct['alpha']) + 4*power(struct['C3'],2)*power(struct['ylf'],2)*np.cos(2*struct['alpha']) - 4*struct['C1']*struct['C2']*struct['xlf']*struct['yr']*np.cos(2*struct['alpha']) + 4*struct['C2']*struct['C3']*struct['xlf']*struct['yr']*np.cos(2*struct['alpha']) + 4*struct['C1']*struct['C2']*struct['xr']*struct['yr']*np.cos(2*struct['alpha']) - 4*struct['C2']*struct['C3']*struct['xr']*struct['yr']*np.cos(2*struct['alpha']) + 2*power(struct['C2'],2)*struct['ylf']*struct['yr']*np.cos(2*struct['alpha']) - 8*power(struct['C3'],2)*struct['ylf']*struct['yr']*np.cos(2*struct['alpha']) - power(struct['C2'],2)*power(struct['yr'],2)*np.cos(2*struct['alpha']) + 4*power(struct['C3'],2)*power(struct['yr'],2)*np.cos(2*struct['alpha']) + 4*struct['C1']*struct['C2']*power(struct['xlf'],2)*np.sin(2*struct['alpha']) - 8*struct['C1']*struct['C2']*struct['xlf']*struct['xr']*np.sin(2*struct['alpha']) + 4*struct['C1']*struct['C2']*power(struct['xr'],2)*np.sin(2*struct['alpha']) - 2*power(struct['C2'],2)*struct['xlf']*struct['ylf']*np.sin(2*struct['alpha']) - 8*struct['C1']*struct['C3']*struct['xlf']*struct['ylf']*np.sin(2*struct['alpha']) + 2*power(struct['C2'],2)*struct['xr']*struct['ylf']*np.sin(2*struct['alpha']) + 8*struct['C1']*struct['C3']*struct['xr']*struct['ylf']*np.sin(2*struct['alpha']) + 4*struct['C2']*struct['C3']*power(struct['ylf'],2)*np.sin(2*struct['alpha']) + 2*power(struct['C2'],2)*struct['xlf']*struct['yr']*np.sin(2*struct['alpha']) + 8*struct['C1']*struct['C3']*struct['xlf']*struct['yr']*np.sin(2*struct['alpha']) - 2*power(struct['C2'],2)*struct['xr']*struct['yr']*np.sin(2*struct['alpha']) - 8*struct['C1']*struct['C3']*struct['xr']*struct['yr']*np.sin(2*struct['alpha']) - 8*struct['C2']*struct['C3']*struct['ylf']*struct['yr']*np.sin(2*struct['alpha']) + 4*struct['C2']*struct['C3']*power(struct['yr'],2)*np.sin(2*struct['alpha']))/ (4.*(struct['C1'] + struct['C3'] + struct['C1']*np.cos(2*struct['alpha']) - struct['C3']*np.cos(2*struct['alpha']) - struct['C2']*np.sin(2*struct['alpha']))))*np.sqrt(np.pi/2.)* special.erfi((complex(0,1)*struct['C1']*struct['L'] + complex(0,1)*struct['C3']*struct['L'] - complex(0,2)*struct['C1']*struct['xlf']*np.cos(struct['alpha']) + complex(0,2)*struct['C1']*struct['xr']*np.cos(struct['alpha']) + complex(0,1)*struct['C2']*struct['ylf']*np.cos(struct['alpha']) - complex(0,1)*struct['C2']*struct['yr']*np.cos(struct['alpha']) + complex(0,1)*struct['C1']*struct['L']*np.cos(2*struct['alpha']) - complex(0,1)*struct['C3']*struct['L']*np.cos(2*struct['alpha']) + complex(0,1)*struct['C2']*struct['xlf']*np.sin(struct['alpha']) - complex(0,1)*struct['C2']*struct['xr']*np.sin(struct['alpha']) - complex(0,2)*struct['C3']*struct['ylf']*np.sin(struct['alpha']) + complex(0,2)*struct['C3']*struct['yr']*np.sin(struct['alpha']) - complex(0,1)*struct['C2']*struct['L']*np.sin(2*struct['alpha']))/ (np.sqrt(2)*np.sqrt(struct['C1'] + struct['C3'] + struct['C1']*np.cos(2*struct['alpha']) - struct['C3']*np.cos(2*struct['alpha']) - struct['C2']*np.sin(2*struct['alpha']))))* np.sqrt(struct['C1'] + struct['C3'] + struct['C1']*np.cos(2*struct['alpha']) - struct['C3']*np.cos(2*struct['alpha']) - struct['C2']*np.sin(2*struct['alpha']))* (complex(0,-2)*struct['C2']*np.cos(2*struct['alpha']) - complex(0,2)*struct['C1']*np.sin(2*struct['alpha']) + complex(0,2)*struct['C3']*np.sin(2*struct['alpha'])))/ power(complex(0,1)*struct['C1'] + complex(0,1)*struct['C3'] + complex(0,1)*struct['C1']*np.cos(2*struct['alpha']) - complex(0,1)*struct['C3']*np.cos(2*struct['alpha']) - complex(0,1)*struct['C2']*np.sin(2*struct['alpha']),2) - (power(struct['E'],-(struct['C1']*power(struct['xlf'],2)) + 2*struct['C1']*struct['xlf']*struct['xr'] - struct['C1']*power(struct['xr'],2) + struct['C2']*struct['xlf']*struct['ylf'] - struct['C2']*struct['xr']*struct['ylf'] - struct['C3']*power(struct['ylf'],2) - struct['C2']*struct['xlf']*struct['yr'] + struct['C2']*struct['xr']*struct['yr'] + 2*struct['C3']*struct['ylf']*struct['yr'] - struct['C3']*power(struct['yr'],2) - (-4*power(struct['C1'],2)*power(struct['xlf'],2) - power(struct['C2'],2)*power(struct['xlf'],2) + 8*power(struct['C1'],2)*struct['xlf']*struct['xr'] + 2*power(struct['C2'],2)*struct['xlf']*struct['xr'] - 4*power(struct['C1'],2)*power(struct['xr'],2) - power(struct['C2'],2)*power(struct['xr'],2) + 4*struct['C1']*struct['C2']*struct['xlf']*struct['ylf'] + 4*struct['C2']*struct['C3']*struct['xlf']*struct['ylf'] - 4*struct['C1']*struct['C2']*struct['xr']*struct['ylf'] - 4*struct['C2']*struct['C3']*struct['xr']*struct['ylf'] - power(struct['C2'],2)*power(struct['ylf'],2) - 4*power(struct['C3'],2)*power(struct['ylf'],2) - 4*struct['C1']*struct['C2']*struct['xlf']*struct['yr'] - 4*struct['C2']*struct['C3']*struct['xlf']*struct['yr'] + 4*struct['C1']*struct['C2']*struct['xr']*struct['yr'] + 4*struct['C2']*struct['C3']*struct['xr']*struct['yr'] + 2*power(struct['C2'],2)*struct['ylf']*struct['yr'] + 8*power(struct['C3'],2)*struct['ylf']*struct['yr'] - power(struct['C2'],2)*power(struct['yr'],2) - 4*power(struct['C3'],2)*power(struct['yr'],2) - 4*power(struct['C1'],2)*power(struct['xlf'],2)*np.cos(2*struct['alpha']) + power(struct['C2'],2)*power(struct['xlf'],2)*np.cos(2*struct['alpha']) + 8*power(struct['C1'],2)*struct['xlf']*struct['xr']*np.cos(2*struct['alpha']) - 2*power(struct['C2'],2)*struct['xlf']*struct['xr']*np.cos(2*struct['alpha']) - 4*power(struct['C1'],2)*power(struct['xr'],2)*np.cos(2*struct['alpha']) + power(struct['C2'],2)*power(struct['xr'],2)*np.cos(2*struct['alpha']) + 4*struct['C1']*struct['C2']*struct['xlf']*struct['ylf']*np.cos(2*struct['alpha']) - 4*struct['C2']*struct['C3']*struct['xlf']*struct['ylf']*np.cos(2*struct['alpha']) - 4*struct['C1']*struct['C2']*struct['xr']*struct['ylf']*np.cos(2*struct['alpha']) + 4*struct['C2']*struct['C3']*struct['xr']*struct['ylf']*np.cos(2*struct['alpha']) - power(struct['C2'],2)*power(struct['ylf'],2)*np.cos(2*struct['alpha']) + 4*power(struct['C3'],2)*power(struct['ylf'],2)*np.cos(2*struct['alpha']) - 4*struct['C1']*struct['C2']*struct['xlf']*struct['yr']*np.cos(2*struct['alpha']) + 4*struct['C2']*struct['C3']*struct['xlf']*struct['yr']*np.cos(2*struct['alpha']) + 4*struct['C1']*struct['C2']*struct['xr']*struct['yr']*np.cos(2*struct['alpha']) - 4*struct['C2']*struct['C3']*struct['xr']*struct['yr']*np.cos(2*struct['alpha']) + 2*power(struct['C2'],2)*struct['ylf']*struct['yr']*np.cos(2*struct['alpha']) - 8*power(struct['C3'],2)*struct['ylf']*struct['yr']*np.cos(2*struct['alpha']) - power(struct['C2'],2)*power(struct['yr'],2)*np.cos(2*struct['alpha']) + 4*power(struct['C3'],2)*power(struct['yr'],2)*np.cos(2*struct['alpha']) + 4*struct['C1']*struct['C2']*power(struct['xlf'],2)*np.sin(2*struct['alpha']) - 8*struct['C1']*struct['C2']*struct['xlf']*struct['xr']*np.sin(2*struct['alpha']) + 4*struct['C1']*struct['C2']*power(struct['xr'],2)*np.sin(2*struct['alpha']) - 2*power(struct['C2'],2)*struct['xlf']*struct['ylf']*np.sin(2*struct['alpha']) - 8*struct['C1']*struct['C3']*struct['xlf']*struct['ylf']*np.sin(2*struct['alpha']) + 2*power(struct['C2'],2)*struct['xr']*struct['ylf']*np.sin(2*struct['alpha']) + 8*struct['C1']*struct['C3']*struct['xr']*struct['ylf']*np.sin(2*struct['alpha']) + 4*struct['C2']*struct['C3']*power(struct['ylf'],2)*np.sin(2*struct['alpha']) + 2*power(struct['C2'],2)*struct['xlf']*struct['yr']*np.sin(2*struct['alpha']) + 8*struct['C1']*struct['C3']*struct['xlf']*struct['yr']*np.sin(2*struct['alpha']) - 2*power(struct['C2'],2)*struct['xr']*struct['yr']*np.sin(2*struct['alpha']) - 8*struct['C1']*struct['C3']*struct['xr']*struct['yr']*np.sin(2*struct['alpha']) - 8*struct['C2']*struct['C3']*struct['ylf']*struct['yr']*np.sin(2*struct['alpha']) + 4*struct['C2']*struct['C3']*power(struct['yr'],2)*np.sin(2*struct['alpha']))/ (4.*(struct['C1'] + struct['C3'] + struct['C1']*np.cos(2*struct['alpha']) - struct['C3']*np.cos(2*struct['alpha']) - struct['C2']*np.sin(2*struct['alpha']))))*np.sqrt(np.pi/2.)* special.erfi((complex(0,-2)*struct['C1']*struct['xlf']*np.cos(struct['alpha']) + complex(0,2)*struct['C1']*struct['xr']*np.cos(struct['alpha']) + complex(0,1)*struct['C2']*struct['ylf']*np.cos(struct['alpha']) - complex(0,1)*struct['C2']*struct['yr']*np.cos(struct['alpha']) + complex(0,1)*struct['C2']*struct['xlf']*np.sin(struct['alpha']) - complex(0,1)*struct['C2']*struct['xr']*np.sin(struct['alpha']) - complex(0,2)*struct['C3']*struct['ylf']*np.sin(struct['alpha']) + complex(0,2)*struct['C3']*struct['yr']*np.sin(struct['alpha']))/ (np.sqrt(2)*np.sqrt(struct['C1'] + struct['C3'] + struct['C1']*np.cos(2*struct['alpha']) - struct['C3']*np.cos(2*struct['alpha']) - struct['C2']*np.sin(2*struct['alpha']))))* (-2*struct['C2']*np.cos(2*struct['alpha']) - 2*struct['C1']*np.sin(2*struct['alpha']) + 2*struct['C3']*np.sin(2*struct['alpha'])))/ (2.*np.sqrt(struct['C1'] + struct['C3'] + struct['C1']*np.cos(2*struct['alpha']) - struct['C3']*np.cos(2*struct['alpha']) - struct['C2']*np.sin(2*struct['alpha']))* (complex(0,1)*struct['C1'] + complex(0,1)*struct['C3'] + complex(0,1)*struct['C1']*np.cos(2*struct['alpha']) - complex(0,1)*struct['C3']*np.cos(2*struct['alpha']) - complex(0,1)*struct['C2']*np.sin(2*struct['alpha']))) + (power(struct['E'],-(struct['C1']*power(struct['xlf'],2)) + 2*struct['C1']*struct['xlf']*struct['xr'] - struct['C1']*power(struct['xr'],2) + struct['C2']*struct['xlf']*struct['ylf'] - struct['C2']*struct['xr']*struct['ylf'] - struct['C3']*power(struct['ylf'],2) - struct['C2']*struct['xlf']*struct['yr'] + struct['C2']*struct['xr']*struct['yr'] + 2*struct['C3']*struct['ylf']*struct['yr'] - struct['C3']*power(struct['yr'],2) - (-4*power(struct['C1'],2)*power(struct['xlf'],2) - power(struct['C2'],2)*power(struct['xlf'],2) + 8*power(struct['C1'],2)*struct['xlf']*struct['xr'] + 2*power(struct['C2'],2)*struct['xlf']*struct['xr'] - 4*power(struct['C1'],2)*power(struct['xr'],2) - power(struct['C2'],2)*power(struct['xr'],2) + 4*struct['C1']*struct['C2']*struct['xlf']*struct['ylf'] + 4*struct['C2']*struct['C3']*struct['xlf']*struct['ylf'] - 4*struct['C1']*struct['C2']*struct['xr']*struct['ylf'] - 4*struct['C2']*struct['C3']*struct['xr']*struct['ylf'] - power(struct['C2'],2)*power(struct['ylf'],2) - 4*power(struct['C3'],2)*power(struct['ylf'],2) - 4*struct['C1']*struct['C2']*struct['xlf']*struct['yr'] - 4*struct['C2']*struct['C3']*struct['xlf']*struct['yr'] + 4*struct['C1']*struct['C2']*struct['xr']*struct['yr'] + 4*struct['C2']*struct['C3']*struct['xr']*struct['yr'] + 2*power(struct['C2'],2)*struct['ylf']*struct['yr'] + 8*power(struct['C3'],2)*struct['ylf']*struct['yr'] - power(struct['C2'],2)*power(struct['yr'],2) - 4*power(struct['C3'],2)*power(struct['yr'],2) - 4*power(struct['C1'],2)*power(struct['xlf'],2)*np.cos(2*struct['alpha']) + power(struct['C2'],2)*power(struct['xlf'],2)*np.cos(2*struct['alpha']) + 8*power(struct['C1'],2)*struct['xlf']*struct['xr']*np.cos(2*struct['alpha']) - 2*power(struct['C2'],2)*struct['xlf']*struct['xr']*np.cos(2*struct['alpha']) - 4*power(struct['C1'],2)*power(struct['xr'],2)*np.cos(2*struct['alpha']) + power(struct['C2'],2)*power(struct['xr'],2)*np.cos(2*struct['alpha']) + 4*struct['C1']*struct['C2']*struct['xlf']*struct['ylf']*np.cos(2*struct['alpha']) - 4*struct['C2']*struct['C3']*struct['xlf']*struct['ylf']*np.cos(2*struct['alpha']) - 4*struct['C1']*struct['C2']*struct['xr']*struct['ylf']*np.cos(2*struct['alpha']) + 4*struct['C2']*struct['C3']*struct['xr']*struct['ylf']*np.cos(2*struct['alpha']) - power(struct['C2'],2)*power(struct['ylf'],2)*np.cos(2*struct['alpha']) + 4*power(struct['C3'],2)*power(struct['ylf'],2)*np.cos(2*struct['alpha']) - 4*struct['C1']*struct['C2']*struct['xlf']*struct['yr']*np.cos(2*struct['alpha']) + 4*struct['C2']*struct['C3']*struct['xlf']*struct['yr']*np.cos(2*struct['alpha']) + 4*struct['C1']*struct['C2']*struct['xr']*struct['yr']*np.cos(2*struct['alpha']) - 4*struct['C2']*struct['C3']*struct['xr']*struct['yr']*np.cos(2*struct['alpha']) + 2*power(struct['C2'],2)*struct['ylf']*struct['yr']*np.cos(2*struct['alpha']) - 8*power(struct['C3'],2)*struct['ylf']*struct['yr']*np.cos(2*struct['alpha']) - power(struct['C2'],2)*power(struct['yr'],2)*np.cos(2*struct['alpha']) + 4*power(struct['C3'],2)*power(struct['yr'],2)*np.cos(2*struct['alpha']) + 4*struct['C1']*struct['C2']*power(struct['xlf'],2)*np.sin(2*struct['alpha']) - 8*struct['C1']*struct['C2']*struct['xlf']*struct['xr']*np.sin(2*struct['alpha']) + 4*struct['C1']*struct['C2']*power(struct['xr'],2)*np.sin(2*struct['alpha']) - 2*power(struct['C2'],2)*struct['xlf']*struct['ylf']*np.sin(2*struct['alpha']) - 8*struct['C1']*struct['C3']*struct['xlf']*struct['ylf']*np.sin(2*struct['alpha']) + 2*power(struct['C2'],2)*struct['xr']*struct['ylf']*np.sin(2*struct['alpha']) + 8*struct['C1']*struct['C3']*struct['xr']*struct['ylf']*np.sin(2*struct['alpha']) + 4*struct['C2']*struct['C3']*power(struct['ylf'],2)*np.sin(2*struct['alpha']) + 2*power(struct['C2'],2)*struct['xlf']*struct['yr']*np.sin(2*struct['alpha']) + 8*struct['C1']*struct['C3']*struct['xlf']*struct['yr']*np.sin(2*struct['alpha']) - 2*power(struct['C2'],2)*struct['xr']*struct['yr']*np.sin(2*struct['alpha']) - 8*struct['C1']*struct['C3']*struct['xr']*struct['yr']*np.sin(2*struct['alpha']) - 8*struct['C2']*struct['C3']*struct['ylf']*struct['yr']*np.sin(2*struct['alpha']) + 4*struct['C2']*struct['C3']*power(struct['yr'],2)*np.sin(2*struct['alpha']))/ (4.*(struct['C1'] + struct['C3'] + struct['C1']*np.cos(2*struct['alpha']) - struct['C3']*np.cos(2*struct['alpha']) - struct['C2']*np.sin(2*struct['alpha']))))*np.sqrt(np.pi/2.)* special.erfi((complex(0,1)*struct['C1']*struct['L'] + complex(0,1)*struct['C3']*struct['L'] - complex(0,2)*struct['C1']*struct['xlf']*np.cos(struct['alpha']) + complex(0,2)*struct['C1']*struct['xr']*np.cos(struct['alpha']) + complex(0,1)*struct['C2']*struct['ylf']*np.cos(struct['alpha']) - complex(0,1)*struct['C2']*struct['yr']*np.cos(struct['alpha']) + complex(0,1)*struct['C1']*struct['L']*np.cos(2*struct['alpha']) - complex(0,1)*struct['C3']*struct['L']*np.cos(2*struct['alpha']) + complex(0,1)*struct['C2']*struct['xlf']*np.sin(struct['alpha']) - complex(0,1)*struct['C2']*struct['xr']*np.sin(struct['alpha']) - complex(0,2)*struct['C3']*struct['ylf']*np.sin(struct['alpha']) + complex(0,2)*struct['C3']*struct['yr']*np.sin(struct['alpha']) - complex(0,1)*struct['C2']*struct['L']*np.sin(2*struct['alpha']))/ (np.sqrt(2)*np.sqrt(struct['C1'] + struct['C3'] + struct['C1']*np.cos(2*struct['alpha']) - struct['C3']*np.cos(2*struct['alpha']) - struct['C2']*np.sin(2*struct['alpha']))))* (-2*struct['C2']*np.cos(2*struct['alpha']) - 2*struct['C1']*np.sin(2*struct['alpha']) + 2*struct['C3']*np.sin(2*struct['alpha'])))/ (2.*np.sqrt(struct['C1'] + struct['C3'] + struct['C1']*np.cos(2*struct['alpha']) - struct['C3']*np.cos(2*struct['alpha']) - struct['C2']*np.sin(2*struct['alpha']))* (complex(0,1)*struct['C1'] + complex(0,1)*struct['C3'] + complex(0,1)*struct['C1']*np.cos(2*struct['alpha']) - complex(0,1)*struct['C3']*np.cos(2*struct['alpha']) - complex(0,1)*struct['C2']*np.sin(2*struct['alpha']))) - (np.sqrt(2)*power(struct['E'],-(struct['C1']*power(struct['xlf'],2)) + 2*struct['C1']*struct['xlf']*struct['xr'] - struct['C1']*power(struct['xr'],2) + struct['C2']*struct['xlf']*struct['ylf'] - struct['C2']*struct['xr']*struct['ylf'] - struct['C3']*power(struct['ylf'],2) - struct['C2']*struct['xlf']*struct['yr'] + struct['C2']*struct['xr']*struct['yr'] + 2*struct['C3']*struct['ylf']*struct['yr'] - struct['C3']*power(struct['yr'],2) + power(complex(0,-2)*struct['C1']*struct['xlf']*np.cos(struct['alpha']) + complex(0,2)*struct['C1']*struct['xr']*np.cos(struct['alpha']) + complex(0,1)*struct['C2']*struct['ylf']*np.cos(struct['alpha']) - complex(0,1)*struct['C2']*struct['yr']*np.cos(struct['alpha']) + complex(0,1)*struct['C2']*struct['xlf']*np.sin(struct['alpha']) - complex(0,1)*struct['C2']*struct['xr']*np.sin(struct['alpha']) - complex(0,2)*struct['C3']*struct['ylf']*np.sin(struct['alpha']) + complex(0,2)*struct['C3']*struct['yr']*np.sin(struct['alpha']),2)/ (2.*(struct['C1'] + struct['C3'] + struct['C1']*np.cos(2*struct['alpha']) - struct['C3']*np.cos(2*struct['alpha']) - struct['C2']*np.sin(2*struct['alpha']))) - (-4*power(struct['C1'],2)*power(struct['xlf'],2) - power(struct['C2'],2)*power(struct['xlf'],2) + 8*power(struct['C1'],2)*struct['xlf']*struct['xr'] + 2*power(struct['C2'],2)*struct['xlf']*struct['xr'] - 4*power(struct['C1'],2)*power(struct['xr'],2) - power(struct['C2'],2)*power(struct['xr'],2) + 4*struct['C1']*struct['C2']*struct['xlf']*struct['ylf'] + 4*struct['C2']*struct['C3']*struct['xlf']*struct['ylf'] - 4*struct['C1']*struct['C2']*struct['xr']*struct['ylf'] - 4*struct['C2']*struct['C3']*struct['xr']*struct['ylf'] - power(struct['C2'],2)*power(struct['ylf'],2) - 4*power(struct['C3'],2)*power(struct['ylf'],2) - 4*struct['C1']*struct['C2']*struct['xlf']*struct['yr'] - 4*struct['C2']*struct['C3']*struct['xlf']*struct['yr'] + 4*struct['C1']*struct['C2']*struct['xr']*struct['yr'] + 4*struct['C2']*struct['C3']*struct['xr']*struct['yr'] + 2*power(struct['C2'],2)*struct['ylf']*struct['yr'] + 8*power(struct['C3'],2)*struct['ylf']*struct['yr'] - power(struct['C2'],2)*power(struct['yr'],2) - 4*power(struct['C3'],2)*power(struct['yr'],2) - 4*power(struct['C1'],2)*power(struct['xlf'],2)*np.cos(2*struct['alpha']) + power(struct['C2'],2)*power(struct['xlf'],2)*np.cos(2*struct['alpha']) + 8*power(struct['C1'],2)*struct['xlf']*struct['xr']*np.cos(2*struct['alpha']) - 2*power(struct['C2'],2)*struct['xlf']*struct['xr']*np.cos(2*struct['alpha']) - 4*power(struct['C1'],2)*power(struct['xr'],2)*np.cos(2*struct['alpha']) + power(struct['C2'],2)*power(struct['xr'],2)*np.cos(2*struct['alpha']) + 4*struct['C1']*struct['C2']*struct['xlf']*struct['ylf']*np.cos(2*struct['alpha']) - 4*struct['C2']*struct['C3']*struct['xlf']*struct['ylf']*np.cos(2*struct['alpha']) - 4*struct['C1']*struct['C2']*struct['xr']*struct['ylf']*np.cos(2*struct['alpha']) + 4*struct['C2']*struct['C3']*struct['xr']*struct['ylf']*np.cos(2*struct['alpha']) - power(struct['C2'],2)*power(struct['ylf'],2)*np.cos(2*struct['alpha']) + 4*power(struct['C3'],2)*power(struct['ylf'],2)*np.cos(2*struct['alpha']) - 4*struct['C1']*struct['C2']*struct['xlf']*struct['yr']*np.cos(2*struct['alpha']) + 4*struct['C2']*struct['C3']*struct['xlf']*struct['yr']*np.cos(2*struct['alpha']) + 4*struct['C1']*struct['C2']*struct['xr']*struct['yr']*np.cos(2*struct['alpha']) - 4*struct['C2']*struct['C3']*struct['xr']*struct['yr']*np.cos(2*struct['alpha']) + 2*power(struct['C2'],2)*struct['ylf']*struct['yr']*np.cos(2*struct['alpha']) - 8*power(struct['C3'],2)*struct['ylf']*struct['yr']*np.cos(2*struct['alpha']) - power(struct['C2'],2)*power(struct['yr'],2)*np.cos(2*struct['alpha']) + 4*power(struct['C3'],2)*power(struct['yr'],2)*np.cos(2*struct['alpha']) + 4*struct['C1']*struct['C2']*power(struct['xlf'],2)*np.sin(2*struct['alpha']) - 8*struct['C1']*struct['C2']*struct['xlf']*struct['xr']*np.sin(2*struct['alpha']) + 4*struct['C1']*struct['C2']*power(struct['xr'],2)*np.sin(2*struct['alpha']) - 2*power(struct['C2'],2)*struct['xlf']*struct['ylf']*np.sin(2*struct['alpha']) - 8*struct['C1']*struct['C3']*struct['xlf']*struct['ylf']*np.sin(2*struct['alpha']) + 2*power(struct['C2'],2)*struct['xr']*struct['ylf']*np.sin(2*struct['alpha']) + 8*struct['C1']*struct['C3']*struct['xr']*struct['ylf']*np.sin(2*struct['alpha']) + 4*struct['C2']*struct['C3']*power(struct['ylf'],2)*np.sin(2*struct['alpha']) + 2*power(struct['C2'],2)*struct['xlf']*struct['yr']*np.sin(2*struct['alpha']) + 8*struct['C1']*struct['C3']*struct['xlf']*struct['yr']*np.sin(2*struct['alpha']) - 2*power(struct['C2'],2)*struct['xr']*struct['yr']*np.sin(2*struct['alpha']) - 8*struct['C1']*struct['C3']*struct['xr']*struct['yr']*np.sin(2*struct['alpha']) - 8*struct['C2']*struct['C3']*struct['ylf']*struct['yr']*np.sin(2*struct['alpha']) + 4*struct['C2']*struct['C3']*power(struct['yr'],2)*np.sin(2*struct['alpha']))/ (4.*(struct['C1'] + struct['C3'] + struct['C1']*np.cos(2*struct['alpha']) - struct['C3']*np.cos(2*struct['alpha']) - struct['C2']*np.sin(2*struct['alpha']))))* np.sqrt(struct['C1'] + struct['C3'] + struct['C1']*np.cos(2*struct['alpha']) - struct['C3']*np.cos(2*struct['alpha']) - struct['C2']*np.sin(2*struct['alpha']))* ((complex(0,1)*struct['C2']*struct['xlf']*np.cos(struct['alpha']) - complex(0,1)*struct['C2']*struct['xr']*np.cos(struct['alpha']) - complex(0,2)*struct['C3']*struct['ylf']*np.cos(struct['alpha']) + complex(0,2)*struct['C3']*struct['yr']*np.cos(struct['alpha']) + complex(0,2)*struct['C1']*struct['xlf']*np.sin(struct['alpha']) - complex(0,2)*struct['C1']*struct['xr']*np.sin(struct['alpha']) - complex(0,1)*struct['C2']*struct['ylf']*np.sin(struct['alpha']) + complex(0,1)*struct['C2']*struct['yr']*np.sin(struct['alpha']))/ (np.sqrt(2)*np.sqrt(struct['C1'] + struct['C3'] + struct['C1']*np.cos(2*struct['alpha']) - struct['C3']*np.cos(2*struct['alpha']) - struct['C2']*np.sin(2*struct['alpha']))) - ((complex(0,-2)*struct['C1']*struct['xlf']*np.cos(struct['alpha']) + complex(0,2)*struct['C1']*struct['xr']*np.cos(struct['alpha']) + complex(0,1)*struct['C2']*struct['ylf']*np.cos(struct['alpha']) - complex(0,1)*struct['C2']*struct['yr']*np.cos(struct['alpha']) + complex(0,1)*struct['C2']*struct['xlf']*np.sin(struct['alpha']) - complex(0,1)*struct['C2']*struct['xr']*np.sin(struct['alpha']) - complex(0,2)*struct['C3']*struct['ylf']*np.sin(struct['alpha']) + complex(0,2)*struct['C3']*struct['yr']*np.sin(struct['alpha']))* (-2*struct['C2']*np.cos(2*struct['alpha']) - 2*struct['C1']*np.sin(2*struct['alpha']) + 2*struct['C3']*np.sin(2*struct['alpha'])))/ (2.*np.sqrt(2)*power(struct['C1'] + struct['C3'] + struct['C1']*np.cos(2*struct['alpha']) - struct['C3']*np.cos(2*struct['alpha']) - struct['C2']*np.sin(2*struct['alpha']),1.5))))/ (complex(0,1)*struct['C1'] + complex(0,1)*struct['C3'] + complex(0,1)*struct['C1']*np.cos(2*struct['alpha']) - complex(0,1)*struct['C3']*np.cos(2*struct['alpha']) - complex(0,1)*struct['C2']*np.sin(2*struct['alpha'])) + (np.sqrt(2)*power(struct['E'],-(struct['C1']*power(struct['xlf'],2)) + 2*struct['C1']*struct['xlf']*struct['xr'] - struct['C1']*power(struct['xr'],2) + struct['C2']*struct['xlf']*struct['ylf'] - struct['C2']*struct['xr']*struct['ylf'] - struct['C3']*power(struct['ylf'],2) - struct['C2']*struct['xlf']*struct['yr'] + struct['C2']*struct['xr']*struct['yr'] + 2*struct['C3']*struct['ylf']*struct['yr'] - struct['C3']*power(struct['yr'],2) + power(complex(0,1)*struct['C1']*struct['L'] + complex(0,1)*struct['C3']*struct['L'] - complex(0,2)*struct['C1']*struct['xlf']*np.cos(struct['alpha']) + complex(0,2)*struct['C1']*struct['xr']*np.cos(struct['alpha']) + complex(0,1)*struct['C2']*struct['ylf']*np.cos(struct['alpha']) - complex(0,1)*struct['C2']*struct['yr']*np.cos(struct['alpha']) + complex(0,1)*struct['C1']*struct['L']*np.cos(2*struct['alpha']) - complex(0,1)*struct['C3']*struct['L']*np.cos(2*struct['alpha']) + complex(0,1)*struct['C2']*struct['xlf']*np.sin(struct['alpha']) - complex(0,1)*struct['C2']*struct['xr']*np.sin(struct['alpha']) - complex(0,2)*struct['C3']*struct['ylf']*np.sin(struct['alpha']) + complex(0,2)*struct['C3']*struct['yr']*np.sin(struct['alpha']) - complex(0,1)*struct['C2']*struct['L']*np.sin(2*struct['alpha']),2)/ (2.*(struct['C1'] + struct['C3'] + struct['C1']*np.cos(2*struct['alpha']) - struct['C3']*np.cos(2*struct['alpha']) - struct['C2']*np.sin(2*struct['alpha']))) - (-4*power(struct['C1'],2)*power(struct['xlf'],2) - power(struct['C2'],2)*power(struct['xlf'],2) + 8*power(struct['C1'],2)*struct['xlf']*struct['xr'] + 2*power(struct['C2'],2)*struct['xlf']*struct['xr'] - 4*power(struct['C1'],2)*power(struct['xr'],2) - power(struct['C2'],2)*power(struct['xr'],2) + 4*struct['C1']*struct['C2']*struct['xlf']*struct['ylf'] + 4*struct['C2']*struct['C3']*struct['xlf']*struct['ylf'] - 4*struct['C1']*struct['C2']*struct['xr']*struct['ylf'] - 4*struct['C2']*struct['C3']*struct['xr']*struct['ylf'] - power(struct['C2'],2)*power(struct['ylf'],2) - 4*power(struct['C3'],2)*power(struct['ylf'],2) - 4*struct['C1']*struct['C2']*struct['xlf']*struct['yr'] - 4*struct['C2']*struct['C3']*struct['xlf']*struct['yr'] + 4*struct['C1']*struct['C2']*struct['xr']*struct['yr'] + 4*struct['C2']*struct['C3']*struct['xr']*struct['yr'] + 2*power(struct['C2'],2)*struct['ylf']*struct['yr'] + 8*power(struct['C3'],2)*struct['ylf']*struct['yr'] - power(struct['C2'],2)*power(struct['yr'],2) - 4*power(struct['C3'],2)*power(struct['yr'],2) - 4*power(struct['C1'],2)*power(struct['xlf'],2)*np.cos(2*struct['alpha']) + power(struct['C2'],2)*power(struct['xlf'],2)*np.cos(2*struct['alpha']) + 8*power(struct['C1'],2)*struct['xlf']*struct['xr']*np.cos(2*struct['alpha']) - 2*power(struct['C2'],2)*struct['xlf']*struct['xr']*np.cos(2*struct['alpha']) - 4*power(struct['C1'],2)*power(struct['xr'],2)*np.cos(2*struct['alpha']) + power(struct['C2'],2)*power(struct['xr'],2)*np.cos(2*struct['alpha']) + 4*struct['C1']*struct['C2']*struct['xlf']*struct['ylf']*np.cos(2*struct['alpha']) - 4*struct['C2']*struct['C3']*struct['xlf']*struct['ylf']*np.cos(2*struct['alpha']) - 4*struct['C1']*struct['C2']*struct['xr']*struct['ylf']*np.cos(2*struct['alpha']) + 4*struct['C2']*struct['C3']*struct['xr']*struct['ylf']*np.cos(2*struct['alpha']) - power(struct['C2'],2)*power(struct['ylf'],2)*np.cos(2*struct['alpha']) + 4*power(struct['C3'],2)*power(struct['ylf'],2)*np.cos(2*struct['alpha']) - 4*struct['C1']*struct['C2']*struct['xlf']*struct['yr']*np.cos(2*struct['alpha']) + 4*struct['C2']*struct['C3']*struct['xlf']*struct['yr']*np.cos(2*struct['alpha']) + 4*struct['C1']*struct['C2']*struct['xr']*struct['yr']*np.cos(2*struct['alpha']) - 4*struct['C2']*struct['C3']*struct['xr']*struct['yr']*np.cos(2*struct['alpha']) + 2*power(struct['C2'],2)*struct['ylf']*struct['yr']*np.cos(2*struct['alpha']) - 8*power(struct['C3'],2)*struct['ylf']*struct['yr']*np.cos(2*struct['alpha']) - power(struct['C2'],2)*power(struct['yr'],2)*np.cos(2*struct['alpha']) + 4*power(struct['C3'],2)*power(struct['yr'],2)*np.cos(2*struct['alpha']) + 4*struct['C1']*struct['C2']*power(struct['xlf'],2)*np.sin(2*struct['alpha']) - 8*struct['C1']*struct['C2']*struct['xlf']*struct['xr']*np.sin(2*struct['alpha']) + 4*struct['C1']*struct['C2']*power(struct['xr'],2)*np.sin(2*struct['alpha']) - 2*power(struct['C2'],2)*struct['xlf']*struct['ylf']*np.sin(2*struct['alpha']) - 8*struct['C1']*struct['C3']*struct['xlf']*struct['ylf']*np.sin(2*struct['alpha']) + 2*power(struct['C2'],2)*struct['xr']*struct['ylf']*np.sin(2*struct['alpha']) + 8*struct['C1']*struct['C3']*struct['xr']*struct['ylf']*np.sin(2*struct['alpha']) + 4*struct['C2']*struct['C3']*power(struct['ylf'],2)*np.sin(2*struct['alpha']) + 2*power(struct['C2'],2)*struct['xlf']*struct['yr']*np.sin(2*struct['alpha']) + 8*struct['C1']*struct['C3']*struct['xlf']*struct['yr']*np.sin(2*struct['alpha']) - 2*power(struct['C2'],2)*struct['xr']*struct['yr']*np.sin(2*struct['alpha']) - 8*struct['C1']*struct['C3']*struct['xr']*struct['yr']*np.sin(2*struct['alpha']) - 8*struct['C2']*struct['C3']*struct['ylf']*struct['yr']*np.sin(2*struct['alpha']) + 4*struct['C2']*struct['C3']*power(struct['yr'],2)*np.sin(2*struct['alpha']))/ (4.*(struct['C1'] + struct['C3'] + struct['C1']*np.cos(2*struct['alpha']) - struct['C3']*np.cos(2*struct['alpha']) - struct['C2']*np.sin(2*struct['alpha']))))* np.sqrt(struct['C1'] + struct['C3'] + struct['C1']*np.cos(2*struct['alpha']) - struct['C3']*np.cos(2*struct['alpha']) - struct['C2']*np.sin(2*struct['alpha']))* (-((-2*struct['C2']*np.cos(2*struct['alpha']) - 2*struct['C1']*np.sin(2*struct['alpha']) + 2*struct['C3']*np.sin(2*struct['alpha']))* (complex(0,1)*struct['C1']*struct['L'] + complex(0,1)*struct['C3']*struct['L'] - complex(0,2)*struct['C1']*struct['xlf']*np.cos(struct['alpha']) + complex(0,2)*struct['C1']*struct['xr']*np.cos(struct['alpha']) + complex(0,1)*struct['C2']*struct['ylf']*np.cos(struct['alpha']) - complex(0,1)*struct['C2']*struct['yr']*np.cos(struct['alpha']) + complex(0,1)*struct['C1']*struct['L']*np.cos(2*struct['alpha']) - complex(0,1)*struct['C3']*struct['L']*np.cos(2*struct['alpha']) + complex(0,1)*struct['C2']*struct['xlf']*np.sin(struct['alpha']) - complex(0,1)*struct['C2']*struct['xr']*np.sin(struct['alpha']) - complex(0,2)*struct['C3']*struct['ylf']*np.sin(struct['alpha']) + complex(0,2)*struct['C3']*struct['yr']*np.sin(struct['alpha']) - complex(0,1)*struct['C2']*struct['L']*np.sin(2*struct['alpha'])))/ (2.*np.sqrt(2)*power(struct['C1'] + struct['C3'] + struct['C1']*np.cos(2*struct['alpha']) - struct['C3']*np.cos(2*struct['alpha']) - struct['C2']*np.sin(2*struct['alpha']),1.5)) + (complex(0,1)*struct['C2']*struct['xlf']*np.cos(struct['alpha']) - complex(0,1)*struct['C2']*struct['xr']*np.cos(struct['alpha']) - complex(0,2)*struct['C3']*struct['ylf']*np.cos(struct['alpha']) + complex(0,2)*struct['C3']*struct['yr']*np.cos(struct['alpha']) - complex(0,2)*struct['C2']*struct['L']*np.cos(2*struct['alpha']) + complex(0,2)*struct['C1']*struct['xlf']*np.sin(struct['alpha']) - complex(0,2)*struct['C1']*struct['xr']*np.sin(struct['alpha']) - complex(0,1)*struct['C2']*struct['ylf']*np.sin(struct['alpha']) + complex(0,1)*struct['C2']*struct['yr']*np.sin(struct['alpha']) - complex(0,2)*struct['C1']*struct['L']*np.sin(2*struct['alpha']) + complex(0,2)*struct['C3']*struct['L']*np.sin(2*struct['alpha']))/ (np.sqrt(2)*np.sqrt(struct['C1'] + struct['C3'] + struct['C1']*np.cos(2*struct['alpha']) - struct['C3']*np.cos(2*struct['alpha']) - struct['C2']*np.sin(2*struct['alpha'])))))/ (complex(0,1)*struct['C1'] + complex(0,1)*struct['C3'] + complex(0,1)*struct['C1']*np.cos(2*struct['alpha']) - complex(0,1)*struct['C3']*np.cos(2*struct['alpha']) - complex(0,1)*struct['C2']*np.sin(2*struct['alpha'])) - (power(struct['E'],-(struct['C1']*power(struct['xlf'],2)) + 2*struct['C1']*struct['xlf']*struct['xr'] - struct['C1']*power(struct['xr'],2) + struct['C2']*struct['xlf']*struct['ylf'] - struct['C2']*struct['xr']*struct['ylf'] - struct['C3']*power(struct['ylf'],2) - struct['C2']*struct['xlf']*struct['yr'] + struct['C2']*struct['xr']*struct['yr'] + 2*struct['C3']*struct['ylf']*struct['yr'] - struct['C3']*power(struct['yr'],2) - (-4*power(struct['C1'],2)*power(struct['xlf'],2) - power(struct['C2'],2)*power(struct['xlf'],2) + 8*power(struct['C1'],2)*struct['xlf']*struct['xr'] + 2*power(struct['C2'],2)*struct['xlf']*struct['xr'] - 4*power(struct['C1'],2)*power(struct['xr'],2) - power(struct['C2'],2)*power(struct['xr'],2) + 4*struct['C1']*struct['C2']*struct['xlf']*struct['ylf'] + 4*struct['C2']*struct['C3']*struct['xlf']*struct['ylf'] - 4*struct['C1']*struct['C2']*struct['xr']*struct['ylf'] - 4*struct['C2']*struct['C3']*struct['xr']*struct['ylf'] - power(struct['C2'],2)*power(struct['ylf'],2) - 4*power(struct['C3'],2)*power(struct['ylf'],2) - 4*struct['C1']*struct['C2']*struct['xlf']*struct['yr'] - 4*struct['C2']*struct['C3']*struct['xlf']*struct['yr'] + 4*struct['C1']*struct['C2']*struct['xr']*struct['yr'] + 4*struct['C2']*struct['C3']*struct['xr']*struct['yr'] + 2*power(struct['C2'],2)*struct['ylf']*struct['yr'] + 8*power(struct['C3'],2)*struct['ylf']*struct['yr'] - power(struct['C2'],2)*power(struct['yr'],2) - 4*power(struct['C3'],2)*power(struct['yr'],2) - 4*power(struct['C1'],2)*power(struct['xlf'],2)*np.cos(2*struct['alpha']) + power(struct['C2'],2)*power(struct['xlf'],2)*np.cos(2*struct['alpha']) + 8*power(struct['C1'],2)*struct['xlf']*struct['xr']*np.cos(2*struct['alpha']) - 2*power(struct['C2'],2)*struct['xlf']*struct['xr']*np.cos(2*struct['alpha']) - 4*power(struct['C1'],2)*power(struct['xr'],2)*np.cos(2*struct['alpha']) + power(struct['C2'],2)*power(struct['xr'],2)*np.cos(2*struct['alpha']) + 4*struct['C1']*struct['C2']*struct['xlf']*struct['ylf']*np.cos(2*struct['alpha']) - 4*struct['C2']*struct['C3']*struct['xlf']*struct['ylf']*np.cos(2*struct['alpha']) - 4*struct['C1']*struct['C2']*struct['xr']*struct['ylf']*np.cos(2*struct['alpha']) + 4*struct['C2']*struct['C3']*struct['xr']*struct['ylf']*np.cos(2*struct['alpha']) - power(struct['C2'],2)*power(struct['ylf'],2)*np.cos(2*struct['alpha']) + 4*power(struct['C3'],2)*power(struct['ylf'],2)*np.cos(2*struct['alpha']) - 4*struct['C1']*struct['C2']*struct['xlf']*struct['yr']*np.cos(2*struct['alpha']) + 4*struct['C2']*struct['C3']*struct['xlf']*struct['yr']*np.cos(2*struct['alpha']) + 4*struct['C1']*struct['C2']*struct['xr']*struct['yr']*np.cos(2*struct['alpha']) - 4*struct['C2']*struct['C3']*struct['xr']*struct['yr']*np.cos(2*struct['alpha']) + 2*power(struct['C2'],2)*struct['ylf']*struct['yr']*np.cos(2*struct['alpha']) - 8*power(struct['C3'],2)*struct['ylf']*struct['yr']*np.cos(2*struct['alpha']) - power(struct['C2'],2)*power(struct['yr'],2)*np.cos(2*struct['alpha']) + 4*power(struct['C3'],2)*power(struct['yr'],2)*np.cos(2*struct['alpha']) + 4*struct['C1']*struct['C2']*power(struct['xlf'],2)*np.sin(2*struct['alpha']) - 8*struct['C1']*struct['C2']*struct['xlf']*struct['xr']*np.sin(2*struct['alpha']) + 4*struct['C1']*struct['C2']*power(struct['xr'],2)*np.sin(2*struct['alpha']) - 2*power(struct['C2'],2)*struct['xlf']*struct['ylf']*np.sin(2*struct['alpha']) - 8*struct['C1']*struct['C3']*struct['xlf']*struct['ylf']*np.sin(2*struct['alpha']) + 2*power(struct['C2'],2)*struct['xr']*struct['ylf']*np.sin(2*struct['alpha']) + 8*struct['C1']*struct['C3']*struct['xr']*struct['ylf']*np.sin(2*struct['alpha']) + 4*struct['C2']*struct['C3']*power(struct['ylf'],2)*np.sin(2*struct['alpha']) + 2*power(struct['C2'],2)*struct['xlf']*struct['yr']*np.sin(2*struct['alpha']) + 8*struct['C1']*struct['C3']*struct['xlf']*struct['yr']*np.sin(2*struct['alpha']) - 2*power(struct['C2'],2)*struct['xr']*struct['yr']*np.sin(2*struct['alpha']) - 8*struct['C1']*struct['C3']*struct['xr']*struct['yr']*np.sin(2*struct['alpha']) - 8*struct['C2']*struct['C3']*struct['ylf']*struct['yr']*np.sin(2*struct['alpha']) + 4*struct['C2']*struct['C3']*power(struct['yr'],2)*np.sin(2*struct['alpha']))/ (4.*(struct['C1'] + struct['C3'] + struct['C1']*np.cos(2*struct['alpha']) - struct['C3']*np.cos(2*struct['alpha']) - struct['C2']*np.sin(2*struct['alpha']))))*np.sqrt(np.pi/2.)* special.erfi((complex(0,-2)*struct['C1']*struct['xlf']*np.cos(struct['alpha']) + complex(0,2)*struct['C1']*struct['xr']*np.cos(struct['alpha']) + complex(0,1)*struct['C2']*struct['ylf']*np.cos(struct['alpha']) - complex(0,1)*struct['C2']*struct['yr']*np.cos(struct['alpha']) + complex(0,1)*struct['C2']*struct['xlf']*np.sin(struct['alpha']) - complex(0,1)*struct['C2']*struct['xr']*np.sin(struct['alpha']) - complex(0,2)*struct['C3']*struct['ylf']*np.sin(struct['alpha']) + complex(0,2)*struct['C3']*struct['yr']*np.sin(struct['alpha']))/ (np.sqrt(2)*np.sqrt(struct['C1'] + struct['C3'] + struct['C1']*np.cos(2*struct['alpha']) - struct['C3']*np.cos(2*struct['alpha']) - struct['C2']*np.sin(2*struct['alpha']))))* np.sqrt(struct['C1'] + struct['C3'] + struct['C1']*np.cos(2*struct['alpha']) - struct['C3']*np.cos(2*struct['alpha']) - struct['C2']*np.sin(2*struct['alpha']))* (((-2*struct['C2']*np.cos(2*struct['alpha']) - 2*struct['C1']*np.sin(2*struct['alpha']) + 2*struct['C3']*np.sin(2*struct['alpha']))* (-4*power(struct['C1'],2)*power(struct['xlf'],2) - power(struct['C2'],2)*power(struct['xlf'],2) + 8*power(struct['C1'],2)*struct['xlf']*struct['xr'] + 2*power(struct['C2'],2)*struct['xlf']*struct['xr'] - 4*power(struct['C1'],2)*power(struct['xr'],2) - power(struct['C2'],2)*power(struct['xr'],2) + 4*struct['C1']*struct['C2']*struct['xlf']*struct['ylf'] + 4*struct['C2']*struct['C3']*struct['xlf']*struct['ylf'] - 4*struct['C1']*struct['C2']*struct['xr']*struct['ylf'] - 4*struct['C2']*struct['C3']*struct['xr']*struct['ylf'] - power(struct['C2'],2)*power(struct['ylf'],2) - 4*power(struct['C3'],2)*power(struct['ylf'],2) - 4*struct['C1']*struct['C2']*struct['xlf']*struct['yr'] - 4*struct['C2']*struct['C3']*struct['xlf']*struct['yr'] + 4*struct['C1']*struct['C2']*struct['xr']*struct['yr'] + 4*struct['C2']*struct['C3']*struct['xr']*struct['yr'] + 2*power(struct['C2'],2)*struct['ylf']*struct['yr'] + 8*power(struct['C3'],2)*struct['ylf']*struct['yr'] - power(struct['C2'],2)*power(struct['yr'],2) - 4*power(struct['C3'],2)*power(struct['yr'],2) - 4*power(struct['C1'],2)*power(struct['xlf'],2)*np.cos(2*struct['alpha']) + power(struct['C2'],2)*power(struct['xlf'],2)*np.cos(2*struct['alpha']) + 8*power(struct['C1'],2)*struct['xlf']*struct['xr']*np.cos(2*struct['alpha']) - 2*power(struct['C2'],2)*struct['xlf']*struct['xr']*np.cos(2*struct['alpha']) - 4*power(struct['C1'],2)*power(struct['xr'],2)*np.cos(2*struct['alpha']) + power(struct['C2'],2)*power(struct['xr'],2)*np.cos(2*struct['alpha']) + 4*struct['C1']*struct['C2']*struct['xlf']*struct['ylf']*np.cos(2*struct['alpha']) - 4*struct['C2']*struct['C3']*struct['xlf']*struct['ylf']*np.cos(2*struct['alpha']) - 4*struct['C1']*struct['C2']*struct['xr']*struct['ylf']*np.cos(2*struct['alpha']) + 4*struct['C2']*struct['C3']*struct['xr']*struct['ylf']*np.cos(2*struct['alpha']) - power(struct['C2'],2)*power(struct['ylf'],2)*np.cos(2*struct['alpha']) + 4*power(struct['C3'],2)*power(struct['ylf'],2)*np.cos(2*struct['alpha']) - 4*struct['C1']*struct['C2']*struct['xlf']*struct['yr']*np.cos(2*struct['alpha']) + 4*struct['C2']*struct['C3']*struct['xlf']*struct['yr']*np.cos(2*struct['alpha']) + 4*struct['C1']*struct['C2']*struct['xr']*struct['yr']*np.cos(2*struct['alpha']) - 4*struct['C2']*struct['C3']*struct['xr']*struct['yr']*np.cos(2*struct['alpha']) + 2*power(struct['C2'],2)*struct['ylf']*struct['yr']*np.cos(2*struct['alpha']) - 8*power(struct['C3'],2)*struct['ylf']*struct['yr']*np.cos(2*struct['alpha']) - power(struct['C2'],2)*power(struct['yr'],2)*np.cos(2*struct['alpha']) + 4*power(struct['C3'],2)*power(struct['yr'],2)*np.cos(2*struct['alpha']) + 4*struct['C1']*struct['C2']*power(struct['xlf'],2)*np.sin(2*struct['alpha']) - 8*struct['C1']*struct['C2']*struct['xlf']*struct['xr']*np.sin(2*struct['alpha']) + 4*struct['C1']*struct['C2']*power(struct['xr'],2)*np.sin(2*struct['alpha']) - 2*power(struct['C2'],2)*struct['xlf']*struct['ylf']*np.sin(2*struct['alpha']) - 8*struct['C1']*struct['C3']*struct['xlf']*struct['ylf']*np.sin(2*struct['alpha']) + 2*power(struct['C2'],2)*struct['xr']*struct['ylf']*np.sin(2*struct['alpha']) + 8*struct['C1']*struct['C3']*struct['xr']*struct['ylf']*np.sin(2*struct['alpha']) + 4*struct['C2']*struct['C3']*power(struct['ylf'],2)*np.sin(2*struct['alpha']) + 2*power(struct['C2'],2)*struct['xlf']*struct['yr']*np.sin(2*struct['alpha']) + 8*struct['C1']*struct['C3']*struct['xlf']*struct['yr']*np.sin(2*struct['alpha']) - 2*power(struct['C2'],2)*struct['xr']*struct['yr']*np.sin(2*struct['alpha']) - 8*struct['C1']*struct['C3']*struct['xr']*struct['yr']*np.sin(2*struct['alpha']) - 8*struct['C2']*struct['C3']*struct['ylf']*struct['yr']*np.sin(2*struct['alpha']) + 4*struct['C2']*struct['C3']*power(struct['yr'],2)*np.sin(2*struct['alpha'])))/ (4.*power(struct['C1'] + struct['C3'] + struct['C1']*np.cos(2*struct['alpha']) - struct['C3']*np.cos(2*struct['alpha']) - struct['C2']*np.sin(2*struct['alpha']),2)) - (8*struct['C1']*struct['C2']*power(struct['xlf'],2)*np.cos(2*struct['alpha']) - 16*struct['C1']*struct['C2']*struct['xlf']*struct['xr']*np.cos(2*struct['alpha']) + 8*struct['C1']*struct['C2']*power(struct['xr'],2)*np.cos(2*struct['alpha']) - 4*power(struct['C2'],2)*struct['xlf']*struct['ylf']*np.cos(2*struct['alpha']) - 16*struct['C1']*struct['C3']*struct['xlf']*struct['ylf']*np.cos(2*struct['alpha']) + 4*power(struct['C2'],2)*struct['xr']*struct['ylf']*np.cos(2*struct['alpha']) + 16*struct['C1']*struct['C3']*struct['xr']*struct['ylf']*np.cos(2*struct['alpha']) + 8*struct['C2']*struct['C3']*power(struct['ylf'],2)*np.cos(2*struct['alpha']) + 4*power(struct['C2'],2)*struct['xlf']*struct['yr']*np.cos(2*struct['alpha']) + 16*struct['C1']*struct['C3']*struct['xlf']*struct['yr']*np.cos(2*struct['alpha']) - 4*power(struct['C2'],2)*struct['xr']*struct['yr']*np.cos(2*struct['alpha']) - 16*struct['C1']*struct['C3']*struct['xr']*struct['yr']*np.cos(2*struct['alpha']) - 16*struct['C2']*struct['C3']*struct['ylf']*struct['yr']*np.cos(2*struct['alpha']) + 8*struct['C2']*struct['C3']*power(struct['yr'],2)*np.cos(2*struct['alpha']) + 8*power(struct['C1'],2)*power(struct['xlf'],2)*np.sin(2*struct['alpha']) - 2*power(struct['C2'],2)*power(struct['xlf'],2)*np.sin(2*struct['alpha']) - 16*power(struct['C1'],2)*struct['xlf']*struct['xr']*np.sin(2*struct['alpha']) + 4*power(struct['C2'],2)*struct['xlf']*struct['xr']*np.sin(2*struct['alpha']) + 8*power(struct['C1'],2)*power(struct['xr'],2)*np.sin(2*struct['alpha']) - 2*power(struct['C2'],2)*power(struct['xr'],2)*np.sin(2*struct['alpha']) - 8*struct['C1']*struct['C2']*struct['xlf']*struct['ylf']*np.sin(2*struct['alpha']) + 8*struct['C2']*struct['C3']*struct['xlf']*struct['ylf']*np.sin(2*struct['alpha']) + 8*struct['C1']*struct['C2']*struct['xr']*struct['ylf']*np.sin(2*struct['alpha']) - 8*struct['C2']*struct['C3']*struct['xr']*struct['ylf']*np.sin(2*struct['alpha']) + 2*power(struct['C2'],2)*power(struct['ylf'],2)*np.sin(2*struct['alpha']) - 8*power(struct['C3'],2)*power(struct['ylf'],2)*np.sin(2*struct['alpha']) + 8*struct['C1']*struct['C2']*struct['xlf']*struct['yr']*np.sin(2*struct['alpha']) - 8*struct['C2']*struct['C3']*struct['xlf']*struct['yr']*np.sin(2*struct['alpha']) - 8*struct['C1']*struct['C2']*struct['xr']*struct['yr']*np.sin(2*struct['alpha']) + 8*struct['C2']*struct['C3']*struct['xr']*struct['yr']*np.sin(2*struct['alpha']) - 4*power(struct['C2'],2)*struct['ylf']*struct['yr']*np.sin(2*struct['alpha']) + 16*power(struct['C3'],2)*struct['ylf']*struct['yr']*np.sin(2*struct['alpha']) + 2*power(struct['C2'],2)*power(struct['yr'],2)*np.sin(2*struct['alpha']) - 8*power(struct['C3'],2)*power(struct['yr'],2)*np.sin(2*struct['alpha']))/ (4.*(struct['C1'] + struct['C3'] + struct['C1']*np.cos(2*struct['alpha']) - struct['C3']*np.cos(2*struct['alpha']) - struct['C2']*np.sin(2*struct['alpha'])))))/ (complex(0,1)*struct['C1'] + complex(0,1)*struct['C3'] + complex(0,1)*struct['C1']*np.cos(2*struct['alpha']) - complex(0,1)*struct['C3']*np.cos(2*struct['alpha']) - complex(0,1)*struct['C2']*np.sin(2*struct['alpha'])) + (power(struct['E'],-(struct['C1']*power(struct['xlf'],2)) + 2*struct['C1']*struct['xlf']*struct['xr'] - struct['C1']*power(struct['xr'],2) + struct['C2']*struct['xlf']*struct['ylf'] - struct['C2']*struct['xr']*struct['ylf'] - struct['C3']*power(struct['ylf'],2) - struct['C2']*struct['xlf']*struct['yr'] + struct['C2']*struct['xr']*struct['yr'] + 2*struct['C3']*struct['ylf']*struct['yr'] - struct['C3']*power(struct['yr'],2) - (-4*power(struct['C1'],2)*power(struct['xlf'],2) - power(struct['C2'],2)*power(struct['xlf'],2) + 8*power(struct['C1'],2)*struct['xlf']*struct['xr'] + 2*power(struct['C2'],2)*struct['xlf']*struct['xr'] - 4*power(struct['C1'],2)*power(struct['xr'],2) - power(struct['C2'],2)*power(struct['xr'],2) + 4*struct['C1']*struct['C2']*struct['xlf']*struct['ylf'] + 4*struct['C2']*struct['C3']*struct['xlf']*struct['ylf'] - 4*struct['C1']*struct['C2']*struct['xr']*struct['ylf'] - 4*struct['C2']*struct['C3']*struct['xr']*struct['ylf'] - power(struct['C2'],2)*power(struct['ylf'],2) - 4*power(struct['C3'],2)*power(struct['ylf'],2) - 4*struct['C1']*struct['C2']*struct['xlf']*struct['yr'] - 4*struct['C2']*struct['C3']*struct['xlf']*struct['yr'] + 4*struct['C1']*struct['C2']*struct['xr']*struct['yr'] + 4*struct['C2']*struct['C3']*struct['xr']*struct['yr'] + 2*power(struct['C2'],2)*struct['ylf']*struct['yr'] + 8*power(struct['C3'],2)*struct['ylf']*struct['yr'] - power(struct['C2'],2)*power(struct['yr'],2) - 4*power(struct['C3'],2)*power(struct['yr'],2) - 4*power(struct['C1'],2)*power(struct['xlf'],2)*np.cos(2*struct['alpha']) + power(struct['C2'],2)*power(struct['xlf'],2)*np.cos(2*struct['alpha']) + 8*power(struct['C1'],2)*struct['xlf']*struct['xr']*np.cos(2*struct['alpha']) - 2*power(struct['C2'],2)*struct['xlf']*struct['xr']*np.cos(2*struct['alpha']) - 4*power(struct['C1'],2)*power(struct['xr'],2)*np.cos(2*struct['alpha']) + power(struct['C2'],2)*power(struct['xr'],2)*np.cos(2*struct['alpha']) + 4*struct['C1']*struct['C2']*struct['xlf']*struct['ylf']*np.cos(2*struct['alpha']) - 4*struct['C2']*struct['C3']*struct['xlf']*struct['ylf']*np.cos(2*struct['alpha']) - 4*struct['C1']*struct['C2']*struct['xr']*struct['ylf']*np.cos(2*struct['alpha']) + 4*struct['C2']*struct['C3']*struct['xr']*struct['ylf']*np.cos(2*struct['alpha']) - power(struct['C2'],2)*power(struct['ylf'],2)*np.cos(2*struct['alpha']) + 4*power(struct['C3'],2)*power(struct['ylf'],2)*np.cos(2*struct['alpha']) - 4*struct['C1']*struct['C2']*struct['xlf']*struct['yr']*np.cos(2*struct['alpha']) + 4*struct['C2']*struct['C3']*struct['xlf']*struct['yr']*np.cos(2*struct['alpha']) + 4*struct['C1']*struct['C2']*struct['xr']*struct['yr']*np.cos(2*struct['alpha']) - 4*struct['C2']*struct['C3']*struct['xr']*struct['yr']*np.cos(2*struct['alpha']) + 2*power(struct['C2'],2)*struct['ylf']*struct['yr']*np.cos(2*struct['alpha']) - 8*power(struct['C3'],2)*struct['ylf']*struct['yr']*np.cos(2*struct['alpha']) - power(struct['C2'],2)*power(struct['yr'],2)*np.cos(2*struct['alpha']) + 4*power(struct['C3'],2)*power(struct['yr'],2)*np.cos(2*struct['alpha']) + 4*struct['C1']*struct['C2']*power(struct['xlf'],2)*np.sin(2*struct['alpha']) - 8*struct['C1']*struct['C2']*struct['xlf']*struct['xr']*np.sin(2*struct['alpha']) + 4*struct['C1']*struct['C2']*power(struct['xr'],2)*np.sin(2*struct['alpha']) - 2*power(struct['C2'],2)*struct['xlf']*struct['ylf']*np.sin(2*struct['alpha']) - 8*struct['C1']*struct['C3']*struct['xlf']*struct['ylf']*np.sin(2*struct['alpha']) + 2*power(struct['C2'],2)*struct['xr']*struct['ylf']*np.sin(2*struct['alpha']) + 8*struct['C1']*struct['C3']*struct['xr']*struct['ylf']*np.sin(2*struct['alpha']) + 4*struct['C2']*struct['C3']*power(struct['ylf'],2)*np.sin(2*struct['alpha']) + 2*power(struct['C2'],2)*struct['xlf']*struct['yr']*np.sin(2*struct['alpha']) + 8*struct['C1']*struct['C3']*struct['xlf']*struct['yr']*np.sin(2*struct['alpha']) - 2*power(struct['C2'],2)*struct['xr']*struct['yr']*np.sin(2*struct['alpha']) - 8*struct['C1']*struct['C3']*struct['xr']*struct['yr']*np.sin(2*struct['alpha']) - 8*struct['C2']*struct['C3']*struct['ylf']*struct['yr']*np.sin(2*struct['alpha']) + 4*struct['C2']*struct['C3']*power(struct['yr'],2)*np.sin(2*struct['alpha']))/ (4.*(struct['C1'] + struct['C3'] + struct['C1']*np.cos(2*struct['alpha']) - struct['C3']*np.cos(2*struct['alpha']) - struct['C2']*np.sin(2*struct['alpha']))))*np.sqrt(np.pi/2.)* special.erfi((complex(0,1)*struct['C1']*struct['L'] + complex(0,1)*struct['C3']*struct['L'] - complex(0,2)*struct['C1']*struct['xlf']*np.cos(struct['alpha']) + complex(0,2)*struct['C1']*struct['xr']*np.cos(struct['alpha']) + complex(0,1)*struct['C2']*struct['ylf']*np.cos(struct['alpha']) - complex(0,1)*struct['C2']*struct['yr']*np.cos(struct['alpha']) + complex(0,1)*struct['C1']*struct['L']*np.cos(2*struct['alpha']) - complex(0,1)*struct['C3']*struct['L']*np.cos(2*struct['alpha']) + complex(0,1)*struct['C2']*struct['xlf']*np.sin(struct['alpha']) - complex(0,1)*struct['C2']*struct['xr']*np.sin(struct['alpha']) - complex(0,2)*struct['C3']*struct['ylf']*np.sin(struct['alpha']) + complex(0,2)*struct['C3']*struct['yr']*np.sin(struct['alpha']) - complex(0,1)*struct['C2']*struct['L']*np.sin(2*struct['alpha']))/ (np.sqrt(2)*np.sqrt(struct['C1'] + struct['C3'] + struct['C1']*np.cos(2*struct['alpha']) - struct['C3']*np.cos(2*struct['alpha']) - struct['C2']*np.sin(2*struct['alpha']))))* np.sqrt(struct['C1'] + struct['C3'] + struct['C1']*np.cos(2*struct['alpha']) - struct['C3']*np.cos(2*struct['alpha']) - struct['C2']*np.sin(2*struct['alpha']))* (((-2*struct['C2']*np.cos(2*struct['alpha']) - 2*struct['C1']*np.sin(2*struct['alpha']) + 2*struct['C3']*np.sin(2*struct['alpha']))* (-4*power(struct['C1'],2)*power(struct['xlf'],2) - power(struct['C2'],2)*power(struct['xlf'],2) + 8*power(struct['C1'],2)*struct['xlf']*struct['xr'] + 2*power(struct['C2'],2)*struct['xlf']*struct['xr'] - 4*power(struct['C1'],2)*power(struct['xr'],2) - power(struct['C2'],2)*power(struct['xr'],2) + 4*struct['C1']*struct['C2']*struct['xlf']*struct['ylf'] + 4*struct['C2']*struct['C3']*struct['xlf']*struct['ylf'] - 4*struct['C1']*struct['C2']*struct['xr']*struct['ylf'] - 4*struct['C2']*struct['C3']*struct['xr']*struct['ylf'] - power(struct['C2'],2)*power(struct['ylf'],2) - 4*power(struct['C3'],2)*power(struct['ylf'],2) - 4*struct['C1']*struct['C2']*struct['xlf']*struct['yr'] - 4*struct['C2']*struct['C3']*struct['xlf']*struct['yr'] + 4*struct['C1']*struct['C2']*struct['xr']*struct['yr'] + 4*struct['C2']*struct['C3']*struct['xr']*struct['yr'] + 2*power(struct['C2'],2)*struct['ylf']*struct['yr'] + 8*power(struct['C3'],2)*struct['ylf']*struct['yr'] - power(struct['C2'],2)*power(struct['yr'],2) - 4*power(struct['C3'],2)*power(struct['yr'],2) - 4*power(struct['C1'],2)*power(struct['xlf'],2)*np.cos(2*struct['alpha']) + power(struct['C2'],2)*power(struct['xlf'],2)*np.cos(2*struct['alpha']) + 8*power(struct['C1'],2)*struct['xlf']*struct['xr']*np.cos(2*struct['alpha']) - 2*power(struct['C2'],2)*struct['xlf']*struct['xr']*np.cos(2*struct['alpha']) - 4*power(struct['C1'],2)*power(struct['xr'],2)*np.cos(2*struct['alpha']) + power(struct['C2'],2)*power(struct['xr'],2)*np.cos(2*struct['alpha']) + 4*struct['C1']*struct['C2']*struct['xlf']*struct['ylf']*np.cos(2*struct['alpha']) - 4*struct['C2']*struct['C3']*struct['xlf']*struct['ylf']*np.cos(2*struct['alpha']) - 4*struct['C1']*struct['C2']*struct['xr']*struct['ylf']*np.cos(2*struct['alpha']) + 4*struct['C2']*struct['C3']*struct['xr']*struct['ylf']*np.cos(2*struct['alpha']) - power(struct['C2'],2)*power(struct['ylf'],2)*np.cos(2*struct['alpha']) + 4*power(struct['C3'],2)*power(struct['ylf'],2)*np.cos(2*struct['alpha']) - 4*struct['C1']*struct['C2']*struct['xlf']*struct['yr']*np.cos(2*struct['alpha']) + 4*struct['C2']*struct['C3']*struct['xlf']*struct['yr']*np.cos(2*struct['alpha']) + 4*struct['C1']*struct['C2']*struct['xr']*struct['yr']*np.cos(2*struct['alpha']) - 4*struct['C2']*struct['C3']*struct['xr']*struct['yr']*np.cos(2*struct['alpha']) + 2*power(struct['C2'],2)*struct['ylf']*struct['yr']*np.cos(2*struct['alpha']) - 8*power(struct['C3'],2)*struct['ylf']*struct['yr']*np.cos(2*struct['alpha']) - power(struct['C2'],2)*power(struct['yr'],2)*np.cos(2*struct['alpha']) + 4*power(struct['C3'],2)*power(struct['yr'],2)*np.cos(2*struct['alpha']) + 4*struct['C1']*struct['C2']*power(struct['xlf'],2)*np.sin(2*struct['alpha']) - 8*struct['C1']*struct['C2']*struct['xlf']*struct['xr']*np.sin(2*struct['alpha']) + 4*struct['C1']*struct['C2']*power(struct['xr'],2)*np.sin(2*struct['alpha']) - 2*power(struct['C2'],2)*struct['xlf']*struct['ylf']*np.sin(2*struct['alpha']) - 8*struct['C1']*struct['C3']*struct['xlf']*struct['ylf']*np.sin(2*struct['alpha']) + 2*power(struct['C2'],2)*struct['xr']*struct['ylf']*np.sin(2*struct['alpha']) + 8*struct['C1']*struct['C3']*struct['xr']*struct['ylf']*np.sin(2*struct['alpha']) + 4*struct['C2']*struct['C3']*power(struct['ylf'],2)*np.sin(2*struct['alpha']) + 2*power(struct['C2'],2)*struct['xlf']*struct['yr']*np.sin(2*struct['alpha']) + 8*struct['C1']*struct['C3']*struct['xlf']*struct['yr']*np.sin(2*struct['alpha']) - 2*power(struct['C2'],2)*struct['xr']*struct['yr']*np.sin(2*struct['alpha']) - 8*struct['C1']*struct['C3']*struct['xr']*struct['yr']*np.sin(2*struct['alpha']) - 8*struct['C2']*struct['C3']*struct['ylf']*struct['yr']*np.sin(2*struct['alpha']) + 4*struct['C2']*struct['C3']*power(struct['yr'],2)*np.sin(2*struct['alpha'])))/ (4.*power(struct['C1'] + struct['C3'] + struct['C1']*np.cos(2*struct['alpha']) - struct['C3']*np.cos(2*struct['alpha']) - struct['C2']*np.sin(2*struct['alpha']),2)) - (8*struct['C1']*struct['C2']*power(struct['xlf'],2)*np.cos(2*struct['alpha']) - 16*struct['C1']*struct['C2']*struct['xlf']*struct['xr']*np.cos(2*struct['alpha']) + 8*struct['C1']*struct['C2']*power(struct['xr'],2)*np.cos(2*struct['alpha']) - 4*power(struct['C2'],2)*struct['xlf']*struct['ylf']*np.cos(2*struct['alpha']) - 16*struct['C1']*struct['C3']*struct['xlf']*struct['ylf']*np.cos(2*struct['alpha']) + 4*power(struct['C2'],2)*struct['xr']*struct['ylf']*np.cos(2*struct['alpha']) + 16*struct['C1']*struct['C3']*struct['xr']*struct['ylf']*np.cos(2*struct['alpha']) + 8*struct['C2']*struct['C3']*power(struct['ylf'],2)*np.cos(2*struct['alpha']) + 4*power(struct['C2'],2)*struct['xlf']*struct['yr']*np.cos(2*struct['alpha']) + 16*struct['C1']*struct['C3']*struct['xlf']*struct['yr']*np.cos(2*struct['alpha']) - 4*power(struct['C2'],2)*struct['xr']*struct['yr']*np.cos(2*struct['alpha']) - 16*struct['C1']*struct['C3']*struct['xr']*struct['yr']*np.cos(2*struct['alpha']) - 16*struct['C2']*struct['C3']*struct['ylf']*struct['yr']*np.cos(2*struct['alpha']) + 8*struct['C2']*struct['C3']*power(struct['yr'],2)*np.cos(2*struct['alpha']) + 8*power(struct['C1'],2)*power(struct['xlf'],2)*np.sin(2*struct['alpha']) - 2*power(struct['C2'],2)*power(struct['xlf'],2)*np.sin(2*struct['alpha']) - 16*power(struct['C1'],2)*struct['xlf']*struct['xr']*np.sin(2*struct['alpha']) + 4*power(struct['C2'],2)*struct['xlf']*struct['xr']*np.sin(2*struct['alpha']) + 8*power(struct['C1'],2)*power(struct['xr'],2)*np.sin(2*struct['alpha']) - 2*power(struct['C2'],2)*power(struct['xr'],2)*np.sin(2*struct['alpha']) - 8*struct['C1']*struct['C2']*struct['xlf']*struct['ylf']*np.sin(2*struct['alpha']) + 8*struct['C2']*struct['C3']*struct['xlf']*struct['ylf']*np.sin(2*struct['alpha']) + 8*struct['C1']*struct['C2']*struct['xr']*struct['ylf']*np.sin(2*struct['alpha']) - 8*struct['C2']*struct['C3']*struct['xr']*struct['ylf']*np.sin(2*struct['alpha']) + 2*power(struct['C2'],2)*power(struct['ylf'],2)*np.sin(2*struct['alpha']) - 8*power(struct['C3'],2)*power(struct['ylf'],2)*np.sin(2*struct['alpha']) + 8*struct['C1']*struct['C2']*struct['xlf']*struct['yr']*np.sin(2*struct['alpha']) - 8*struct['C2']*struct['C3']*struct['xlf']*struct['yr']*np.sin(2*struct['alpha']) - 8*struct['C1']*struct['C2']*struct['xr']*struct['yr']*np.sin(2*struct['alpha']) + 8*struct['C2']*struct['C3']*struct['xr']*struct['yr']*np.sin(2*struct['alpha']) - 4*power(struct['C2'],2)*struct['ylf']*struct['yr']*np.sin(2*struct['alpha']) + 16*power(struct['C3'],2)*struct['ylf']*struct['yr']*np.sin(2*struct['alpha']) + 2*power(struct['C2'],2)*power(struct['yr'],2)*np.sin(2*struct['alpha']) - 8*power(struct['C3'],2)*power(struct['yr'],2)*np.sin(2*struct['alpha']))/ (4.*(struct['C1'] + struct['C3'] + struct['C1']*np.cos(2*struct['alpha']) - struct['C3']*np.cos(2*struct['alpha']) - struct['C2']*np.sin(2*struct['alpha'])))))/ (complex(0,1)*struct['C1'] + complex(0,1)*struct['C3'] + complex(0,1)*struct['C1']*np.cos(2*struct['alpha']) - complex(0,1)*struct['C3']*np.cos(2*struct['alpha']) - complex(0,1)*struct['C2']*np.sin(2*struct['alpha']))) + struct['C5r']*((power(struct['E'],-(struct['C1r']*power(struct['xr'],2)) + 2*struct['C1r']*struct['xr']*struct['xrf'] - struct['C1r']*power(struct['xrf'],2) + struct['C2r']*struct['xr']*struct['yr'] - struct['C2r']*struct['xrf']*struct['yr'] - struct['C3r']*power(struct['yr'],2) - struct['C2r']*struct['xr']*struct['yrf'] + struct['C2r']*struct['xrf']*struct['yrf'] + 2*struct['C3r']*struct['yr']*struct['yrf'] - struct['C3r']*power(struct['yrf'],2) - (-4*power(struct['C1r'],2)*power(struct['xr'],2) - power(struct['C2r'],2)*power(struct['xr'],2) + 8*power(struct['C1r'],2)*struct['xr']*struct['xrf'] + 2*power(struct['C2r'],2)*struct['xr']*struct['xrf'] - 4*power(struct['C1r'],2)*power(struct['xrf'],2) - power(struct['C2r'],2)*power(struct['xrf'],2) + 4*struct['C1r']*struct['C2r']*struct['xr']*struct['yr'] + 4*struct['C2r']*struct['C3r']*struct['xr']*struct['yr'] - 4*struct['C1r']*struct['C2r']*struct['xrf']*struct['yr'] - 4*struct['C2r']*struct['C3r']*struct['xrf']*struct['yr'] - power(struct['C2r'],2)*power(struct['yr'],2) - 4*power(struct['C3r'],2)*power(struct['yr'],2) - 4*struct['C1r']*struct['C2r']*struct['xr']*struct['yrf'] - 4*struct['C2r']*struct['C3r']*struct['xr']*struct['yrf'] + 4*struct['C1r']*struct['C2r']*struct['xrf']*struct['yrf'] + 4*struct['C2r']*struct['C3r']*struct['xrf']*struct['yrf'] + 2*power(struct['C2r'],2)*struct['yr']*struct['yrf'] + 8*power(struct['C3r'],2)*struct['yr']*struct['yrf'] - power(struct['C2r'],2)*power(struct['yrf'],2) - 4*power(struct['C3r'],2)*power(struct['yrf'],2) - 4*power(struct['C1r'],2)*power(struct['xr'],2)*np.cos(2*struct['alpha']) + power(struct['C2r'],2)*power(struct['xr'],2)*np.cos(2*struct['alpha']) + 8*power(struct['C1r'],2)*struct['xr']*struct['xrf']*np.cos(2*struct['alpha']) - 2*power(struct['C2r'],2)*struct['xr']*struct['xrf']*np.cos(2*struct['alpha']) - 4*power(struct['C1r'],2)*power(struct['xrf'],2)*np.cos(2*struct['alpha']) + power(struct['C2r'],2)*power(struct['xrf'],2)*np.cos(2*struct['alpha']) + 4*struct['C1r']*struct['C2r']*struct['xr']*struct['yr']*np.cos(2*struct['alpha']) - 4*struct['C2r']*struct['C3r']*struct['xr']*struct['yr']*np.cos(2*struct['alpha']) - 4*struct['C1r']*struct['C2r']*struct['xrf']*struct['yr']*np.cos(2*struct['alpha']) + 4*struct['C2r']*struct['C3r']*struct['xrf']*struct['yr']*np.cos(2*struct['alpha']) - power(struct['C2r'],2)*power(struct['yr'],2)*np.cos(2*struct['alpha']) + 4*power(struct['C3r'],2)*power(struct['yr'],2)*np.cos(2*struct['alpha']) - 4*struct['C1r']*struct['C2r']*struct['xr']*struct['yrf']*np.cos(2*struct['alpha']) + 4*struct['C2r']*struct['C3r']*struct['xr']*struct['yrf']*np.cos(2*struct['alpha']) + 4*struct['C1r']*struct['C2r']*struct['xrf']*struct['yrf']*np.cos(2*struct['alpha']) - 4*struct['C2r']*struct['C3r']*struct['xrf']*struct['yrf']*np.cos(2*struct['alpha']) + 2*power(struct['C2r'],2)*struct['yr']*struct['yrf']*np.cos(2*struct['alpha']) - 8*power(struct['C3r'],2)*struct['yr']*struct['yrf']*np.cos(2*struct['alpha']) - power(struct['C2r'],2)*power(struct['yrf'],2)*np.cos(2*struct['alpha']) + 4*power(struct['C3r'],2)*power(struct['yrf'],2)*np.cos(2*struct['alpha']) + 4*struct['C1r']*struct['C2r']*power(struct['xr'],2)*np.sin(2*struct['alpha']) - 8*struct['C1r']*struct['C2r']*struct['xr']*struct['xrf']*np.sin(2*struct['alpha']) + 4*struct['C1r']*struct['C2r']*power(struct['xrf'],2)*np.sin(2*struct['alpha']) - 2*power(struct['C2r'],2)*struct['xr']*struct['yr']*np.sin(2*struct['alpha']) - 8*struct['C1r']*struct['C3r']*struct['xr']*struct['yr']*np.sin(2*struct['alpha']) + 2*power(struct['C2r'],2)*struct['xrf']*struct['yr']*np.sin(2*struct['alpha']) + 8*struct['C1r']*struct['C3r']*struct['xrf']*struct['yr']*np.sin(2*struct['alpha']) + 4*struct['C2r']*struct['C3r']*power(struct['yr'],2)*np.sin(2*struct['alpha']) + 2*power(struct['C2r'],2)*struct['xr']*struct['yrf']*np.sin(2*struct['alpha']) + 8*struct['C1r']*struct['C3r']*struct['xr']*struct['yrf']*np.sin(2*struct['alpha']) - 2*power(struct['C2r'],2)*struct['xrf']*struct['yrf']*np.sin(2*struct['alpha']) - 8*struct['C1r']*struct['C3r']*struct['xrf']*struct['yrf']*np.sin(2*struct['alpha']) - 8*struct['C2r']*struct['C3r']*struct['yr']*struct['yrf']*np.sin(2*struct['alpha']) + 4*struct['C2r']*struct['C3r']*power(struct['yrf'],2)*np.sin(2*struct['alpha']))/ (4.*(struct['C1r'] + struct['C3r'] + struct['C1r']*np.cos(2*struct['alpha']) - struct['C3r']*np.cos(2*struct['alpha']) - struct['C2r']*np.sin(2*struct['alpha']))))*np.sqrt(np.pi/2.)* special.erfi((complex(0,2)*struct['C1r']*struct['xr']*np.cos(struct['alpha']) - complex(0,2)*struct['C1r']*struct['xrf']*np.cos(struct['alpha']) - complex(0,1)*struct['C2r']*struct['yr']*np.cos(struct['alpha']) + complex(0,1)*struct['C2r']*struct['yrf']*np.cos(struct['alpha']) - complex(0,1)*struct['C2r']*struct['xr']*np.sin(struct['alpha']) + complex(0,1)*struct['C2r']*struct['xrf']*np.sin(struct['alpha']) + complex(0,2)*struct['C3r']*struct['yr']*np.sin(struct['alpha']) - complex(0,2)*struct['C3r']*struct['yrf']*np.sin(struct['alpha']))/ (np.sqrt(2)*np.sqrt(struct['C1r'] + struct['C3r'] + struct['C1r']*np.cos(2*struct['alpha']) - struct['C3r']*np.cos(2*struct['alpha']) - struct['C2r']*np.sin(2*struct['alpha']))))* np.sqrt(struct['C1r'] + struct['C3r'] + struct['C1r']*np.cos(2*struct['alpha']) - struct['C3r']*np.cos(2*struct['alpha']) - struct['C2r']*np.sin(2*struct['alpha']))* (complex(0,-2)*struct['C2r']*np.cos(2*struct['alpha']) - complex(0,2)*struct['C1r']*np.sin(2*struct['alpha']) + complex(0,2)*struct['C3r']*np.sin(2*struct['alpha'])))/ power(complex(0,1)*struct['C1r'] + complex(0,1)*struct['C3r'] + complex(0,1)*struct['C1r']*np.cos(2*struct['alpha']) - complex(0,1)*struct['C3r']*np.cos(2*struct['alpha']) - complex(0,1)*struct['C2r']*np.sin(2*struct['alpha']),2) - (power(struct['E'],-(struct['C1r']*power(struct['xr'],2)) + 2*struct['C1r']*struct['xr']*struct['xrf'] - struct['C1r']*power(struct['xrf'],2) + struct['C2r']*struct['xr']*struct['yr'] - struct['C2r']*struct['xrf']*struct['yr'] - struct['C3r']*power(struct['yr'],2) - struct['C2r']*struct['xr']*struct['yrf'] + struct['C2r']*struct['xrf']*struct['yrf'] + 2*struct['C3r']*struct['yr']*struct['yrf'] - struct['C3r']*power(struct['yrf'],2) - (-4*power(struct['C1r'],2)*power(struct['xr'],2) - power(struct['C2r'],2)*power(struct['xr'],2) + 8*power(struct['C1r'],2)*struct['xr']*struct['xrf'] + 2*power(struct['C2r'],2)*struct['xr']*struct['xrf'] - 4*power(struct['C1r'],2)*power(struct['xrf'],2) - power(struct['C2r'],2)*power(struct['xrf'],2) + 4*struct['C1r']*struct['C2r']*struct['xr']*struct['yr'] + 4*struct['C2r']*struct['C3r']*struct['xr']*struct['yr'] - 4*struct['C1r']*struct['C2r']*struct['xrf']*struct['yr'] - 4*struct['C2r']*struct['C3r']*struct['xrf']*struct['yr'] - power(struct['C2r'],2)*power(struct['yr'],2) - 4*power(struct['C3r'],2)*power(struct['yr'],2) - 4*struct['C1r']*struct['C2r']*struct['xr']*struct['yrf'] - 4*struct['C2r']*struct['C3r']*struct['xr']*struct['yrf'] + 4*struct['C1r']*struct['C2r']*struct['xrf']*struct['yrf'] + 4*struct['C2r']*struct['C3r']*struct['xrf']*struct['yrf'] + 2*power(struct['C2r'],2)*struct['yr']*struct['yrf'] + 8*power(struct['C3r'],2)*struct['yr']*struct['yrf'] - power(struct['C2r'],2)*power(struct['yrf'],2) - 4*power(struct['C3r'],2)*power(struct['yrf'],2) - 4*power(struct['C1r'],2)*power(struct['xr'],2)*np.cos(2*struct['alpha']) + power(struct['C2r'],2)*power(struct['xr'],2)*np.cos(2*struct['alpha']) + 8*power(struct['C1r'],2)*struct['xr']*struct['xrf']*np.cos(2*struct['alpha']) - 2*power(struct['C2r'],2)*struct['xr']*struct['xrf']*np.cos(2*struct['alpha']) - 4*power(struct['C1r'],2)*power(struct['xrf'],2)*np.cos(2*struct['alpha']) + power(struct['C2r'],2)*power(struct['xrf'],2)*np.cos(2*struct['alpha']) + 4*struct['C1r']*struct['C2r']*struct['xr']*struct['yr']*np.cos(2*struct['alpha']) - 4*struct['C2r']*struct['C3r']*struct['xr']*struct['yr']*np.cos(2*struct['alpha']) - 4*struct['C1r']*struct['C2r']*struct['xrf']*struct['yr']*np.cos(2*struct['alpha']) + 4*struct['C2r']*struct['C3r']*struct['xrf']*struct['yr']*np.cos(2*struct['alpha']) - power(struct['C2r'],2)*power(struct['yr'],2)*np.cos(2*struct['alpha']) + 4*power(struct['C3r'],2)*power(struct['yr'],2)*np.cos(2*struct['alpha']) - 4*struct['C1r']*struct['C2r']*struct['xr']*struct['yrf']*np.cos(2*struct['alpha']) + 4*struct['C2r']*struct['C3r']*struct['xr']*struct['yrf']*np.cos(2*struct['alpha']) + 4*struct['C1r']*struct['C2r']*struct['xrf']*struct['yrf']*np.cos(2*struct['alpha']) - 4*struct['C2r']*struct['C3r']*struct['xrf']*struct['yrf']*np.cos(2*struct['alpha']) + 2*power(struct['C2r'],2)*struct['yr']*struct['yrf']*np.cos(2*struct['alpha']) - 8*power(struct['C3r'],2)*struct['yr']*struct['yrf']*np.cos(2*struct['alpha']) - power(struct['C2r'],2)*power(struct['yrf'],2)*np.cos(2*struct['alpha']) + 4*power(struct['C3r'],2)*power(struct['yrf'],2)*np.cos(2*struct['alpha']) + 4*struct['C1r']*struct['C2r']*power(struct['xr'],2)*np.sin(2*struct['alpha']) - 8*struct['C1r']*struct['C2r']*struct['xr']*struct['xrf']*np.sin(2*struct['alpha']) + 4*struct['C1r']*struct['C2r']*power(struct['xrf'],2)*np.sin(2*struct['alpha']) - 2*power(struct['C2r'],2)*struct['xr']*struct['yr']*np.sin(2*struct['alpha']) - 8*struct['C1r']*struct['C3r']*struct['xr']*struct['yr']*np.sin(2*struct['alpha']) + 2*power(struct['C2r'],2)*struct['xrf']*struct['yr']*np.sin(2*struct['alpha']) + 8*struct['C1r']*struct['C3r']*struct['xrf']*struct['yr']*np.sin(2*struct['alpha']) + 4*struct['C2r']*struct['C3r']*power(struct['yr'],2)*np.sin(2*struct['alpha']) + 2*power(struct['C2r'],2)*struct['xr']*struct['yrf']*np.sin(2*struct['alpha']) + 8*struct['C1r']*struct['C3r']*struct['xr']*struct['yrf']*np.sin(2*struct['alpha']) - 2*power(struct['C2r'],2)*struct['xrf']*struct['yrf']*np.sin(2*struct['alpha']) - 8*struct['C1r']*struct['C3r']*struct['xrf']*struct['yrf']*np.sin(2*struct['alpha']) - 8*struct['C2r']*struct['C3r']*struct['yr']*struct['yrf']*np.sin(2*struct['alpha']) + 4*struct['C2r']*struct['C3r']*power(struct['yrf'],2)*np.sin(2*struct['alpha']))/ (4.*(struct['C1r'] + struct['C3r'] + struct['C1r']*np.cos(2*struct['alpha']) - struct['C3r']*np.cos(2*struct['alpha']) - struct['C2r']*np.sin(2*struct['alpha']))))*np.sqrt(np.pi/2.)* special.erfi((complex(0,1)*struct['C1r']*struct['L'] + complex(0,1)*struct['C3r']*struct['L'] + complex(0,2)*struct['C1r']*struct['xr']*np.cos(struct['alpha']) - complex(0,2)*struct['C1r']*struct['xrf']*np.cos(struct['alpha']) - complex(0,1)*struct['C2r']*struct['yr']*np.cos(struct['alpha']) + complex(0,1)*struct['C2r']*struct['yrf']*np.cos(struct['alpha']) + complex(0,1)*struct['C1r']*struct['L']*np.cos(2*struct['alpha']) - complex(0,1)*struct['C3r']*struct['L']*np.cos(2*struct['alpha']) - complex(0,1)*struct['C2r']*struct['xr']*np.sin(struct['alpha']) + complex(0,1)*struct['C2r']*struct['xrf']*np.sin(struct['alpha']) + complex(0,2)*struct['C3r']*struct['yr']*np.sin(struct['alpha']) - complex(0,2)*struct['C3r']*struct['yrf']*np.sin(struct['alpha']) - complex(0,1)*struct['C2r']*struct['L']*np.sin(2*struct['alpha']))/ (np.sqrt(2)*np.sqrt(struct['C1r'] + struct['C3r'] + struct['C1r']*np.cos(2*struct['alpha']) - struct['C3r']*np.cos(2*struct['alpha']) - struct['C2r']*np.sin(2*struct['alpha']))))* np.sqrt(struct['C1r'] + struct['C3r'] + struct['C1r']*np.cos(2*struct['alpha']) - struct['C3r']*np.cos(2*struct['alpha']) - struct['C2r']*np.sin(2*struct['alpha']))* (complex(0,-2)*struct['C2r']*np.cos(2*struct['alpha']) - complex(0,2)*struct['C1r']*np.sin(2*struct['alpha']) + complex(0,2)*struct['C3r']*np.sin(2*struct['alpha'])))/ power(complex(0,1)*struct['C1r'] + complex(0,1)*struct['C3r'] + complex(0,1)*struct['C1r']*np.cos(2*struct['alpha']) - complex(0,1)*struct['C3r']*np.cos(2*struct['alpha']) - complex(0,1)*struct['C2r']*np.sin(2*struct['alpha']),2) - (power(struct['E'],-(struct['C1r']*power(struct['xr'],2)) + 2*struct['C1r']*struct['xr']*struct['xrf'] - struct['C1r']*power(struct['xrf'],2) + struct['C2r']*struct['xr']*struct['yr'] - struct['C2r']*struct['xrf']*struct['yr'] - struct['C3r']*power(struct['yr'],2) - struct['C2r']*struct['xr']*struct['yrf'] + struct['C2r']*struct['xrf']*struct['yrf'] + 2*struct['C3r']*struct['yr']*struct['yrf'] - struct['C3r']*power(struct['yrf'],2) - (-4*power(struct['C1r'],2)*power(struct['xr'],2) - power(struct['C2r'],2)*power(struct['xr'],2) + 8*power(struct['C1r'],2)*struct['xr']*struct['xrf'] + 2*power(struct['C2r'],2)*struct['xr']*struct['xrf'] - 4*power(struct['C1r'],2)*power(struct['xrf'],2) - power(struct['C2r'],2)*power(struct['xrf'],2) + 4*struct['C1r']*struct['C2r']*struct['xr']*struct['yr'] + 4*struct['C2r']*struct['C3r']*struct['xr']*struct['yr'] - 4*struct['C1r']*struct['C2r']*struct['xrf']*struct['yr'] - 4*struct['C2r']*struct['C3r']*struct['xrf']*struct['yr'] - power(struct['C2r'],2)*power(struct['yr'],2) - 4*power(struct['C3r'],2)*power(struct['yr'],2) - 4*struct['C1r']*struct['C2r']*struct['xr']*struct['yrf'] - 4*struct['C2r']*struct['C3r']*struct['xr']*struct['yrf'] + 4*struct['C1r']*struct['C2r']*struct['xrf']*struct['yrf'] + 4*struct['C2r']*struct['C3r']*struct['xrf']*struct['yrf'] + 2*power(struct['C2r'],2)*struct['yr']*struct['yrf'] + 8*power(struct['C3r'],2)*struct['yr']*struct['yrf'] - power(struct['C2r'],2)*power(struct['yrf'],2) - 4*power(struct['C3r'],2)*power(struct['yrf'],2) - 4*power(struct['C1r'],2)*power(struct['xr'],2)*np.cos(2*struct['alpha']) + power(struct['C2r'],2)*power(struct['xr'],2)*np.cos(2*struct['alpha']) + 8*power(struct['C1r'],2)*struct['xr']*struct['xrf']*np.cos(2*struct['alpha']) - 2*power(struct['C2r'],2)*struct['xr']*struct['xrf']*np.cos(2*struct['alpha']) - 4*power(struct['C1r'],2)*power(struct['xrf'],2)*np.cos(2*struct['alpha']) + power(struct['C2r'],2)*power(struct['xrf'],2)*np.cos(2*struct['alpha']) + 4*struct['C1r']*struct['C2r']*struct['xr']*struct['yr']*np.cos(2*struct['alpha']) - 4*struct['C2r']*struct['C3r']*struct['xr']*struct['yr']*np.cos(2*struct['alpha']) - 4*struct['C1r']*struct['C2r']*struct['xrf']*struct['yr']*np.cos(2*struct['alpha']) + 4*struct['C2r']*struct['C3r']*struct['xrf']*struct['yr']*np.cos(2*struct['alpha']) - power(struct['C2r'],2)*power(struct['yr'],2)*np.cos(2*struct['alpha']) + 4*power(struct['C3r'],2)*power(struct['yr'],2)*np.cos(2*struct['alpha']) - 4*struct['C1r']*struct['C2r']*struct['xr']*struct['yrf']*np.cos(2*struct['alpha']) + 4*struct['C2r']*struct['C3r']*struct['xr']*struct['yrf']*np.cos(2*struct['alpha']) + 4*struct['C1r']*struct['C2r']*struct['xrf']*struct['yrf']*np.cos(2*struct['alpha']) - 4*struct['C2r']*struct['C3r']*struct['xrf']*struct['yrf']*np.cos(2*struct['alpha']) + 2*power(struct['C2r'],2)*struct['yr']*struct['yrf']*np.cos(2*struct['alpha']) - 8*power(struct['C3r'],2)*struct['yr']*struct['yrf']*np.cos(2*struct['alpha']) - power(struct['C2r'],2)*power(struct['yrf'],2)*np.cos(2*struct['alpha']) + 4*power(struct['C3r'],2)*power(struct['yrf'],2)*np.cos(2*struct['alpha']) + 4*struct['C1r']*struct['C2r']*power(struct['xr'],2)*np.sin(2*struct['alpha']) - 8*struct['C1r']*struct['C2r']*struct['xr']*struct['xrf']*np.sin(2*struct['alpha']) + 4*struct['C1r']*struct['C2r']*power(struct['xrf'],2)*np.sin(2*struct['alpha']) - 2*power(struct['C2r'],2)*struct['xr']*struct['yr']*np.sin(2*struct['alpha']) - 8*struct['C1r']*struct['C3r']*struct['xr']*struct['yr']*np.sin(2*struct['alpha']) + 2*power(struct['C2r'],2)*struct['xrf']*struct['yr']*np.sin(2*struct['alpha']) + 8*struct['C1r']*struct['C3r']*struct['xrf']*struct['yr']*np.sin(2*struct['alpha']) + 4*struct['C2r']*struct['C3r']*power(struct['yr'],2)*np.sin(2*struct['alpha']) + 2*power(struct['C2r'],2)*struct['xr']*struct['yrf']*np.sin(2*struct['alpha']) + 8*struct['C1r']*struct['C3r']*struct['xr']*struct['yrf']*np.sin(2*struct['alpha']) - 2*power(struct['C2r'],2)*struct['xrf']*struct['yrf']*np.sin(2*struct['alpha']) - 8*struct['C1r']*struct['C3r']*struct['xrf']*struct['yrf']*np.sin(2*struct['alpha']) - 8*struct['C2r']*struct['C3r']*struct['yr']*struct['yrf']*np.sin(2*struct['alpha']) + 4*struct['C2r']*struct['C3r']*power(struct['yrf'],2)*np.sin(2*struct['alpha']))/ (4.*(struct['C1r'] + struct['C3r'] + struct['C1r']*np.cos(2*struct['alpha']) - struct['C3r']*np.cos(2*struct['alpha']) - struct['C2r']*np.sin(2*struct['alpha']))))*np.sqrt(np.pi/2.)* special.erfi((complex(0,2)*struct['C1r']*struct['xr']*np.cos(struct['alpha']) - complex(0,2)*struct['C1r']*struct['xrf']*np.cos(struct['alpha']) - complex(0,1)*struct['C2r']*struct['yr']*np.cos(struct['alpha']) + complex(0,1)*struct['C2r']*struct['yrf']*np.cos(struct['alpha']) - complex(0,1)*struct['C2r']*struct['xr']*np.sin(struct['alpha']) + complex(0,1)*struct['C2r']*struct['xrf']*np.sin(struct['alpha']) + complex(0,2)*struct['C3r']*struct['yr']*np.sin(struct['alpha']) - complex(0,2)*struct['C3r']*struct['yrf']*np.sin(struct['alpha']))/ (np.sqrt(2)*np.sqrt(struct['C1r'] + struct['C3r'] + struct['C1r']*np.cos(2*struct['alpha']) - struct['C3r']*np.cos(2*struct['alpha']) - struct['C2r']*np.sin(2*struct['alpha']))))* (-2*struct['C2r']*np.cos(2*struct['alpha']) - 2*struct['C1r']*np.sin(2*struct['alpha']) + 2*struct['C3r']*np.sin(2*struct['alpha'])))/ (2.*np.sqrt(struct['C1r'] + struct['C3r'] + struct['C1r']*np.cos(2*struct['alpha']) - struct['C3r']*np.cos(2*struct['alpha']) - struct['C2r']*np.sin(2*struct['alpha']))* (complex(0,1)*struct['C1r'] + complex(0,1)*struct['C3r'] + complex(0,1)*struct['C1r']*np.cos(2*struct['alpha']) - complex(0,1)*struct['C3r']*np.cos(2*struct['alpha']) - complex(0,1)*struct['C2r']*np.sin(2*struct['alpha']))) + (power(struct['E'],-(struct['C1r']*power(struct['xr'],2)) + 2*struct['C1r']*struct['xr']*struct['xrf'] - struct['C1r']*power(struct['xrf'],2) + struct['C2r']*struct['xr']*struct['yr'] - struct['C2r']*struct['xrf']*struct['yr'] - struct['C3r']*power(struct['yr'],2) - struct['C2r']*struct['xr']*struct['yrf'] + struct['C2r']*struct['xrf']*struct['yrf'] + 2*struct['C3r']*struct['yr']*struct['yrf'] - struct['C3r']*power(struct['yrf'],2) - (-4*power(struct['C1r'],2)*power(struct['xr'],2) - power(struct['C2r'],2)*power(struct['xr'],2) + 8*power(struct['C1r'],2)*struct['xr']*struct['xrf'] + 2*power(struct['C2r'],2)*struct['xr']*struct['xrf'] - 4*power(struct['C1r'],2)*power(struct['xrf'],2) - power(struct['C2r'],2)*power(struct['xrf'],2) + 4*struct['C1r']*struct['C2r']*struct['xr']*struct['yr'] + 4*struct['C2r']*struct['C3r']*struct['xr']*struct['yr'] - 4*struct['C1r']*struct['C2r']*struct['xrf']*struct['yr'] - 4*struct['C2r']*struct['C3r']*struct['xrf']*struct['yr'] - power(struct['C2r'],2)*power(struct['yr'],2) - 4*power(struct['C3r'],2)*power(struct['yr'],2) - 4*struct['C1r']*struct['C2r']*struct['xr']*struct['yrf'] - 4*struct['C2r']*struct['C3r']*struct['xr']*struct['yrf'] + 4*struct['C1r']*struct['C2r']*struct['xrf']*struct['yrf'] + 4*struct['C2r']*struct['C3r']*struct['xrf']*struct['yrf'] + 2*power(struct['C2r'],2)*struct['yr']*struct['yrf'] + 8*power(struct['C3r'],2)*struct['yr']*struct['yrf'] - power(struct['C2r'],2)*power(struct['yrf'],2) - 4*power(struct['C3r'],2)*power(struct['yrf'],2) - 4*power(struct['C1r'],2)*power(struct['xr'],2)*np.cos(2*struct['alpha']) + power(struct['C2r'],2)*power(struct['xr'],2)*np.cos(2*struct['alpha']) + 8*power(struct['C1r'],2)*struct['xr']*struct['xrf']*np.cos(2*struct['alpha']) - 2*power(struct['C2r'],2)*struct['xr']*struct['xrf']*np.cos(2*struct['alpha']) - 4*power(struct['C1r'],2)*power(struct['xrf'],2)*np.cos(2*struct['alpha']) + power(struct['C2r'],2)*power(struct['xrf'],2)*np.cos(2*struct['alpha']) + 4*struct['C1r']*struct['C2r']*struct['xr']*struct['yr']*np.cos(2*struct['alpha']) - 4*struct['C2r']*struct['C3r']*struct['xr']*struct['yr']*np.cos(2*struct['alpha']) - 4*struct['C1r']*struct['C2r']*struct['xrf']*struct['yr']*np.cos(2*struct['alpha']) + 4*struct['C2r']*struct['C3r']*struct['xrf']*struct['yr']*np.cos(2*struct['alpha']) - power(struct['C2r'],2)*power(struct['yr'],2)*np.cos(2*struct['alpha']) + 4*power(struct['C3r'],2)*power(struct['yr'],2)*np.cos(2*struct['alpha']) - 4*struct['C1r']*struct['C2r']*struct['xr']*struct['yrf']*np.cos(2*struct['alpha']) + 4*struct['C2r']*struct['C3r']*struct['xr']*struct['yrf']*np.cos(2*struct['alpha']) + 4*struct['C1r']*struct['C2r']*struct['xrf']*struct['yrf']*np.cos(2*struct['alpha']) - 4*struct['C2r']*struct['C3r']*struct['xrf']*struct['yrf']*np.cos(2*struct['alpha']) + 2*power(struct['C2r'],2)*struct['yr']*struct['yrf']*np.cos(2*struct['alpha']) - 8*power(struct['C3r'],2)*struct['yr']*struct['yrf']*np.cos(2*struct['alpha']) - power(struct['C2r'],2)*power(struct['yrf'],2)*np.cos(2*struct['alpha']) + 4*power(struct['C3r'],2)*power(struct['yrf'],2)*np.cos(2*struct['alpha']) + 4*struct['C1r']*struct['C2r']*power(struct['xr'],2)*np.sin(2*struct['alpha']) - 8*struct['C1r']*struct['C2r']*struct['xr']*struct['xrf']*np.sin(2*struct['alpha']) + 4*struct['C1r']*struct['C2r']*power(struct['xrf'],2)*np.sin(2*struct['alpha']) - 2*power(struct['C2r'],2)*struct['xr']*struct['yr']*np.sin(2*struct['alpha']) - 8*struct['C1r']*struct['C3r']*struct['xr']*struct['yr']*np.sin(2*struct['alpha']) + 2*power(struct['C2r'],2)*struct['xrf']*struct['yr']*np.sin(2*struct['alpha']) + 8*struct['C1r']*struct['C3r']*struct['xrf']*struct['yr']*np.sin(2*struct['alpha']) + 4*struct['C2r']*struct['C3r']*power(struct['yr'],2)*np.sin(2*struct['alpha']) + 2*power(struct['C2r'],2)*struct['xr']*struct['yrf']*np.sin(2*struct['alpha']) + 8*struct['C1r']*struct['C3r']*struct['xr']*struct['yrf']*np.sin(2*struct['alpha']) - 2*power(struct['C2r'],2)*struct['xrf']*struct['yrf']*np.sin(2*struct['alpha']) - 8*struct['C1r']*struct['C3r']*struct['xrf']*struct['yrf']*np.sin(2*struct['alpha']) - 8*struct['C2r']*struct['C3r']*struct['yr']*struct['yrf']*np.sin(2*struct['alpha']) + 4*struct['C2r']*struct['C3r']*power(struct['yrf'],2)*np.sin(2*struct['alpha']))/ (4.*(struct['C1r'] + struct['C3r'] + struct['C1r']*np.cos(2*struct['alpha']) - struct['C3r']*np.cos(2*struct['alpha']) - struct['C2r']*np.sin(2*struct['alpha']))))*np.sqrt(np.pi/2.)* special.erfi((complex(0,1)*struct['C1r']*struct['L'] + complex(0,1)*struct['C3r']*struct['L'] + complex(0,2)*struct['C1r']*struct['xr']*np.cos(struct['alpha']) - complex(0,2)*struct['C1r']*struct['xrf']*np.cos(struct['alpha']) - complex(0,1)*struct['C2r']*struct['yr']*np.cos(struct['alpha']) + complex(0,1)*struct['C2r']*struct['yrf']*np.cos(struct['alpha']) + complex(0,1)*struct['C1r']*struct['L']*np.cos(2*struct['alpha']) - complex(0,1)*struct['C3r']*struct['L']*np.cos(2*struct['alpha']) - complex(0,1)*struct['C2r']*struct['xr']*np.sin(struct['alpha']) + complex(0,1)*struct['C2r']*struct['xrf']*np.sin(struct['alpha']) + complex(0,2)*struct['C3r']*struct['yr']*np.sin(struct['alpha']) - complex(0,2)*struct['C3r']*struct['yrf']*np.sin(struct['alpha']) - complex(0,1)*struct['C2r']*struct['L']*np.sin(2*struct['alpha']))/ (np.sqrt(2)*np.sqrt(struct['C1r'] + struct['C3r'] + struct['C1r']*np.cos(2*struct['alpha']) - struct['C3r']*np.cos(2*struct['alpha']) - struct['C2r']*np.sin(2*struct['alpha']))))* (-2*struct['C2r']*np.cos(2*struct['alpha']) - 2*struct['C1r']*np.sin(2*struct['alpha']) + 2*struct['C3r']*np.sin(2*struct['alpha'])))/ (2.*np.sqrt(struct['C1r'] + struct['C3r'] + struct['C1r']*np.cos(2*struct['alpha']) - struct['C3r']*np.cos(2*struct['alpha']) - struct['C2r']*np.sin(2*struct['alpha']))* (complex(0,1)*struct['C1r'] + complex(0,1)*struct['C3r'] + complex(0,1)*struct['C1r']*np.cos(2*struct['alpha']) - complex(0,1)*struct['C3r']*np.cos(2*struct['alpha']) - complex(0,1)*struct['C2r']*np.sin(2*struct['alpha']))) - (np.sqrt(2)*power(struct['E'],-(struct['C1r']*power(struct['xr'],2)) + 2*struct['C1r']*struct['xr']*struct['xrf'] - struct['C1r']*power(struct['xrf'],2) + struct['C2r']*struct['xr']*struct['yr'] - struct['C2r']*struct['xrf']*struct['yr'] - struct['C3r']*power(struct['yr'],2) - struct['C2r']*struct['xr']*struct['yrf'] + struct['C2r']*struct['xrf']*struct['yrf'] + 2*struct['C3r']*struct['yr']*struct['yrf'] - struct['C3r']*power(struct['yrf'],2) + power(complex(0,2)*struct['C1r']*struct['xr']*np.cos(struct['alpha']) - complex(0,2)*struct['C1r']*struct['xrf']*np.cos(struct['alpha']) - complex(0,1)*struct['C2r']*struct['yr']*np.cos(struct['alpha']) + complex(0,1)*struct['C2r']*struct['yrf']*np.cos(struct['alpha']) - complex(0,1)*struct['C2r']*struct['xr']*np.sin(struct['alpha']) + complex(0,1)*struct['C2r']*struct['xrf']*np.sin(struct['alpha']) + complex(0,2)*struct['C3r']*struct['yr']*np.sin(struct['alpha']) - complex(0,2)*struct['C3r']*struct['yrf']*np.sin(struct['alpha']),2)/ (2.*(struct['C1r'] + struct['C3r'] + struct['C1r']*np.cos(2*struct['alpha']) - struct['C3r']*np.cos(2*struct['alpha']) - struct['C2r']*np.sin(2*struct['alpha']))) - (-4*power(struct['C1r'],2)*power(struct['xr'],2) - power(struct['C2r'],2)*power(struct['xr'],2) + 8*power(struct['C1r'],2)*struct['xr']*struct['xrf'] + 2*power(struct['C2r'],2)*struct['xr']*struct['xrf'] - 4*power(struct['C1r'],2)*power(struct['xrf'],2) - power(struct['C2r'],2)*power(struct['xrf'],2) + 4*struct['C1r']*struct['C2r']*struct['xr']*struct['yr'] + 4*struct['C2r']*struct['C3r']*struct['xr']*struct['yr'] - 4*struct['C1r']*struct['C2r']*struct['xrf']*struct['yr'] - 4*struct['C2r']*struct['C3r']*struct['xrf']*struct['yr'] - power(struct['C2r'],2)*power(struct['yr'],2) - 4*power(struct['C3r'],2)*power(struct['yr'],2) - 4*struct['C1r']*struct['C2r']*struct['xr']*struct['yrf'] - 4*struct['C2r']*struct['C3r']*struct['xr']*struct['yrf'] + 4*struct['C1r']*struct['C2r']*struct['xrf']*struct['yrf'] + 4*struct['C2r']*struct['C3r']*struct['xrf']*struct['yrf'] + 2*power(struct['C2r'],2)*struct['yr']*struct['yrf'] + 8*power(struct['C3r'],2)*struct['yr']*struct['yrf'] - power(struct['C2r'],2)*power(struct['yrf'],2) - 4*power(struct['C3r'],2)*power(struct['yrf'],2) - 4*power(struct['C1r'],2)*power(struct['xr'],2)*np.cos(2*struct['alpha']) + power(struct['C2r'],2)*power(struct['xr'],2)*np.cos(2*struct['alpha']) + 8*power(struct['C1r'],2)*struct['xr']*struct['xrf']*np.cos(2*struct['alpha']) - 2*power(struct['C2r'],2)*struct['xr']*struct['xrf']*np.cos(2*struct['alpha']) - 4*power(struct['C1r'],2)*power(struct['xrf'],2)*np.cos(2*struct['alpha']) + power(struct['C2r'],2)*power(struct['xrf'],2)*np.cos(2*struct['alpha']) + 4*struct['C1r']*struct['C2r']*struct['xr']*struct['yr']*np.cos(2*struct['alpha']) - 4*struct['C2r']*struct['C3r']*struct['xr']*struct['yr']*np.cos(2*struct['alpha']) - 4*struct['C1r']*struct['C2r']*struct['xrf']*struct['yr']*np.cos(2*struct['alpha']) + 4*struct['C2r']*struct['C3r']*struct['xrf']*struct['yr']*np.cos(2*struct['alpha']) - power(struct['C2r'],2)*power(struct['yr'],2)*np.cos(2*struct['alpha']) + 4*power(struct['C3r'],2)*power(struct['yr'],2)*np.cos(2*struct['alpha']) - 4*struct['C1r']*struct['C2r']*struct['xr']*struct['yrf']*np.cos(2*struct['alpha']) + 4*struct['C2r']*struct['C3r']*struct['xr']*struct['yrf']*np.cos(2*struct['alpha']) + 4*struct['C1r']*struct['C2r']*struct['xrf']*struct['yrf']*np.cos(2*struct['alpha']) - 4*struct['C2r']*struct['C3r']*struct['xrf']*struct['yrf']*np.cos(2*struct['alpha']) + 2*power(struct['C2r'],2)*struct['yr']*struct['yrf']*np.cos(2*struct['alpha']) - 8*power(struct['C3r'],2)*struct['yr']*struct['yrf']*np.cos(2*struct['alpha']) - power(struct['C2r'],2)*power(struct['yrf'],2)*np.cos(2*struct['alpha']) + 4*power(struct['C3r'],2)*power(struct['yrf'],2)*np.cos(2*struct['alpha']) + 4*struct['C1r']*struct['C2r']*power(struct['xr'],2)*np.sin(2*struct['alpha']) - 8*struct['C1r']*struct['C2r']*struct['xr']*struct['xrf']*np.sin(2*struct['alpha']) + 4*struct['C1r']*struct['C2r']*power(struct['xrf'],2)*np.sin(2*struct['alpha']) - 2*power(struct['C2r'],2)*struct['xr']*struct['yr']*np.sin(2*struct['alpha']) - 8*struct['C1r']*struct['C3r']*struct['xr']*struct['yr']*np.sin(2*struct['alpha']) + 2*power(struct['C2r'],2)*struct['xrf']*struct['yr']*np.sin(2*struct['alpha']) + 8*struct['C1r']*struct['C3r']*struct['xrf']*struct['yr']*np.sin(2*struct['alpha']) + 4*struct['C2r']*struct['C3r']*power(struct['yr'],2)*np.sin(2*struct['alpha']) + 2*power(struct['C2r'],2)*struct['xr']*struct['yrf']*np.sin(2*struct['alpha']) + 8*struct['C1r']*struct['C3r']*struct['xr']*struct['yrf']*np.sin(2*struct['alpha']) - 2*power(struct['C2r'],2)*struct['xrf']*struct['yrf']*np.sin(2*struct['alpha']) - 8*struct['C1r']*struct['C3r']*struct['xrf']*struct['yrf']*np.sin(2*struct['alpha']) - 8*struct['C2r']*struct['C3r']*struct['yr']*struct['yrf']*np.sin(2*struct['alpha']) + 4*struct['C2r']*struct['C3r']*power(struct['yrf'],2)*np.sin(2*struct['alpha']))/ (4.*(struct['C1r'] + struct['C3r'] + struct['C1r']*np.cos(2*struct['alpha']) - struct['C3r']*np.cos(2*struct['alpha']) - struct['C2r']*np.sin(2*struct['alpha']))))* np.sqrt(struct['C1r'] + struct['C3r'] + struct['C1r']*np.cos(2*struct['alpha']) - struct['C3r']*np.cos(2*struct['alpha']) - struct['C2r']*np.sin(2*struct['alpha']))* ((complex(0,-1)*struct['C2r']*struct['xr']*np.cos(struct['alpha']) + complex(0,1)*struct['C2r']*struct['xrf']*np.cos(struct['alpha']) + complex(0,2)*struct['C3r']*struct['yr']*np.cos(struct['alpha']) - complex(0,2)*struct['C3r']*struct['yrf']*np.cos(struct['alpha']) - complex(0,2)*struct['C1r']*struct['xr']*np.sin(struct['alpha']) + complex(0,2)*struct['C1r']*struct['xrf']*np.sin(struct['alpha']) + complex(0,1)*struct['C2r']*struct['yr']*np.sin(struct['alpha']) - complex(0,1)*struct['C2r']*struct['yrf']*np.sin(struct['alpha']))/ (np.sqrt(2)*np.sqrt(struct['C1r'] + struct['C3r'] + struct['C1r']*np.cos(2*struct['alpha']) - struct['C3r']*np.cos(2*struct['alpha']) - struct['C2r']*np.sin(2*struct['alpha']))) - ((complex(0,2)*struct['C1r']*struct['xr']*np.cos(struct['alpha']) - complex(0,2)*struct['C1r']*struct['xrf']*np.cos(struct['alpha']) - complex(0,1)*struct['C2r']*struct['yr']*np.cos(struct['alpha']) + complex(0,1)*struct['C2r']*struct['yrf']*np.cos(struct['alpha']) - complex(0,1)*struct['C2r']*struct['xr']*np.sin(struct['alpha']) + complex(0,1)*struct['C2r']*struct['xrf']*np.sin(struct['alpha']) + complex(0,2)*struct['C3r']*struct['yr']*np.sin(struct['alpha']) - complex(0,2)*struct['C3r']*struct['yrf']*np.sin(struct['alpha']))* (-2*struct['C2r']*np.cos(2*struct['alpha']) - 2*struct['C1r']*np.sin(2*struct['alpha']) + 2*struct['C3r']*np.sin(2*struct['alpha'])))/ (2.*np.sqrt(2)*power(struct['C1r'] + struct['C3r'] + struct['C1r']*np.cos(2*struct['alpha']) - struct['C3r']*np.cos(2*struct['alpha']) - struct['C2r']*np.sin(2*struct['alpha']),1.5))))/ (complex(0,1)*struct['C1r'] + complex(0,1)*struct['C3r'] + complex(0,1)*struct['C1r']*np.cos(2*struct['alpha']) - complex(0,1)*struct['C3r']*np.cos(2*struct['alpha']) - complex(0,1)*struct['C2r']*np.sin(2*struct['alpha'])) + (np.sqrt(2)*power(struct['E'],-(struct['C1r']*power(struct['xr'],2)) + 2*struct['C1r']*struct['xr']*struct['xrf'] - struct['C1r']*power(struct['xrf'],2) + struct['C2r']*struct['xr']*struct['yr'] - struct['C2r']*struct['xrf']*struct['yr'] - struct['C3r']*power(struct['yr'],2) - struct['C2r']*struct['xr']*struct['yrf'] + struct['C2r']*struct['xrf']*struct['yrf'] + 2*struct['C3r']*struct['yr']*struct['yrf'] - struct['C3r']*power(struct['yrf'],2) + power(complex(0,1)*struct['C1r']*struct['L'] + complex(0,1)*struct['C3r']*struct['L'] + complex(0,2)*struct['C1r']*struct['xr']*np.cos(struct['alpha']) - complex(0,2)*struct['C1r']*struct['xrf']*np.cos(struct['alpha']) - complex(0,1)*struct['C2r']*struct['yr']*np.cos(struct['alpha']) + complex(0,1)*struct['C2r']*struct['yrf']*np.cos(struct['alpha']) + complex(0,1)*struct['C1r']*struct['L']*np.cos(2*struct['alpha']) - complex(0,1)*struct['C3r']*struct['L']*np.cos(2*struct['alpha']) - complex(0,1)*struct['C2r']*struct['xr']*np.sin(struct['alpha']) + complex(0,1)*struct['C2r']*struct['xrf']*np.sin(struct['alpha']) + complex(0,2)*struct['C3r']*struct['yr']*np.sin(struct['alpha']) - complex(0,2)*struct['C3r']*struct['yrf']*np.sin(struct['alpha']) - complex(0,1)*struct['C2r']*struct['L']*np.sin(2*struct['alpha']),2)/ (2.*(struct['C1r'] + struct['C3r'] + struct['C1r']*np.cos(2*struct['alpha']) - struct['C3r']*np.cos(2*struct['alpha']) - struct['C2r']*np.sin(2*struct['alpha']))) - (-4*power(struct['C1r'],2)*power(struct['xr'],2) - power(struct['C2r'],2)*power(struct['xr'],2) + 8*power(struct['C1r'],2)*struct['xr']*struct['xrf'] + 2*power(struct['C2r'],2)*struct['xr']*struct['xrf'] - 4*power(struct['C1r'],2)*power(struct['xrf'],2) - power(struct['C2r'],2)*power(struct['xrf'],2) + 4*struct['C1r']*struct['C2r']*struct['xr']*struct['yr'] + 4*struct['C2r']*struct['C3r']*struct['xr']*struct['yr'] - 4*struct['C1r']*struct['C2r']*struct['xrf']*struct['yr'] - 4*struct['C2r']*struct['C3r']*struct['xrf']*struct['yr'] - power(struct['C2r'],2)*power(struct['yr'],2) - 4*power(struct['C3r'],2)*power(struct['yr'],2) - 4*struct['C1r']*struct['C2r']*struct['xr']*struct['yrf'] - 4*struct['C2r']*struct['C3r']*struct['xr']*struct['yrf'] + 4*struct['C1r']*struct['C2r']*struct['xrf']*struct['yrf'] + 4*struct['C2r']*struct['C3r']*struct['xrf']*struct['yrf'] + 2*power(struct['C2r'],2)*struct['yr']*struct['yrf'] + 8*power(struct['C3r'],2)*struct['yr']*struct['yrf'] - power(struct['C2r'],2)*power(struct['yrf'],2) - 4*power(struct['C3r'],2)*power(struct['yrf'],2) - 4*power(struct['C1r'],2)*power(struct['xr'],2)*np.cos(2*struct['alpha']) + power(struct['C2r'],2)*power(struct['xr'],2)*np.cos(2*struct['alpha']) + 8*power(struct['C1r'],2)*struct['xr']*struct['xrf']*np.cos(2*struct['alpha']) - 2*power(struct['C2r'],2)*struct['xr']*struct['xrf']*np.cos(2*struct['alpha']) - 4*power(struct['C1r'],2)*power(struct['xrf'],2)*np.cos(2*struct['alpha']) + power(struct['C2r'],2)*power(struct['xrf'],2)*np.cos(2*struct['alpha']) + 4*struct['C1r']*struct['C2r']*struct['xr']*struct['yr']*np.cos(2*struct['alpha']) - 4*struct['C2r']*struct['C3r']*struct['xr']*struct['yr']*np.cos(2*struct['alpha']) - 4*struct['C1r']*struct['C2r']*struct['xrf']*struct['yr']*np.cos(2*struct['alpha']) + 4*struct['C2r']*struct['C3r']*struct['xrf']*struct['yr']*np.cos(2*struct['alpha']) - power(struct['C2r'],2)*power(struct['yr'],2)*np.cos(2*struct['alpha']) + 4*power(struct['C3r'],2)*power(struct['yr'],2)*np.cos(2*struct['alpha']) - 4*struct['C1r']*struct['C2r']*struct['xr']*struct['yrf']*np.cos(2*struct['alpha']) + 4*struct['C2r']*struct['C3r']*struct['xr']*struct['yrf']*np.cos(2*struct['alpha']) + 4*struct['C1r']*struct['C2r']*struct['xrf']*struct['yrf']*np.cos(2*struct['alpha']) - 4*struct['C2r']*struct['C3r']*struct['xrf']*struct['yrf']*np.cos(2*struct['alpha']) + 2*power(struct['C2r'],2)*struct['yr']*struct['yrf']*np.cos(2*struct['alpha']) - 8*power(struct['C3r'],2)*struct['yr']*struct['yrf']*np.cos(2*struct['alpha']) - power(struct['C2r'],2)*power(struct['yrf'],2)*np.cos(2*struct['alpha']) + 4*power(struct['C3r'],2)*power(struct['yrf'],2)*np.cos(2*struct['alpha']) + 4*struct['C1r']*struct['C2r']*power(struct['xr'],2)*np.sin(2*struct['alpha']) - 8*struct['C1r']*struct['C2r']*struct['xr']*struct['xrf']*np.sin(2*struct['alpha']) + 4*struct['C1r']*struct['C2r']*power(struct['xrf'],2)*np.sin(2*struct['alpha']) - 2*power(struct['C2r'],2)*struct['xr']*struct['yr']*np.sin(2*struct['alpha']) - 8*struct['C1r']*struct['C3r']*struct['xr']*struct['yr']*np.sin(2*struct['alpha']) + 2*power(struct['C2r'],2)*struct['xrf']*struct['yr']*np.sin(2*struct['alpha']) + 8*struct['C1r']*struct['C3r']*struct['xrf']*struct['yr']*np.sin(2*struct['alpha']) + 4*struct['C2r']*struct['C3r']*power(struct['yr'],2)*np.sin(2*struct['alpha']) + 2*power(struct['C2r'],2)*struct['xr']*struct['yrf']*np.sin(2*struct['alpha']) + 8*struct['C1r']*struct['C3r']*struct['xr']*struct['yrf']*np.sin(2*struct['alpha']) - 2*power(struct['C2r'],2)*struct['xrf']*struct['yrf']*np.sin(2*struct['alpha']) - 8*struct['C1r']*struct['C3r']*struct['xrf']*struct['yrf']*np.sin(2*struct['alpha']) - 8*struct['C2r']*struct['C3r']*struct['yr']*struct['yrf']*np.sin(2*struct['alpha']) + 4*struct['C2r']*struct['C3r']*power(struct['yrf'],2)*np.sin(2*struct['alpha']))/ (4.*(struct['C1r'] + struct['C3r'] + struct['C1r']*np.cos(2*struct['alpha']) - struct['C3r']*np.cos(2*struct['alpha']) - struct['C2r']*np.sin(2*struct['alpha']))))* np.sqrt(struct['C1r'] + struct['C3r'] + struct['C1r']*np.cos(2*struct['alpha']) - struct['C3r']*np.cos(2*struct['alpha']) - struct['C2r']*np.sin(2*struct['alpha']))* (-((-2*struct['C2r']*np.cos(2*struct['alpha']) - 2*struct['C1r']*np.sin(2*struct['alpha']) + 2*struct['C3r']*np.sin(2*struct['alpha']))* (complex(0,1)*struct['C1r']*struct['L'] + complex(0,1)*struct['C3r']*struct['L'] + complex(0,2)*struct['C1r']*struct['xr']*np.cos(struct['alpha']) - complex(0,2)*struct['C1r']*struct['xrf']*np.cos(struct['alpha']) - complex(0,1)*struct['C2r']*struct['yr']*np.cos(struct['alpha']) + complex(0,1)*struct['C2r']*struct['yrf']*np.cos(struct['alpha']) + complex(0,1)*struct['C1r']*struct['L']*np.cos(2*struct['alpha']) - complex(0,1)*struct['C3r']*struct['L']*np.cos(2*struct['alpha']) - complex(0,1)*struct['C2r']*struct['xr']*np.sin(struct['alpha']) + complex(0,1)*struct['C2r']*struct['xrf']*np.sin(struct['alpha']) + complex(0,2)*struct['C3r']*struct['yr']*np.sin(struct['alpha']) - complex(0,2)*struct['C3r']*struct['yrf']*np.sin(struct['alpha']) - complex(0,1)*struct['C2r']*struct['L']*np.sin(2*struct['alpha'])))/ (2.*np.sqrt(2)*power(struct['C1r'] + struct['C3r'] + struct['C1r']*np.cos(2*struct['alpha']) - struct['C3r']*np.cos(2*struct['alpha']) - struct['C2r']*np.sin(2*struct['alpha']),1.5)) + (complex(0,-1)*struct['C2r']*struct['xr']*np.cos(struct['alpha']) + complex(0,1)*struct['C2r']*struct['xrf']*np.cos(struct['alpha']) + complex(0,2)*struct['C3r']*struct['yr']*np.cos(struct['alpha']) - complex(0,2)*struct['C3r']*struct['yrf']*np.cos(struct['alpha']) - complex(0,2)*struct['C2r']*struct['L']*np.cos(2*struct['alpha']) - complex(0,2)*struct['C1r']*struct['xr']*np.sin(struct['alpha']) + complex(0,2)*struct['C1r']*struct['xrf']*np.sin(struct['alpha']) + complex(0,1)*struct['C2r']*struct['yr']*np.sin(struct['alpha']) - complex(0,1)*struct['C2r']*struct['yrf']*np.sin(struct['alpha']) - complex(0,2)*struct['C1r']*struct['L']*np.sin(2*struct['alpha']) + complex(0,2)*struct['C3r']*struct['L']*np.sin(2*struct['alpha']))/ (np.sqrt(2)*np.sqrt(struct['C1r'] + struct['C3r'] + struct['C1r']*np.cos(2*struct['alpha']) - struct['C3r']*np.cos(2*struct['alpha']) - struct['C2r']*np.sin(2*struct['alpha'])))))/ (complex(0,1)*struct['C1r'] + complex(0,1)*struct['C3r'] + complex(0,1)*struct['C1r']*np.cos(2*struct['alpha']) - complex(0,1)*struct['C3r']*np.cos(2*struct['alpha']) - complex(0,1)*struct['C2r']*np.sin(2*struct['alpha'])) - (power(struct['E'],-(struct['C1r']*power(struct['xr'],2)) + 2*struct['C1r']*struct['xr']*struct['xrf'] - struct['C1r']*power(struct['xrf'],2) + struct['C2r']*struct['xr']*struct['yr'] - struct['C2r']*struct['xrf']*struct['yr'] - struct['C3r']*power(struct['yr'],2) - struct['C2r']*struct['xr']*struct['yrf'] + struct['C2r']*struct['xrf']*struct['yrf'] + 2*struct['C3r']*struct['yr']*struct['yrf'] - struct['C3r']*power(struct['yrf'],2) - (-4*power(struct['C1r'],2)*power(struct['xr'],2) - power(struct['C2r'],2)*power(struct['xr'],2) + 8*power(struct['C1r'],2)*struct['xr']*struct['xrf'] + 2*power(struct['C2r'],2)*struct['xr']*struct['xrf'] - 4*power(struct['C1r'],2)*power(struct['xrf'],2) - power(struct['C2r'],2)*power(struct['xrf'],2) + 4*struct['C1r']*struct['C2r']*struct['xr']*struct['yr'] + 4*struct['C2r']*struct['C3r']*struct['xr']*struct['yr'] - 4*struct['C1r']*struct['C2r']*struct['xrf']*struct['yr'] - 4*struct['C2r']*struct['C3r']*struct['xrf']*struct['yr'] - power(struct['C2r'],2)*power(struct['yr'],2) - 4*power(struct['C3r'],2)*power(struct['yr'],2) - 4*struct['C1r']*struct['C2r']*struct['xr']*struct['yrf'] - 4*struct['C2r']*struct['C3r']*struct['xr']*struct['yrf'] + 4*struct['C1r']*struct['C2r']*struct['xrf']*struct['yrf'] + 4*struct['C2r']*struct['C3r']*struct['xrf']*struct['yrf'] + 2*power(struct['C2r'],2)*struct['yr']*struct['yrf'] + 8*power(struct['C3r'],2)*struct['yr']*struct['yrf'] - power(struct['C2r'],2)*power(struct['yrf'],2) - 4*power(struct['C3r'],2)*power(struct['yrf'],2) - 4*power(struct['C1r'],2)*power(struct['xr'],2)*np.cos(2*struct['alpha']) + power(struct['C2r'],2)*power(struct['xr'],2)*np.cos(2*struct['alpha']) + 8*power(struct['C1r'],2)*struct['xr']*struct['xrf']*np.cos(2*struct['alpha']) - 2*power(struct['C2r'],2)*struct['xr']*struct['xrf']*np.cos(2*struct['alpha']) - 4*power(struct['C1r'],2)*power(struct['xrf'],2)*np.cos(2*struct['alpha']) + power(struct['C2r'],2)*power(struct['xrf'],2)*np.cos(2*struct['alpha']) + 4*struct['C1r']*struct['C2r']*struct['xr']*struct['yr']*np.cos(2*struct['alpha']) - 4*struct['C2r']*struct['C3r']*struct['xr']*struct['yr']*np.cos(2*struct['alpha']) - 4*struct['C1r']*struct['C2r']*struct['xrf']*struct['yr']*np.cos(2*struct['alpha']) + 4*struct['C2r']*struct['C3r']*struct['xrf']*struct['yr']*np.cos(2*struct['alpha']) - power(struct['C2r'],2)*power(struct['yr'],2)*np.cos(2*struct['alpha']) + 4*power(struct['C3r'],2)*power(struct['yr'],2)*np.cos(2*struct['alpha']) - 4*struct['C1r']*struct['C2r']*struct['xr']*struct['yrf']*np.cos(2*struct['alpha']) + 4*struct['C2r']*struct['C3r']*struct['xr']*struct['yrf']*np.cos(2*struct['alpha']) + 4*struct['C1r']*struct['C2r']*struct['xrf']*struct['yrf']*np.cos(2*struct['alpha']) - 4*struct['C2r']*struct['C3r']*struct['xrf']*struct['yrf']*np.cos(2*struct['alpha']) + 2*power(struct['C2r'],2)*struct['yr']*struct['yrf']*np.cos(2*struct['alpha']) - 8*power(struct['C3r'],2)*struct['yr']*struct['yrf']*np.cos(2*struct['alpha']) - power(struct['C2r'],2)*power(struct['yrf'],2)*np.cos(2*struct['alpha']) + 4*power(struct['C3r'],2)*power(struct['yrf'],2)*np.cos(2*struct['alpha']) + 4*struct['C1r']*struct['C2r']*power(struct['xr'],2)*np.sin(2*struct['alpha']) - 8*struct['C1r']*struct['C2r']*struct['xr']*struct['xrf']*np.sin(2*struct['alpha']) + 4*struct['C1r']*struct['C2r']*power(struct['xrf'],2)*np.sin(2*struct['alpha']) - 2*power(struct['C2r'],2)*struct['xr']*struct['yr']*np.sin(2*struct['alpha']) - 8*struct['C1r']*struct['C3r']*struct['xr']*struct['yr']*np.sin(2*struct['alpha']) + 2*power(struct['C2r'],2)*struct['xrf']*struct['yr']*np.sin(2*struct['alpha']) + 8*struct['C1r']*struct['C3r']*struct['xrf']*struct['yr']*np.sin(2*struct['alpha']) + 4*struct['C2r']*struct['C3r']*power(struct['yr'],2)*np.sin(2*struct['alpha']) + 2*power(struct['C2r'],2)*struct['xr']*struct['yrf']*np.sin(2*struct['alpha']) + 8*struct['C1r']*struct['C3r']*struct['xr']*struct['yrf']*np.sin(2*struct['alpha']) - 2*power(struct['C2r'],2)*struct['xrf']*struct['yrf']*np.sin(2*struct['alpha']) - 8*struct['C1r']*struct['C3r']*struct['xrf']*struct['yrf']*np.sin(2*struct['alpha']) - 8*struct['C2r']*struct['C3r']*struct['yr']*struct['yrf']*np.sin(2*struct['alpha']) + 4*struct['C2r']*struct['C3r']*power(struct['yrf'],2)*np.sin(2*struct['alpha']))/ (4.*(struct['C1r'] + struct['C3r'] + struct['C1r']*np.cos(2*struct['alpha']) - struct['C3r']*np.cos(2*struct['alpha']) - struct['C2r']*np.sin(2*struct['alpha']))))*np.sqrt(np.pi/2.)* special.erfi((complex(0,2)*struct['C1r']*struct['xr']*np.cos(struct['alpha']) - complex(0,2)*struct['C1r']*struct['xrf']*np.cos(struct['alpha']) - complex(0,1)*struct['C2r']*struct['yr']*np.cos(struct['alpha']) + complex(0,1)*struct['C2r']*struct['yrf']*np.cos(struct['alpha']) - complex(0,1)*struct['C2r']*struct['xr']*np.sin(struct['alpha']) + complex(0,1)*struct['C2r']*struct['xrf']*np.sin(struct['alpha']) + complex(0,2)*struct['C3r']*struct['yr']*np.sin(struct['alpha']) - complex(0,2)*struct['C3r']*struct['yrf']*np.sin(struct['alpha']))/ (np.sqrt(2)*np.sqrt(struct['C1r'] + struct['C3r'] + struct['C1r']*np.cos(2*struct['alpha']) - struct['C3r']*np.cos(2*struct['alpha']) - struct['C2r']*np.sin(2*struct['alpha']))))* np.sqrt(struct['C1r'] + struct['C3r'] + struct['C1r']*np.cos(2*struct['alpha']) - struct['C3r']*np.cos(2*struct['alpha']) - struct['C2r']*np.sin(2*struct['alpha']))* (((-2*struct['C2r']*np.cos(2*struct['alpha']) - 2*struct['C1r']*np.sin(2*struct['alpha']) + 2*struct['C3r']*np.sin(2*struct['alpha']))* (-4*power(struct['C1r'],2)*power(struct['xr'],2) - power(struct['C2r'],2)*power(struct['xr'],2) + 8*power(struct['C1r'],2)*struct['xr']*struct['xrf'] + 2*power(struct['C2r'],2)*struct['xr']*struct['xrf'] - 4*power(struct['C1r'],2)*power(struct['xrf'],2) - power(struct['C2r'],2)*power(struct['xrf'],2) + 4*struct['C1r']*struct['C2r']*struct['xr']*struct['yr'] + 4*struct['C2r']*struct['C3r']*struct['xr']*struct['yr'] - 4*struct['C1r']*struct['C2r']*struct['xrf']*struct['yr'] - 4*struct['C2r']*struct['C3r']*struct['xrf']*struct['yr'] - power(struct['C2r'],2)*power(struct['yr'],2) - 4*power(struct['C3r'],2)*power(struct['yr'],2) - 4*struct['C1r']*struct['C2r']*struct['xr']*struct['yrf'] - 4*struct['C2r']*struct['C3r']*struct['xr']*struct['yrf'] + 4*struct['C1r']*struct['C2r']*struct['xrf']*struct['yrf'] + 4*struct['C2r']*struct['C3r']*struct['xrf']*struct['yrf'] + 2*power(struct['C2r'],2)*struct['yr']*struct['yrf'] + 8*power(struct['C3r'],2)*struct['yr']*struct['yrf'] - power(struct['C2r'],2)*power(struct['yrf'],2) - 4*power(struct['C3r'],2)*power(struct['yrf'],2) - 4*power(struct['C1r'],2)*power(struct['xr'],2)*np.cos(2*struct['alpha']) + power(struct['C2r'],2)*power(struct['xr'],2)*np.cos(2*struct['alpha']) + 8*power(struct['C1r'],2)*struct['xr']*struct['xrf']*np.cos(2*struct['alpha']) - 2*power(struct['C2r'],2)*struct['xr']*struct['xrf']*np.cos(2*struct['alpha']) - 4*power(struct['C1r'],2)*power(struct['xrf'],2)*np.cos(2*struct['alpha']) + power(struct['C2r'],2)*power(struct['xrf'],2)*np.cos(2*struct['alpha']) + 4*struct['C1r']*struct['C2r']*struct['xr']*struct['yr']*np.cos(2*struct['alpha']) - 4*struct['C2r']*struct['C3r']*struct['xr']*struct['yr']*np.cos(2*struct['alpha']) - 4*struct['C1r']*struct['C2r']*struct['xrf']*struct['yr']*np.cos(2*struct['alpha']) + 4*struct['C2r']*struct['C3r']*struct['xrf']*struct['yr']*np.cos(2*struct['alpha']) - power(struct['C2r'],2)*power(struct['yr'],2)*np.cos(2*struct['alpha']) + 4*power(struct['C3r'],2)*power(struct['yr'],2)*np.cos(2*struct['alpha']) - 4*struct['C1r']*struct['C2r']*struct['xr']*struct['yrf']*np.cos(2*struct['alpha']) + 4*struct['C2r']*struct['C3r']*struct['xr']*struct['yrf']*np.cos(2*struct['alpha']) + 4*struct['C1r']*struct['C2r']*struct['xrf']*struct['yrf']*np.cos(2*struct['alpha']) - 4*struct['C2r']*struct['C3r']*struct['xrf']*struct['yrf']*np.cos(2*struct['alpha']) + 2*power(struct['C2r'],2)*struct['yr']*struct['yrf']*np.cos(2*struct['alpha']) - 8*power(struct['C3r'],2)*struct['yr']*struct['yrf']*np.cos(2*struct['alpha']) - power(struct['C2r'],2)*power(struct['yrf'],2)*np.cos(2*struct['alpha']) + 4*power(struct['C3r'],2)*power(struct['yrf'],2)*np.cos(2*struct['alpha']) + 4*struct['C1r']*struct['C2r']*power(struct['xr'],2)*np.sin(2*struct['alpha']) - 8*struct['C1r']*struct['C2r']*struct['xr']*struct['xrf']*np.sin(2*struct['alpha']) + 4*struct['C1r']*struct['C2r']*power(struct['xrf'],2)*np.sin(2*struct['alpha']) - 2*power(struct['C2r'],2)*struct['xr']*struct['yr']*np.sin(2*struct['alpha']) - 8*struct['C1r']*struct['C3r']*struct['xr']*struct['yr']*np.sin(2*struct['alpha']) + 2*power(struct['C2r'],2)*struct['xrf']*struct['yr']*np.sin(2*struct['alpha']) + 8*struct['C1r']*struct['C3r']*struct['xrf']*struct['yr']*np.sin(2*struct['alpha']) + 4*struct['C2r']*struct['C3r']*power(struct['yr'],2)*np.sin(2*struct['alpha']) + 2*power(struct['C2r'],2)*struct['xr']*struct['yrf']*np.sin(2*struct['alpha']) + 8*struct['C1r']*struct['C3r']*struct['xr']*struct['yrf']*np.sin(2*struct['alpha']) - 2*power(struct['C2r'],2)*struct['xrf']*struct['yrf']*np.sin(2*struct['alpha']) - 8*struct['C1r']*struct['C3r']*struct['xrf']*struct['yrf']*np.sin(2*struct['alpha']) - 8*struct['C2r']*struct['C3r']*struct['yr']*struct['yrf']*np.sin(2*struct['alpha']) + 4*struct['C2r']*struct['C3r']*power(struct['yrf'],2)*np.sin(2*struct['alpha'])))/ (4.*power(struct['C1r'] + struct['C3r'] + struct['C1r']*np.cos(2*struct['alpha']) - struct['C3r']*np.cos(2*struct['alpha']) - struct['C2r']*np.sin(2*struct['alpha']),2)) - (8*struct['C1r']*struct['C2r']*power(struct['xr'],2)*np.cos(2*struct['alpha']) - 16*struct['C1r']*struct['C2r']*struct['xr']*struct['xrf']*np.cos(2*struct['alpha']) + 8*struct['C1r']*struct['C2r']*power(struct['xrf'],2)*np.cos(2*struct['alpha']) - 4*power(struct['C2r'],2)*struct['xr']*struct['yr']*np.cos(2*struct['alpha']) - 16*struct['C1r']*struct['C3r']*struct['xr']*struct['yr']*np.cos(2*struct['alpha']) + 4*power(struct['C2r'],2)*struct['xrf']*struct['yr']*np.cos(2*struct['alpha']) + 16*struct['C1r']*struct['C3r']*struct['xrf']*struct['yr']*np.cos(2*struct['alpha']) + 8*struct['C2r']*struct['C3r']*power(struct['yr'],2)*np.cos(2*struct['alpha']) + 4*power(struct['C2r'],2)*struct['xr']*struct['yrf']*np.cos(2*struct['alpha']) + 16*struct['C1r']*struct['C3r']*struct['xr']*struct['yrf']*np.cos(2*struct['alpha']) - 4*power(struct['C2r'],2)*struct['xrf']*struct['yrf']*np.cos(2*struct['alpha']) - 16*struct['C1r']*struct['C3r']*struct['xrf']*struct['yrf']*np.cos(2*struct['alpha']) - 16*struct['C2r']*struct['C3r']*struct['yr']*struct['yrf']*np.cos(2*struct['alpha']) + 8*struct['C2r']*struct['C3r']*power(struct['yrf'],2)*np.cos(2*struct['alpha']) + 8*power(struct['C1r'],2)*power(struct['xr'],2)*np.sin(2*struct['alpha']) - 2*power(struct['C2r'],2)*power(struct['xr'],2)*np.sin(2*struct['alpha']) - 16*power(struct['C1r'],2)*struct['xr']*struct['xrf']*np.sin(2*struct['alpha']) + 4*power(struct['C2r'],2)*struct['xr']*struct['xrf']*np.sin(2*struct['alpha']) + 8*power(struct['C1r'],2)*power(struct['xrf'],2)*np.sin(2*struct['alpha']) - 2*power(struct['C2r'],2)*power(struct['xrf'],2)*np.sin(2*struct['alpha']) - 8*struct['C1r']*struct['C2r']*struct['xr']*struct['yr']*np.sin(2*struct['alpha']) + 8*struct['C2r']*struct['C3r']*struct['xr']*struct['yr']*np.sin(2*struct['alpha']) + 8*struct['C1r']*struct['C2r']*struct['xrf']*struct['yr']*np.sin(2*struct['alpha']) - 8*struct['C2r']*struct['C3r']*struct['xrf']*struct['yr']*np.sin(2*struct['alpha']) + 2*power(struct['C2r'],2)*power(struct['yr'],2)*np.sin(2*struct['alpha']) - 8*power(struct['C3r'],2)*power(struct['yr'],2)*np.sin(2*struct['alpha']) + 8*struct['C1r']*struct['C2r']*struct['xr']*struct['yrf']*np.sin(2*struct['alpha']) - 8*struct['C2r']*struct['C3r']*struct['xr']*struct['yrf']*np.sin(2*struct['alpha']) - 8*struct['C1r']*struct['C2r']*struct['xrf']*struct['yrf']*np.sin(2*struct['alpha']) + 8*struct['C2r']*struct['C3r']*struct['xrf']*struct['yrf']*np.sin(2*struct['alpha']) - 4*power(struct['C2r'],2)*struct['yr']*struct['yrf']*np.sin(2*struct['alpha']) + 16*power(struct['C3r'],2)*struct['yr']*struct['yrf']*np.sin(2*struct['alpha']) + 2*power(struct['C2r'],2)*power(struct['yrf'],2)*np.sin(2*struct['alpha']) - 8*power(struct['C3r'],2)*power(struct['yrf'],2)*np.sin(2*struct['alpha']))/ (4.*(struct['C1r'] + struct['C3r'] + struct['C1r']*np.cos(2*struct['alpha']) - struct['C3r']*np.cos(2*struct['alpha']) - struct['C2r']*np.sin(2*struct['alpha'])))))/ (complex(0,1)*struct['C1r'] + complex(0,1)*struct['C3r'] + complex(0,1)*struct['C1r']*np.cos(2*struct['alpha']) - complex(0,1)*struct['C3r']*np.cos(2*struct['alpha']) - complex(0,1)*struct['C2r']*np.sin(2*struct['alpha'])) + (power(struct['E'],-(struct['C1r']*power(struct['xr'],2)) + 2*struct['C1r']*struct['xr']*struct['xrf'] - struct['C1r']*power(struct['xrf'],2) + struct['C2r']*struct['xr']*struct['yr'] - struct['C2r']*struct['xrf']*struct['yr'] - struct['C3r']*power(struct['yr'],2) - struct['C2r']*struct['xr']*struct['yrf'] + struct['C2r']*struct['xrf']*struct['yrf'] + 2*struct['C3r']*struct['yr']*struct['yrf'] - struct['C3r']*power(struct['yrf'],2) - (-4*power(struct['C1r'],2)*power(struct['xr'],2) - power(struct['C2r'],2)*power(struct['xr'],2) + 8*power(struct['C1r'],2)*struct['xr']*struct['xrf'] + 2*power(struct['C2r'],2)*struct['xr']*struct['xrf'] - 4*power(struct['C1r'],2)*power(struct['xrf'],2) - power(struct['C2r'],2)*power(struct['xrf'],2) + 4*struct['C1r']*struct['C2r']*struct['xr']*struct['yr'] + 4*struct['C2r']*struct['C3r']*struct['xr']*struct['yr'] - 4*struct['C1r']*struct['C2r']*struct['xrf']*struct['yr'] - 4*struct['C2r']*struct['C3r']*struct['xrf']*struct['yr'] - power(struct['C2r'],2)*power(struct['yr'],2) - 4*power(struct['C3r'],2)*power(struct['yr'],2) - 4*struct['C1r']*struct['C2r']*struct['xr']*struct['yrf'] - 4*struct['C2r']*struct['C3r']*struct['xr']*struct['yrf'] + 4*struct['C1r']*struct['C2r']*struct['xrf']*struct['yrf'] + 4*struct['C2r']*struct['C3r']*struct['xrf']*struct['yrf'] + 2*power(struct['C2r'],2)*struct['yr']*struct['yrf'] + 8*power(struct['C3r'],2)*struct['yr']*struct['yrf'] - power(struct['C2r'],2)*power(struct['yrf'],2) - 4*power(struct['C3r'],2)*power(struct['yrf'],2) - 4*power(struct['C1r'],2)*power(struct['xr'],2)*np.cos(2*struct['alpha']) + power(struct['C2r'],2)*power(struct['xr'],2)*np.cos(2*struct['alpha']) + 8*power(struct['C1r'],2)*struct['xr']*struct['xrf']*np.cos(2*struct['alpha']) - 2*power(struct['C2r'],2)*struct['xr']*struct['xrf']*np.cos(2*struct['alpha']) - 4*power(struct['C1r'],2)*power(struct['xrf'],2)*np.cos(2*struct['alpha']) + power(struct['C2r'],2)*power(struct['xrf'],2)*np.cos(2*struct['alpha']) + 4*struct['C1r']*struct['C2r']*struct['xr']*struct['yr']*np.cos(2*struct['alpha']) - 4*struct['C2r']*struct['C3r']*struct['xr']*struct['yr']*np.cos(2*struct['alpha']) - 4*struct['C1r']*struct['C2r']*struct['xrf']*struct['yr']*np.cos(2*struct['alpha']) + 4*struct['C2r']*struct['C3r']*struct['xrf']*struct['yr']*np.cos(2*struct['alpha']) - power(struct['C2r'],2)*power(struct['yr'],2)*np.cos(2*struct['alpha']) + 4*power(struct['C3r'],2)*power(struct['yr'],2)*np.cos(2*struct['alpha']) - 4*struct['C1r']*struct['C2r']*struct['xr']*struct['yrf']*np.cos(2*struct['alpha']) + 4*struct['C2r']*struct['C3r']*struct['xr']*struct['yrf']*np.cos(2*struct['alpha']) + 4*struct['C1r']*struct['C2r']*struct['xrf']*struct['yrf']*np.cos(2*struct['alpha']) - 4*struct['C2r']*struct['C3r']*struct['xrf']*struct['yrf']*np.cos(2*struct['alpha']) + 2*power(struct['C2r'],2)*struct['yr']*struct['yrf']*np.cos(2*struct['alpha']) - 8*power(struct['C3r'],2)*struct['yr']*struct['yrf']*np.cos(2*struct['alpha']) - power(struct['C2r'],2)*power(struct['yrf'],2)*np.cos(2*struct['alpha']) + 4*power(struct['C3r'],2)*power(struct['yrf'],2)*np.cos(2*struct['alpha']) + 4*struct['C1r']*struct['C2r']*power(struct['xr'],2)*np.sin(2*struct['alpha']) - 8*struct['C1r']*struct['C2r']*struct['xr']*struct['xrf']*np.sin(2*struct['alpha']) + 4*struct['C1r']*struct['C2r']*power(struct['xrf'],2)*np.sin(2*struct['alpha']) - 2*power(struct['C2r'],2)*struct['xr']*struct['yr']*np.sin(2*struct['alpha']) - 8*struct['C1r']*struct['C3r']*struct['xr']*struct['yr']*np.sin(2*struct['alpha']) + 2*power(struct['C2r'],2)*struct['xrf']*struct['yr']*np.sin(2*struct['alpha']) + 8*struct['C1r']*struct['C3r']*struct['xrf']*struct['yr']*np.sin(2*struct['alpha']) + 4*struct['C2r']*struct['C3r']*power(struct['yr'],2)*np.sin(2*struct['alpha']) + 2*power(struct['C2r'],2)*struct['xr']*struct['yrf']*np.sin(2*struct['alpha']) + 8*struct['C1r']*struct['C3r']*struct['xr']*struct['yrf']*np.sin(2*struct['alpha']) - 2*power(struct['C2r'],2)*struct['xrf']*struct['yrf']*np.sin(2*struct['alpha']) - 8*struct['C1r']*struct['C3r']*struct['xrf']*struct['yrf']*np.sin(2*struct['alpha']) - 8*struct['C2r']*struct['C3r']*struct['yr']*struct['yrf']*np.sin(2*struct['alpha']) + 4*struct['C2r']*struct['C3r']*power(struct['yrf'],2)*np.sin(2*struct['alpha']))/ (4.*(struct['C1r'] + struct['C3r'] + struct['C1r']*np.cos(2*struct['alpha']) - struct['C3r']*np.cos(2*struct['alpha']) - struct['C2r']*np.sin(2*struct['alpha']))))*np.sqrt(np.pi/2.)* special.erfi((complex(0,1)*struct['C1r']*struct['L'] + complex(0,1)*struct['C3r']*struct['L'] + complex(0,2)*struct['C1r']*struct['xr']*np.cos(struct['alpha']) - complex(0,2)*struct['C1r']*struct['xrf']*np.cos(struct['alpha']) - complex(0,1)*struct['C2r']*struct['yr']*np.cos(struct['alpha']) + complex(0,1)*struct['C2r']*struct['yrf']*np.cos(struct['alpha']) + complex(0,1)*struct['C1r']*struct['L']*np.cos(2*struct['alpha']) - complex(0,1)*struct['C3r']*struct['L']*np.cos(2*struct['alpha']) - complex(0,1)*struct['C2r']*struct['xr']*np.sin(struct['alpha']) + complex(0,1)*struct['C2r']*struct['xrf']*np.sin(struct['alpha']) + complex(0,2)*struct['C3r']*struct['yr']*np.sin(struct['alpha']) - complex(0,2)*struct['C3r']*struct['yrf']*np.sin(struct['alpha']) - complex(0,1)*struct['C2r']*struct['L']*np.sin(2*struct['alpha']))/ (np.sqrt(2)*np.sqrt(struct['C1r'] + struct['C3r'] + struct['C1r']*np.cos(2*struct['alpha']) - struct['C3r']*np.cos(2*struct['alpha']) - struct['C2r']*np.sin(2*struct['alpha']))))* np.sqrt(struct['C1r'] + struct['C3r'] + struct['C1r']*np.cos(2*struct['alpha']) - struct['C3r']*np.cos(2*struct['alpha']) - struct['C2r']*np.sin(2*struct['alpha']))* (((-2*struct['C2r']*np.cos(2*struct['alpha']) - 2*struct['C1r']*np.sin(2*struct['alpha']) + 2*struct['C3r']*np.sin(2*struct['alpha']))* (-4*power(struct['C1r'],2)*power(struct['xr'],2) - power(struct['C2r'],2)*power(struct['xr'],2) + 8*power(struct['C1r'],2)*struct['xr']*struct['xrf'] + 2*power(struct['C2r'],2)*struct['xr']*struct['xrf'] - 4*power(struct['C1r'],2)*power(struct['xrf'],2) - power(struct['C2r'],2)*power(struct['xrf'],2) + 4*struct['C1r']*struct['C2r']*struct['xr']*struct['yr'] + 4*struct['C2r']*struct['C3r']*struct['xr']*struct['yr'] - 4*struct['C1r']*struct['C2r']*struct['xrf']*struct['yr'] - 4*struct['C2r']*struct['C3r']*struct['xrf']*struct['yr'] - power(struct['C2r'],2)*power(struct['yr'],2) - 4*power(struct['C3r'],2)*power(struct['yr'],2) - 4*struct['C1r']*struct['C2r']*struct['xr']*struct['yrf'] - 4*struct['C2r']*struct['C3r']*struct['xr']*struct['yrf'] + 4*struct['C1r']*struct['C2r']*struct['xrf']*struct['yrf'] + 4*struct['C2r']*struct['C3r']*struct['xrf']*struct['yrf'] + 2*power(struct['C2r'],2)*struct['yr']*struct['yrf'] + 8*power(struct['C3r'],2)*struct['yr']*struct['yrf'] - power(struct['C2r'],2)*power(struct['yrf'],2) - 4*power(struct['C3r'],2)*power(struct['yrf'],2) - 4*power(struct['C1r'],2)*power(struct['xr'],2)*np.cos(2*struct['alpha']) + power(struct['C2r'],2)*power(struct['xr'],2)*np.cos(2*struct['alpha']) + 8*power(struct['C1r'],2)*struct['xr']*struct['xrf']*np.cos(2*struct['alpha']) - 2*power(struct['C2r'],2)*struct['xr']*struct['xrf']*np.cos(2*struct['alpha']) - 4*power(struct['C1r'],2)*power(struct['xrf'],2)*np.cos(2*struct['alpha']) + power(struct['C2r'],2)*power(struct['xrf'],2)*np.cos(2*struct['alpha']) + 4*struct['C1r']*struct['C2r']*struct['xr']*struct['yr']*np.cos(2*struct['alpha']) - 4*struct['C2r']*struct['C3r']*struct['xr']*struct['yr']*np.cos(2*struct['alpha']) - 4*struct['C1r']*struct['C2r']*struct['xrf']*struct['yr']*np.cos(2*struct['alpha']) + 4*struct['C2r']*struct['C3r']*struct['xrf']*struct['yr']*np.cos(2*struct['alpha']) - power(struct['C2r'],2)*power(struct['yr'],2)*np.cos(2*struct['alpha']) + 4*power(struct['C3r'],2)*power(struct['yr'],2)*np.cos(2*struct['alpha']) - 4*struct['C1r']*struct['C2r']*struct['xr']*struct['yrf']*np.cos(2*struct['alpha']) + 4*struct['C2r']*struct['C3r']*struct['xr']*struct['yrf']*np.cos(2*struct['alpha']) + 4*struct['C1r']*struct['C2r']*struct['xrf']*struct['yrf']*np.cos(2*struct['alpha']) - 4*struct['C2r']*struct['C3r']*struct['xrf']*struct['yrf']*np.cos(2*struct['alpha']) + 2*power(struct['C2r'],2)*struct['yr']*struct['yrf']*np.cos(2*struct['alpha']) - 8*power(struct['C3r'],2)*struct['yr']*struct['yrf']*np.cos(2*struct['alpha']) - power(struct['C2r'],2)*power(struct['yrf'],2)*np.cos(2*struct['alpha']) + 4*power(struct['C3r'],2)*power(struct['yrf'],2)*np.cos(2*struct['alpha']) + 4*struct['C1r']*struct['C2r']*power(struct['xr'],2)*np.sin(2*struct['alpha']) - 8*struct['C1r']*struct['C2r']*struct['xr']*struct['xrf']*np.sin(2*struct['alpha']) + 4*struct['C1r']*struct['C2r']*power(struct['xrf'],2)*np.sin(2*struct['alpha']) - 2*power(struct['C2r'],2)*struct['xr']*struct['yr']*np.sin(2*struct['alpha']) - 8*struct['C1r']*struct['C3r']*struct['xr']*struct['yr']*np.sin(2*struct['alpha']) + 2*power(struct['C2r'],2)*struct['xrf']*struct['yr']*np.sin(2*struct['alpha']) + 8*struct['C1r']*struct['C3r']*struct['xrf']*struct['yr']*np.sin(2*struct['alpha']) + 4*struct['C2r']*struct['C3r']*power(struct['yr'],2)*np.sin(2*struct['alpha']) + 2*power(struct['C2r'],2)*struct['xr']*struct['yrf']*np.sin(2*struct['alpha']) + 8*struct['C1r']*struct['C3r']*struct['xr']*struct['yrf']*np.sin(2*struct['alpha']) - 2*power(struct['C2r'],2)*struct['xrf']*struct['yrf']*np.sin(2*struct['alpha']) - 8*struct['C1r']*struct['C3r']*struct['xrf']*struct['yrf']*np.sin(2*struct['alpha']) - 8*struct['C2r']*struct['C3r']*struct['yr']*struct['yrf']*np.sin(2*struct['alpha']) + 4*struct['C2r']*struct['C3r']*power(struct['yrf'],2)*np.sin(2*struct['alpha'])))/ (4.*power(struct['C1r'] + struct['C3r'] + struct['C1r']*np.cos(2*struct['alpha']) - struct['C3r']*np.cos(2*struct['alpha']) - struct['C2r']*np.sin(2*struct['alpha']),2)) - (8*struct['C1r']*struct['C2r']*power(struct['xr'],2)*np.cos(2*struct['alpha']) - 16*struct['C1r']*struct['C2r']*struct['xr']*struct['xrf']*np.cos(2*struct['alpha']) + 8*struct['C1r']*struct['C2r']*power(struct['xrf'],2)*np.cos(2*struct['alpha']) - 4*power(struct['C2r'],2)*struct['xr']*struct['yr']*np.cos(2*struct['alpha']) - 16*struct['C1r']*struct['C3r']*struct['xr']*struct['yr']*np.cos(2*struct['alpha']) + 4*power(struct['C2r'],2)*struct['xrf']*struct['yr']*np.cos(2*struct['alpha']) + 16*struct['C1r']*struct['C3r']*struct['xrf']*struct['yr']*np.cos(2*struct['alpha']) + 8*struct['C2r']*struct['C3r']*power(struct['yr'],2)*np.cos(2*struct['alpha']) + 4*power(struct['C2r'],2)*struct['xr']*struct['yrf']*np.cos(2*struct['alpha']) + 16*struct['C1r']*struct['C3r']*struct['xr']*struct['yrf']*np.cos(2*struct['alpha']) - 4*power(struct['C2r'],2)*struct['xrf']*struct['yrf']*np.cos(2*struct['alpha']) - 16*struct['C1r']*struct['C3r']*struct['xrf']*struct['yrf']*np.cos(2*struct['alpha']) - 16*struct['C2r']*struct['C3r']*struct['yr']*struct['yrf']*np.cos(2*struct['alpha']) + 8*struct['C2r']*struct['C3r']*power(struct['yrf'],2)*np.cos(2*struct['alpha']) + 8*power(struct['C1r'],2)*power(struct['xr'],2)*np.sin(2*struct['alpha']) - 2*power(struct['C2r'],2)*power(struct['xr'],2)*np.sin(2*struct['alpha']) - 16*power(struct['C1r'],2)*struct['xr']*struct['xrf']*np.sin(2*struct['alpha']) + 4*power(struct['C2r'],2)*struct['xr']*struct['xrf']*np.sin(2*struct['alpha']) + 8*power(struct['C1r'],2)*power(struct['xrf'],2)*np.sin(2*struct['alpha']) - 2*power(struct['C2r'],2)*power(struct['xrf'],2)*np.sin(2*struct['alpha']) - 8*struct['C1r']*struct['C2r']*struct['xr']*struct['yr']*np.sin(2*struct['alpha']) + 8*struct['C2r']*struct['C3r']*struct['xr']*struct['yr']*np.sin(2*struct['alpha']) + 8*struct['C1r']*struct['C2r']*struct['xrf']*struct['yr']*np.sin(2*struct['alpha']) - 8*struct['C2r']*struct['C3r']*struct['xrf']*struct['yr']*np.sin(2*struct['alpha']) + 2*power(struct['C2r'],2)*power(struct['yr'],2)*np.sin(2*struct['alpha']) - 8*power(struct['C3r'],2)*power(struct['yr'],2)*np.sin(2*struct['alpha']) + 8*struct['C1r']*struct['C2r']*struct['xr']*struct['yrf']*np.sin(2*struct['alpha']) - 8*struct['C2r']*struct['C3r']*struct['xr']*struct['yrf']*np.sin(2*struct['alpha']) - 8*struct['C1r']*struct['C2r']*struct['xrf']*struct['yrf']*np.sin(2*struct['alpha']) + 8*struct['C2r']*struct['C3r']*struct['xrf']*struct['yrf']*np.sin(2*struct['alpha']) - 4*power(struct['C2r'],2)*struct['yr']*struct['yrf']*np.sin(2*struct['alpha']) + 16*power(struct['C3r'],2)*struct['yr']*struct['yrf']*np.sin(2*struct['alpha']) + 2*power(struct['C2r'],2)*power(struct['yrf'],2)*np.sin(2*struct['alpha']) - 8*power(struct['C3r'],2)*power(struct['yrf'],2)*np.sin(2*struct['alpha']))/ (4.*(struct['C1r'] + struct['C3r'] + struct['C1r']*np.cos(2*struct['alpha']) - struct['C3r']*np.cos(2*struct['alpha']) - struct['C2r']*np.sin(2*struct['alpha'])))))/ (complex(0,1)*struct['C1r'] + complex(0,1)*struct['C3r'] + complex(0,1)*struct['C1r']*np.cos(2*struct['alpha']) - complex(0,1)*struct['C3r']*np.cos(2*struct['alpha']) - complex(0,1)*struct['C2r']*np.sin(2*struct['alpha'])))
return der
def calculate(x):
'''Calculate partial derivatives'''
return np.real(np.array([derx(x), dery(x), deralpha(x)]))