-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdiff_eq_multi_2.py
765 lines (599 loc) · 18.7 KB
/
diff_eq_multi_2.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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
""" Differential equations to solve for multicomponent DM, reformulated.
"""
import numpy as np
import physics as phys
import integrals as integ
def D_bm(
m_m, m_C, Q, Q_d,
Delta_CMB_b, Delta_b_m, Delta_m_C,
V_bm, V_mC, xe, rs, neutral_H, neutral_He,
f
):
# d|V_bm|/dt
alpha = 1. - f
beta = m_m/m_C
T_b = phys.TCMB(rs) - Delta_CMB_b
T_m = T_b - Delta_b_m
T_C = T_m - Delta_m_C
rho_m_0 = f * phys.rho_DM
mu_mC = m_m * m_C/(m_m + m_C)
n_C = (1-f) * phys.rho_DM * rs**3 / m_C
species_list = ['e', 'p']
mu_list = [
m_m * phys.me / (m_m + phys.me),
m_m * phys.mp / (m_m + phys.mp)
]
n_list = [
xe * phys.nH * rs**3,
xe * phys.nH * rs**3
]
if neutral_H:
species_list.append('H')
mu_list.append(m_m * phys.mp/(m_m + phys.mp))
n_list.append((1-xe) * phys.nH * rs**3)
if neutral_He:
species_list.append('He')
mu_list.append(m_m * phys.mHe/(m_m + phys.mHe))
n_list.append(phys.nHe * rs**3)
summand = 0
for species,mu,n in zip(species_list, mu_list, n_list):
summand += mu * n / m_m * integ.I_cap_V(
m_m, Q, T_m, T_b, V_bm, xe, rs, species
)
if V_bm == 0:
term_1 = 0
else:
term_1 = -(1 + rho_m_0/phys.rho_baryon) * summand / V_bm
if Q_d != 0 and V_mC != 0:
term_2 = mu_mC * n_C / m_m * integ.I_cap_V_DM(
f, alpha, beta, m_m, Q_d, T_m, T_C, V_mC, rs
) / V_mC
else:
term_2 = 0
# Multiply by c to convert from cm^-1 to s^-1
return (term_1 + term_2) * phys.c
def D_mC(
m_m, m_C, Q, Q_d,
Delta_CMB_b, Delta_b_m, Delta_m_C,
V_bm, V_mC, xe, rs, neutral_H, neutral_He,
f
):
# d|V_mC|/dt
alpha = 1. - f
beta = m_m/m_C
T_b = phys.TCMB(rs) - Delta_CMB_b
T_m = T_b - Delta_b_m
T_C = T_m - Delta_m_C
mu_mC = m_m * m_C/(m_m + m_C)
n_C = (1.-f) * phys.rho_DM * rs**3 / m_C
rho_C = (1.-f) * phys.rho_DM * rs**3
rho_m = f * phys.rho_DM * rs**3
species_list = ['e', 'p']
mu_list = [
m_m * phys.me / (m_m + phys.me),
m_m * phys.mp / (m_m + phys.mp)
]
n_list = [
xe * phys.nH * rs**3,
xe * phys.nH * rs**3
]
if neutral_H:
species_list.append('H')
mu_list.append(m_m * phys.mp/(m_m + phys.mp))
n_list.append((1-xe) * phys.nH * rs**3)
if neutral_He:
species_list.append('He')
mu_list.append(m_m * phys.mHe/(m_m + phys.mHe))
n_list.append(phys.nHe * rs**3)
summand = 0
for species, mu, n in zip(species_list, mu_list, n_list):
summand += mu * n / m_m * integ.I_cap_V(
m_m, Q, T_m, T_b, V_bm, xe, rs, species
)
if V_bm == 0:
term_1 = 0.
else:
term_1 = summand/V_bm
if Q_d == 0 or V_mC == 0:
term_2 = 0.
else:
term_2 = -(1 + rho_m/rho_C) * mu_mC * n_C / m_m * (
integ.I_cap_V_DM(
f, alpha, beta, m_m, Q_d, T_m, T_C, V_mC, rs
) / V_mC
)
return (term_1 + term_2) * phys.c
def Q_i_dot(
m_m, m_C, Q, Q_d,
Delta_CMB_b, Delta_b_m, Delta_m_C,
V_bm, V_mC, xe, rs, species, neutral_H, neutral_He,
f
):
if species == 'e':
m_i = phys.me
elif species == 'p':
m_i = phys.mp
elif species == 'H':
m_i = phys.mp
elif species == 'He':
m_i = phys.mHe
else:
raise TypeError('invalid species.')
T_b = phys.TCMB(rs) - Delta_CMB_b
T_m = T_b - Delta_b_m
T_C = T_m - Delta_m_C
mu_i = (m_m * m_i) / (m_m + m_i)
u_m = np.sqrt(T_m / m_m)
u_i = np.sqrt(T_b / m_i)
term_1_prefac = Delta_b_m / ((u_m**2 + u_i**2) * m_i * m_m)
term_1 = term_1_prefac * integ.I_V_minus_I_v(
m_m, Q, T_m, T_b, V_bm, xe, rs, species
)
term_2 = (1/m_i) * integ.I_cap_V(
m_m, Q, T_m, T_b, V_bm, xe, rs, species
)
n_m = (f * phys.rho_DM * rs ** 3)/m_m
return n_m * mu_i ** 2 * (term_1 + term_2) * phys.c
def n_Q_i_dot_sum(
m_m, m_C, Q, Q_d,
Delta_CMB_b, Delta_b_m, Delta_m_C,
V_bm, V_mC, xe, rs, neutral_H, neutral_He,
f, neutrals_only=False
):
n_list = [
xe*phys.nH*rs**3,
xe*phys.nH*rs**3,
(1-xe)*phys.nH*rs**3,
phys.nHe*rs**3
]
if not neutrals_only:
sum_e_p = (
n_list[0] * Q_i_dot(
m_m, m_C, Q, Q_d,
Delta_CMB_b, Delta_b_m, Delta_m_C,
V_bm, V_mC, xe, rs, 'e', neutral_H, neutral_He,
f
)
+ n_list[1] * Q_i_dot(
m_m, m_C, Q, Q_d,
Delta_CMB_b, Delta_b_m, Delta_m_C,
V_bm, V_mC, xe, rs, 'p', neutral_H, neutral_He,
f
)
)
else:
sum_e_p = 0.
sum_to_return = sum_e_p
if neutral_H:
sum_to_return += n_list[2] * Q_i_dot(
m_m, m_C, Q, Q_d,
Delta_CMB_b, Delta_b_m, Delta_m_C,
V_bm, V_mC, xe, rs, 'H', neutral_H, neutral_He,
f
)
if neutral_He:
sum_to_return += n_list[3] * Q_i_dot(
m_m, m_C, Q, Q_d,
Delta_CMB_b, Delta_b_m, Delta_m_C,
V_bm, V_mC, xe, rs, 'He', neutral_H, neutral_He,
f
)
return sum_to_return
def Q_C_dot(
m_m, m_C, Q, Q_d,
Delta_CMB_b, Delta_b_m, Delta_m_C,
V_bm, V_mC, xe, rs, neutral_H, neutral_He,
f
):
alpha = 1. - f
beta = m_m/m_C
if Q_d == 0:
return 0.
T_b = phys.TCMB(rs) - Delta_CMB_b
T_m = T_b - Delta_b_m
T_C = T_m - Delta_m_C
mu_mC = (m_m * m_C) / (m_m + m_C)
u_m = np.sqrt(T_m / m_m)
u_C = np.sqrt(T_C / m_C)
term_1_prefac = Delta_m_C / ((u_m ** 2 + u_C ** 2) * m_C * m_m)
term_1 = -term_1_prefac * integ.I_V_minus_I_v_DM(
f, alpha, beta, m_m, Q_d, T_m, T_C, V_mC, rs
)
term_2 = (1 / m_C) * integ.I_cap_V_DM(
f, alpha, beta, m_m, Q_d, T_m, T_C, V_mC, rs
)
n_m = (f * phys.rho_DM * rs ** 3)/m_m
return n_m * mu_mC ** 2 * (term_1 + term_2) * phys.c
def Q_m_dot(
m_m, m_C, Q, Q_d,
Delta_CMB_b, Delta_b_m, Delta_m_C,
V_bm, V_mC, xe, rs, neutral_H, neutral_He,
f, neutrals_only=False
):
alpha = 1. - f
beta = m_m/m_C
rho_m = f * phys.rho_DM * rs ** 3
n_m = rho_m / m_m
mu_mC = (m_m * m_C) / (m_m + m_C)
rho_C = (1-f) * phys.rho_DM * rs ** 3
n_C = rho_C / m_C
T_b = phys.TCMB(rs) - Delta_CMB_b
T_m = T_b - Delta_b_m
T_C = T_m - Delta_m_C
species_list = ['e', 'p']
mu_list = [
m_m * phys.me / (m_m + phys.me),
m_m * phys.mp / (m_m + phys.mp)
]
n_list = [
xe * phys.nH * rs**3,
xe * phys.nH * rs**3
]
if neutral_H:
species_list.append('H')
mu_list.append(m_m * phys.mp/(m_m + phys.mp))
n_list.append((1-xe) * phys.nH * rs**3)
if neutral_He:
species_list.append('He')
mu_list.append(m_m * phys.mHe/(m_m + phys.mHe))
n_list.append(phys.nHe * rs**3)
summand = 0
for species, mu, n in zip(species_list, mu_list, n_list):
if neutrals_only:
if not neutral_H and not neutral_He:
raise ValueError('neutral_H or neutral_He must be specified to use neutrals_only')
if species != 'e' and species != 'p':
summand += mu * n * integ.I_cap_V(
m_m, Q, T_m, T_b, V_bm, xe, rs, species
)
else:
summand += mu * n * integ.I_cap_V(
m_m, Q, T_m, T_b, V_bm, xe, rs, species
)
# summand is in eV/cm
term_1 = summand * phys.c
if Q_d != 0:
term_2 = n_C * mu_mC * integ.I_cap_V_DM(
f, alpha, beta, m_m, Q_d, T_m, T_C, V_mC, rs
) * phys.c
else:
term_2 = 0.
term_3 = - n_Q_i_dot_sum(
m_m, m_C, Q, Q_d,
Delta_CMB_b, Delta_b_m, Delta_m_C,
V_bm, V_mC, xe, rs, neutral_H, neutral_He,
f, neutrals_only=neutrals_only
) / n_m
if Q_d != 0:
# Q_C_dot doesn't actually depend on neutral_H and neutral_He.
term_4 = -n_C * Q_C_dot(
m_m, m_C, Q, Q_d,
Delta_CMB_b, Delta_b_m, Delta_m_C,
V_bm, V_mC, xe, rs, neutral_H, neutral_He,
f
) / n_m
else:
term_4 = 0.
return term_1 + term_2 + term_3 + term_4
#####################################################
#
# Actual set of ODEs to integrate.
#
#####################################################
def compton_cooling_rate(xe, Delta_CMB_b, rs):
return (
xe / (1 + xe + phys.chi) * Delta_CMB_b
* 32 * phys.thomson_xsec * phys.stefboltz
* phys.TCMB(rs)**4 / (3 * phys.me)
)
def time_fac(rs):
# returns H(z) (1+z).
return phys.hubble(rs)*rs
def DM_baryon_ODE(
rs, var, m_m, m_C, Q, Q_d, neutral_H, neutral_He, f, log_T_C,
zero_V_rel=False, neutrals_only=False
):
def dDelta_CMB_b_dz(
rs, Delta_CMB_b, Delta_b_m, T_C_var,
log_V_bm, log_V_mC, xe
):
T_b = phys.TCMB(rs) - Delta_CMB_b
T_m = T_b - Delta_b_m
if not log_T_C:
Delta_m_C = np.exp(T_C_var)
T_C = T_m - Delta_m_C
else:
T_C = np.exp(T_C_var)
Delta_m_C = T_m - T_C
V_bm = np.exp(log_V_bm)
V_mC = np.exp(log_V_mC)
rate = (
phys.TCMB(1) - (
2 * T_b / rs
- (2/3)*(
n_Q_i_dot_sum(
m_m, m_C, Q, Q_d,
Delta_CMB_b, Delta_b_m, Delta_m_C,
V_bm, V_mC, xe, rs, neutral_H, neutral_He,
f, neutrals_only=neutrals_only
)
/time_fac(rs)/(phys.nH*rs**3)/(1 + xe + phys.chi)
)
- compton_cooling_rate(xe, Delta_CMB_b, rs)/time_fac(rs)
)
)
# if Delta_CMB_b < 1e-7 and rate > 0:
# return 0
# else:
return rate
def dDelta_b_m_dz(
rs, Delta_CMB_b, Delta_b_m, T_C_var,
log_V_bm, log_V_mC, xe
):
T_b = phys.TCMB(rs) - Delta_CMB_b
T_m = T_b - Delta_b_m
if not log_T_C:
Delta_m_C = np.exp(T_C_var)
T_C = T_m - Delta_m_C
else:
T_C = np.exp(T_C_var)
Delta_m_C = T_m - T_C
V_bm = np.exp(log_V_bm)
V_mC = np.exp(log_V_mC)
rate = (
2 * Delta_b_m / rs
- (2/3) * (
n_Q_i_dot_sum(
m_m, m_C, Q, Q_d,
Delta_CMB_b, Delta_b_m, Delta_m_C,
V_bm, V_mC, xe, rs, neutral_H, neutral_He,
f, neutrals_only=neutrals_only
)
/time_fac(rs)/(phys.nH*rs**3)/(1 + xe + phys.chi)
)
- compton_cooling_rate(xe, Delta_CMB_b, rs)/time_fac(rs)
+ (2/3) * Q_m_dot(
m_m, m_C, Q, Q_d,
Delta_CMB_b, Delta_b_m, Delta_m_C,
V_bm, V_mC, xe, rs, neutral_H, neutral_He,
f, neutrals_only=neutrals_only
) / time_fac(rs)
)
# if Delta_b_m < 1e-7 and rate > 0:
# return 0
# else:
return rate
def dlog_Delta_m_C_dz(
rs, Delta_CMB_b, Delta_b_m, T_C_var,
log_V_bm, log_V_mC, xe
):
T_b = phys.TCMB(rs) - Delta_CMB_b
T_m = T_b - Delta_b_m
if not log_T_C:
Delta_m_C = np.exp(T_C_var)
T_C = T_m - Delta_m_C
else:
T_C = np.exp(T_C_var)
Delta_m_C = T_m - T_C
V_bm = np.exp(log_V_bm)
V_mC = np.exp(log_V_mC)
rate = (
2 * Delta_m_C / rs
- (2/3) * Q_m_dot(
m_m, m_C, Q, Q_d,
Delta_CMB_b, Delta_b_m, Delta_m_C,
V_bm, V_mC, xe, rs, neutral_H, neutral_He,
f, neutrals_only=neutrals_only
) / time_fac(rs)
+ (2/3) * Q_C_dot(
m_m, m_C, Q, Q_d,
Delta_CMB_b, Delta_b_m, Delta_m_C,
V_bm, V_mC, xe, rs, neutral_H, neutral_He,
f
) / time_fac(rs)
) / Delta_m_C
if Delta_m_C < 1e-7 and rate > 0:
return 0
else:
return rate
def dlog_T_C_dz(
rs, Delta_CMB_b, Delta_b_m, T_C_var,
log_V_bm, log_V_mC, xe
):
T_b = phys.TCMB(rs) - Delta_CMB_b
T_m = T_b - Delta_b_m
if not log_T_C:
Delta_m_C = np.exp(T_C_var)
T_C = T_m - Delta_m_C
else:
T_C = np.exp(T_C_var)
Delta_m_C = T_m - T_C
V_bm = np.exp(log_V_bm)
V_mC = np.exp(log_V_mC)
rate = 2 / rs - (2/3) * Q_C_dot(
m_m, m_C, Q, Q_d,
Delta_CMB_b, Delta_b_m, Delta_m_C,
V_bm, V_mC, xe, rs, neutral_H, neutral_He,
f
) / time_fac(rs) / T_C
return rate
def dlog_V_bm_dz(
rs, Delta_CMB_b, Delta_b_m, T_C_var,
log_V_bm, log_V_mC, xe
):
T_b = phys.TCMB(rs) - Delta_CMB_b
T_m = T_b - Delta_b_m
if not log_T_C:
Delta_m_C = np.exp(T_C_var)
T_C = T_m - Delta_m_C
else:
T_C = np.exp(T_C_var)
Delta_m_C = T_m - T_C
V_bm = np.exp(log_V_bm)
V_mC = np.exp(log_V_mC)
rate = 1./rs - D_bm(
m_m, m_C, Q, Q_d,
Delta_CMB_b, Delta_b_m, Delta_m_C,
V_bm, V_mC, xe, rs, neutral_H, neutral_He,
f
) / V_bm / time_fac(rs)
if (V_bm < 1e-15 and rate > 0) or zero_V_rel or rs > 1010:
return 0
else:
return rate
def dlog_V_mC_dz(
rs, Delta_CMB_b, Delta_b_m, T_C_var,
log_V_bm, log_V_mC, xe
):
T_b = phys.TCMB(rs) - Delta_CMB_b
T_m = T_b - Delta_b_m
if not log_T_C:
Delta_m_C = np.exp(T_C_var)
T_C = T_m - Delta_m_C
else:
T_C = np.exp(T_C_var)
Delta_m_C = T_m - T_C
V_bm = np.exp(log_V_bm)
V_mC = np.exp(log_V_mC)
rate = 1./rs - D_mC(
m_m, m_C, Q, Q_d,
Delta_CMB_b, Delta_b_m, Delta_m_C,
V_bm, V_mC, xe, rs, neutral_H, neutral_He,
f
) / V_mC / time_fac(rs)
if (V_mC < 1e-15 and rate > 0) or zero_V_rel or rs > 1010:
return 0
else:
return rate
def dxe_dz(
rs, Delta_CMB_b, Delta_b_m, T_C_var,
log_V_bm, log_V_mC, xe
):
T_b = phys.TCMB(rs) - Delta_CMB_b
T_m = T_b - Delta_b_m
if not log_T_C:
Delta_m_C = np.exp(T_C_var)
T_C = T_m - Delta_m_C
else:
T_C = np.exp(T_C_var)
Delta_m_C = T_m - T_C
if xe > 0.99:
# Use the Saha solution here.
def RHS(rs):
de_broglie_wavelength = (
phys.c * 2*np.pi*phys.hbar
/ np.sqrt(2 * np.pi * phys.me * phys.TCMB(rs))
)
return (
(1/de_broglie_wavelength**3) / (phys.nH*rs**3)
* np.exp(-phys.rydberg/phys.TCMB(rs))
)
return (
xe**2/(2*xe + RHS(rs)) *(1/rs)
* (phys.rydberg/phys.TCMB(rs) - 3/2)
)
else:
T_r = phys.TCMB(rs)
C = phys.peebles_C(xe, rs)
alpha = phys.alpha_recomb(T_b)
beta = phys.beta_ion(T_r)
return C*(
alpha*xe**2*phys.nH*rs**3
- 4*beta*(1-xe)*np.exp(-phys.lya_eng/T_r)
)/time_fac(rs)
Delta_CMB_b, Delta_b_m, T_C_var, log_V_bm, log_V_mC, xe = (
var[0], var[1], var[2], var[3], var[4], var[5]
)
# print(
# rs,
# Delta_CMB_b,
# Delta_b_m,
# T_C_var,
# log_V_bm,
# log_V_mC,
# xe
# )
# print(dlog_V_bm_dz(
# rs, Delta_CMB_b, Delta_b_m, T_C_var,
# log_V_bm, log_V_mC, xe
# ))
# print([
# dDelta_CMB_b_dz(
# rs, Delta_CMB_b, Delta_b_m, T_C_var,
# log_V_bm, log_V_mC, xe
# ),
# dDelta_b_m_dz(
# rs, Delta_CMB_b, Delta_b_m, T_C_var,
# log_V_bm, log_V_mC, xe
# ),
# dlog_T_C_dz(
# rs, Delta_CMB_b, Delta_b_m, T_C_var,
# log_V_bm, log_V_mC, xe
# ),
# dlog_V_bm_dz(
# rs, Delta_CMB_b, Delta_b_m, T_C_var,
# log_V_bm, log_V_mC, xe
# ),
# dlog_V_mC_dz(
# rs, Delta_CMB_b, Delta_b_m, T_C_var,
# log_V_bm, log_V_mC, xe
# ),
# dxe_dz(
# rs, Delta_CMB_b, Delta_b_m, T_C_var,
# log_V_bm, log_V_mC, xe
# )
# ] )
if not log_T_C:
return [
dDelta_CMB_b_dz(
rs, Delta_CMB_b, Delta_b_m, T_C_var,
log_V_bm, log_V_mC, xe
),
dDelta_b_m_dz(
rs, Delta_CMB_b, Delta_b_m, T_C_var,
log_V_bm, log_V_mC, xe
),
dlog_Delta_m_C_dz(
rs, Delta_CMB_b, Delta_b_m, T_C_var,
log_V_bm, log_V_mC, xe
),
dlog_V_bm_dz(
rs, Delta_CMB_b, Delta_b_m, T_C_var,
log_V_bm, log_V_mC, xe
),
dlog_V_mC_dz(
rs, Delta_CMB_b, Delta_b_m, T_C_var,
log_V_bm, log_V_mC, xe
),
dxe_dz(
rs, Delta_CMB_b, Delta_b_m, T_C_var,
log_V_bm, log_V_mC, xe
)
]
else:
return [
dDelta_CMB_b_dz(
rs, Delta_CMB_b, Delta_b_m, T_C_var,
log_V_bm, log_V_mC, xe
),
dDelta_b_m_dz(
rs, Delta_CMB_b, Delta_b_m, T_C_var,
log_V_bm, log_V_mC, xe
),
dlog_T_C_dz(
rs, Delta_CMB_b, Delta_b_m, T_C_var,
log_V_bm, log_V_mC, xe
),
dlog_V_bm_dz(
rs, Delta_CMB_b, Delta_b_m, T_C_var,
log_V_bm, log_V_mC, xe
),
dlog_V_mC_dz(
rs, Delta_CMB_b, Delta_b_m, T_C_var,
log_V_bm, log_V_mC, xe
),
dxe_dz(
rs, Delta_CMB_b, Delta_b_m, T_C_var,
log_V_bm, log_V_mC, xe
)
]