-
Notifications
You must be signed in to change notification settings - Fork 0
/
Untitled-1.nb
3424 lines (3333 loc) · 165 KB
/
Untitled-1.nb
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
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
(* Content-type: application/vnd.wolfram.mathematica *)
(*** Wolfram Notebook File ***)
(* http://www.wolfram.com/nb *)
(* CreatedBy='Mathematica 10.2' *)
(*CacheID: 234*)
(* Internal cache information:
NotebookFileLineBreakTest
NotebookFileLineBreakTest
NotebookDataPosition[ 158, 7]
NotebookDataLength[ 169234, 3415]
NotebookOptionsPosition[ 161763, 3242]
NotebookOutlinePosition[ 167556, 3365]
CellTagsIndexPosition[ 166954, 3352]
WindowFrame->Normal*)
(* Beginning of Notebook Content *)
Notebook[{
Cell[BoxData[{
RowBox[{
RowBox[{"SetDirectory", "[",
RowBox[{"NotebookDirectory", "[", "]"}], "]"}],
";"}], "\[IndentingNewLine]",
RowBox[{"<<", "CRNSimulator.m"}]}], "Input",
CellChangeTimes->{{3.6704636763683853`*^9, 3.6704637007355127`*^9},
3.670463730974944*^9, {3.6704638111073647`*^9, 3.6704638336662703`*^9},
3.670464504700181*^9, {3.670464730394807*^9, 3.670464758099618*^9}}],
Cell[CellGroupData[{
Cell[BoxData[
RowBox[{"?", "SimulateRxnsys"}]], "Input",
CellChangeTimes->{{3.670463853850295*^9, 3.6704638557680407`*^9}}],
Cell[BoxData[
StyleBox["\<\"SimulateRxnsys[rxnsys,endtime] simulates the reaction system \
rxnsys for time 0 to endtime. In rxnsys, initial concentrations are specified \
by conc statements. If no initial condition is set for a species, its initial \
concentration is set to 0. Rxnsys can include term[] statements (eg. term[x, \
-2 x[t]]) which are additively combined together with term[]s derived from \
rxn[] statements. Rxnsys can also include ODEs directly for some species (Eg \
x'[t]==...) that are passed on to NDSolve without modification.\\nAny options \
specified (eg WorkingPrecision->30) are passed to NDSolve.\"\>",
"MSG"]], "Print", "PrintUsage",
CellChangeTimes->{3.670464761763953*^9},
CellTags->"Info-c964042d-cd6c-4b25-8ea5-097a251a88b6"]
}, Open ]],
Cell[CellGroupData[{
Cell[BoxData[
RowBox[{"?", "rxn"}]], "Input",
CellChangeTimes->{{3.670474278475142*^9, 3.670474310997987*^9}}],
Cell[BoxData[
StyleBox["\<\"Represents an irreversible reaction. eg. rxn[a+b,c,1]\"\>",
"MSG"]], "Print", "PrintUsage",
CellChangeTimes->{3.670474311254661*^9},
CellTags->"Info-564be242-373a-457a-8e19-e6403be1b06c"]
}, Open ]],
Cell[CellGroupData[{
Cell[BoxData[{
RowBox[{
RowBox[{"sys", "=",
RowBox[{"{", "\[IndentingNewLine]",
RowBox[{
RowBox[{"rxn", "[",
RowBox[{
RowBox[{"a", "+", "b"}], ",", "c", ",", "0.05"}], "]"}], ",",
"\[IndentingNewLine]",
RowBox[{"conc", "[",
RowBox[{
RowBox[{"{",
RowBox[{"a", ",", "b"}], "}"}], ",", "5"}], "]"}]}],
"\[IndentingNewLine]", "}"}]}], ";"}], "\[IndentingNewLine]",
RowBox[{
RowBox[{"tmax", "=", "45"}], ";"}], "\[IndentingNewLine]",
RowBox[{
RowBox[{"sol", "=",
RowBox[{"SimulateRxnsys", "[",
RowBox[{"sys", ",", "tmax"}], "]"}]}], ";"}], "\[IndentingNewLine]",
RowBox[{
RowBox[{"plotter", "=",
RowBox[{
RowBox[{"{",
RowBox[{
RowBox[{"a", "[", "t", "]"}], ",",
RowBox[{"c", "[", "t", "]"}]}], "}"}], "/.", "sol"}]}],
";"}], "\[IndentingNewLine]",
RowBox[{"Plot", "[",
RowBox[{"plotter", ",",
RowBox[{"{",
RowBox[{"t", ",", "0", ",", "tmax"}], "}"}], ",",
RowBox[{"PlotRange", "\[Rule]", "All"}], ",",
RowBox[{"PlotStyle", "\[Rule]",
RowBox[{"{",
RowBox[{
RowBox[{"{", "Red", "}"}], ",",
RowBox[{"{", "Green", "}"}], ",",
RowBox[{"{", "Blue", "}"}]}], "}"}]}]}],
"]"}], "\[IndentingNewLine]", "sol"}], "Input",
CellChangeTimes->{{3.670474318148822*^9, 3.670474407530284*^9}, {
3.670474516500413*^9, 3.670474564711862*^9}, {3.670474615947486*^9,
3.670474647537435*^9}, {3.670475239648655*^9, 3.670475271799766*^9}, {
3.670476484459538*^9, 3.670476486637095*^9}}],
Cell[BoxData[
GraphicsBox[{{}, {},
{RGBColor[1, 0, 0], AbsoluteThickness[1.6], Opacity[1.],
LineBox[CompressedData["
1:eJwVz3k81IkbwPExzDAxYcbRMfwcg0oMEtb1PAxfRyoRObZimhLJEVvjyFVU
2+Wo1IZs0Ua1jlIiOVfIIlvtNo7IkVzpcOSa3d8fn9f77486L9RtP5lEIp39
r/8b3qav87jjd2sH05lSkYiJ34acNHh258DQi9nBn2TilcyuBLZdFpBY/I6R
biYGhLGLKXb3IBR+N3WpYGJHd5PDDPcpqDMSpQRHmSjBvJ4xyW2Fhqz3nhrf
GKiqf/LJKLcbinaPBH4gM/Dg1fgpmnYPVFG3LuR8k8dScozOeqleSDq7Qf3w
sDza/x1+OaD1HazpzPNyaZFHk5oisyOF/fDCr7ZeLkMedwdmK3wyGoKzPmnK
Kevk8W6loHWEOw4OFn/2DvrLYdzO3YvRz8ZB+1O9m6KHHLpO2Gyk/zABnV99
a70d5XBGVfqcof4kvBbd7VDhyKFabZuWlcwU0IINItYuyOIhtv9Q8sxnSDO/
Kt5mIYuksWS+8otp2Cpbl975ho6BpoJYP6kZiI/UWJlWS8fOE0GXCuxnIOLt
0arD9+iYz9reYFEzAz6mKSUJSXR03raK7Vc2Cx9SpFlUAzpeLikcuHPjO3wO
cYzxSZXBDYJ2nnnkEhx3aY7J50ujWrlxS8T9JdjjbP/0o7s0Ks5dM7w/vARi
7XY8W640kgR8kpr3MoznadkZaEjj62PfsynWIrDYZew537cCayrTgkdOkDCT
5le4nrcCgyorf3uwlYyGGQ1JK4/QcL9viK9rEBmDZ4YuZe+jod+CmuxEChnf
Zj4Ws/KgoYdFylHtGjKGTYzE3zOjIVa62l8zEkeBy2eVLSQaKlYOvY9TlsBm
pvep0HQprKmQVXXup+DrdcZX7tRKotklQnPXEgVnJ3L/dC2TxOLDx9fxV1PR
prq9k1IgiTfUxozidlBx6U7G9OVUSYxLaXQoraX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bHuhsc/LBKFSXYEdxRjvaKqOZgw5qSgM2K
APfAoNWvTRy83Dy1gZENOH9WUfF6xUF8oPVIziSQX7lG7PuRAxnHtJb2KBeE
pMbYZY9x4Ewz5xWJXFBs8NiCK+HgzK1av1W+rlBOfBwczqKQv/LhTGKbKxb+
plYjp07h5J3mofA1PNwx2FTx1YDCRZVHKTbVPJDljC13F1AI8tYuzLJ1g+5X
p4LX1hSWJgcE3b/qhp3zJNnDjhSms66H3tJ0R5NGQ94+NwoJe0J/GOe64/uZ
Zw3bPSkwvGeXpcrwkWhFOx/rS0HxAMszkcGHhbG48rTU6nc5ETuZfHRlmrZU
Sj1f2/R0GJsPgaLV8LTUHj2rRzw4fLhSCz9l+0nvOu70VV0jPnxTX9df9Keg
l8fVegg+sns6nZsCKXCfWlrec+WjTe3Y1QGpLb/Zu5e78aE/domltJECCfRI
KF7Nh4s5rWa91GFGsa0nvKX5IRXv30h9vfx+dnAIH2lRxnpDQRTuiOouBoTx
sUC5fpGy9O9Uazyv9Ing411Kj42V1C9SukX8bXz0W5xalij1mAsdS+L4YDwc
EE9LPZmg4L9wl7SfV06n/mYK9KvqO00S+dCpKq0iUqvJmxVpJfMhOnki5KDU
eiutKjip0vynay2KpTbdubxZYS8fW/3OjTdIbXHJtZeZzkdwyfaqfqntOtZO
zGbwUazbtks+mML/AGOuwc0=
"]]}},
AspectRatio->NCache[GoldenRatio^(-1), 0.6180339887498948],
Axes->{True, True},
AxesLabel->{None, None},
AxesOrigin->{0, 0},
DisplayFunction->Identity,
Frame->{{False, False}, {False, False}},
FrameLabel->{{None, None}, {None, None}},
FrameTicks->{{Automatic, Automatic}, {Automatic, Automatic}},
GridLines->{None, None},
GridLinesStyle->Directive[
GrayLevel[0.5, 0.4]],
Method->{
"DefaultBoundaryStyle" -> Automatic, "DefaultMeshStyle" ->
AbsolutePointSize[6], "ScalingFunctions" -> None},
PlotRange->{All, All},
PlotRangeClipping->True,
PlotRangePadding->{{
Scaled[0.02],
Scaled[0.02]}, {
Scaled[0.05],
Scaled[0.05]}},
Ticks->{Automatic, Automatic}]], "Output",
CellChangeTimes->{{3.67047452295394*^9, 3.670474565813692*^9}, {
3.670474616565473*^9, 3.670474647767619*^9}, {3.6704752435082893`*^9,
3.670475272409051*^9}, 3.6704764868644247`*^9}],
Cell[BoxData[
RowBox[{"{",
RowBox[{
RowBox[{"a", "\[Rule]",
TagBox[
TemplateBox[{RowBox[{
StyleBox[
TagBox["InterpolatingFunction", "SummaryHead"],
"NonInterpretableSummary"],
StyleBox["[", "NonInterpretableSummary"],
DynamicModuleBox[{Typeset`open$$ = False},
PanelBox[
PaneSelectorBox[{False -> GridBox[{{
PaneBox[
ButtonBox[
DynamicBox[
FEPrivate`FrontEndResource[
"FEBitmaps", "SquarePlusIconMedium"]],
ButtonFunction :> (Typeset`open$$ = True), Appearance ->
None, Evaluator -> Automatic, Method -> "Preemptive"],
Alignment -> {Center, Center}, ImageSize ->
Dynamic[{
Automatic, 3.5 CurrentValue["FontCapHeight"]/
AbsoluteCurrentValue[Magnification]}]],
GraphicsBox[{{{}, {}, {
Directive[
Opacity[1.],
RGBColor[0.368417, 0.506779, 0.709798],
AbsoluteThickness[1]],
LineBox[CompressedData["
1:eJwBsQNO/CFib1JlAgAAADoAAAACAAAAFHUPtZee+j+5XcFDF1EMQNkSah/r
KwJADLmYzTCDCUC9emCd5P4HQMv9oWPh2wZAlHTSIT1QDkBMBQC5k4oEQORJ
nknTGhJANS5BhwTEAkB3IpGFt0wVQPyI3guIKAFA0Z9APLFvGEA5Lh0anKf/
P9kvbGmzXBtA8+WhvdOE/T/biNUZ5YgeQKFFRqSegfs/RXpdoI+/IEDr/+qg
Qdz5P4GCLnE3MyJAE6/ZWmtt+D86b54Dd8YjQDYBH4zGCvc/SmVM0bo+JUAv
yi1SUeL1P9Y/mWCW1iZAjc5Pp+LA9D/GbESt/GYoQMM2/JduwPM/DaMtNWfc
KUAhzXWjnObyP9G9tX5pcStAHFHljqEO8j/s4XsDcOssQCvfms69VfE/g+rg
SQ6FLkAFUjTvZp3wP78i0qabCzBA3Cdr7nft7z/o1FJGMscwQNT60X04ze4/
T/mixpSSMUB1V4dE06rtP2EikmR5UDJArQpsC1yu7D+ldDBhowozQEdj3Yeh
xus/KDmePpnUM0Bqu5O3O9vqP1YCqzkRkTRAuffb2TIN6j/CPYcVVV01QKCg
ZKRmO+k/YKISUN4lNkAUd0qP43noP6oLPajp4DZAEf1wF5DP5z8y5zbhwKs3
QNZkvtEEIec/ZsfPNxppOEByuYrU3obmP8vQF+24IjlAJpXztVr35T9vTC+D
I+w5QC/MAkV+Y+U/vszlNhCoOkB9VcFtYeDkP0y/a8vIcztAs7k3HSlZ5D+F
tpB9AzI8QNcMEFTu4OM/8NZkjoPsPEB4lSaKU3DjP5lpCIDPtj1AqqIhzq/7
4j/uAEuPnXM+QFeZzWink+I/gQpdfzdAP0DyZonC1CfiP6MeD2eLBEBA7lEB
e6DC4T9cOj8dPGJAQLVIwi4daOE/NA/Xw9LHQEAUa9j59AnhP2JmPnmqJkFA
n0zzH5O14D8pUv3dpINBQCfRtP/1ZeA/D/cjM4XoQUBPDOe/3hLgP0seGpem
RkJA5/WIRH+Q3z+m/nfrraxCQDFv4wW69N4/mnMt79cQQ0AuYpNyiWHeP+Nq
sgFDbkNAfk4Ycxrd3T9MG58ElNNDQE9jBY56Ut0/Ck5bFiYyREBX2qpsi9Xc
P+c5fxiemERASLa/2slS3D9duvrJOP1EQCsL4g/X1ts/Kb1FihRbRUBe0sUS
92bbPxR5+DrWwEVAEx7hpZPx2j9Vt3r62B9GQP5/QnZ2h9o/uBaa+f9/RkDO
3pnRWB/aP/sHuKk=
"]]}}}, {
DisplayFunction -> Identity, AspectRatio -> 1,
Axes -> {False, False}, AxesLabel -> {None, None},
AxesOrigin -> {0, 0.1}, DisplayFunction :> Identity,
Frame -> {{True, True}, {True, True}},
FrameLabel -> {{None, None}, {None, None}}, FrameStyle ->
Directive[
Opacity[0.5],
Thickness[Tiny],
RGBColor[0.368417, 0.506779, 0.709798]],
FrameTicks -> {{None, None}, {None, None}},
GridLines -> {None, None}, GridLinesStyle -> Directive[
GrayLevel[0.5, 0.4]], ImageSize ->
Dynamic[{
Automatic, 3.5 CurrentValue["FontCapHeight"]/
AbsoluteCurrentValue[Magnification]}],
Method -> {
"DefaultBoundaryStyle" -> Automatic, "DefaultMeshStyle" ->
AbsolutePointSize[6], "ScalingFunctions" -> None},
PlotRange -> {{0., 45.}, {0.40816326588490603`,
3.539595155085149}}, PlotRangeClipping -> True,
PlotRangePadding -> {{
Scaled[0.1],
Scaled[0.1]}, {
Scaled[0.1],
Scaled[0.1]}}, Ticks -> {Automatic, Automatic}}],
GridBox[{{
RowBox[{
TagBox["\"Domain: \"", "SummaryItemAnnotation"],
"\[InvisibleSpace]",
TagBox[
RowBox[{"{",
RowBox[{"{",
RowBox[{"0.`", ",", "45.`"}], "}"}], "}"}],
"SummaryItem"]}]}, {
RowBox[{
TagBox["\"Output: \"", "SummaryItemAnnotation"],
"\[InvisibleSpace]",
TagBox["\"scalar\"", "SummaryItem"]}]}},
GridBoxAlignment -> {
"Columns" -> {{Left}}, "Rows" -> {{Automatic}}},
AutoDelete -> False,
GridBoxItemSize -> {
"Columns" -> {{Automatic}}, "Rows" -> {{Automatic}}},
GridBoxSpacings -> {
"Columns" -> {{2}}, "Rows" -> {{Automatic}}},
BaseStyle -> {
ShowStringCharacters -> False, NumberMarks -> False,
PrintPrecision -> 3, ShowSyntaxStyles -> False}]}},
GridBoxAlignment -> {"Rows" -> {{Top}}}, AutoDelete -> False,
GridBoxItemSize -> {
"Columns" -> {{Automatic}}, "Rows" -> {{Automatic}}},
BaselinePosition -> {1, 1}], True -> GridBox[{{
PaneBox[
ButtonBox[
DynamicBox[
FEPrivate`FrontEndResource[
"FEBitmaps", "SquareMinusIconMedium"]],
ButtonFunction :> (Typeset`open$$ = False), Appearance ->
None, Evaluator -> Automatic, Method -> "Preemptive"],
Alignment -> {Center, Center}, ImageSize ->
Dynamic[{
Automatic, 3.5 CurrentValue["FontCapHeight"]/
AbsoluteCurrentValue[Magnification]}]],
GraphicsBox[{{{}, {}, {
Directive[
Opacity[1.],
RGBColor[0.368417, 0.506779, 0.709798],
AbsoluteThickness[1]],
LineBox[CompressedData["
1:eJwBsQNO/CFib1JlAgAAADoAAAACAAAAFHUPtZee+j+5XcFDF1EMQNkSah/r
KwJADLmYzTCDCUC9emCd5P4HQMv9oWPh2wZAlHTSIT1QDkBMBQC5k4oEQORJ
nknTGhJANS5BhwTEAkB3IpGFt0wVQPyI3guIKAFA0Z9APLFvGEA5Lh0anKf/
P9kvbGmzXBtA8+WhvdOE/T/biNUZ5YgeQKFFRqSegfs/RXpdoI+/IEDr/+qg
Qdz5P4GCLnE3MyJAE6/ZWmtt+D86b54Dd8YjQDYBH4zGCvc/SmVM0bo+JUAv
yi1SUeL1P9Y/mWCW1iZAjc5Pp+LA9D/GbESt/GYoQMM2/JduwPM/DaMtNWfc
KUAhzXWjnObyP9G9tX5pcStAHFHljqEO8j/s4XsDcOssQCvfms69VfE/g+rg
SQ6FLkAFUjTvZp3wP78i0qabCzBA3Cdr7nft7z/o1FJGMscwQNT60X04ze4/
T/mixpSSMUB1V4dE06rtP2EikmR5UDJArQpsC1yu7D+ldDBhowozQEdj3Yeh
xus/KDmePpnUM0Bqu5O3O9vqP1YCqzkRkTRAuffb2TIN6j/CPYcVVV01QKCg
ZKRmO+k/YKISUN4lNkAUd0qP43noP6oLPajp4DZAEf1wF5DP5z8y5zbhwKs3
QNZkvtEEIec/ZsfPNxppOEByuYrU3obmP8vQF+24IjlAJpXztVr35T9vTC+D
I+w5QC/MAkV+Y+U/vszlNhCoOkB9VcFtYeDkP0y/a8vIcztAs7k3HSlZ5D+F
tpB9AzI8QNcMEFTu4OM/8NZkjoPsPEB4lSaKU3DjP5lpCIDPtj1AqqIhzq/7
4j/uAEuPnXM+QFeZzWink+I/gQpdfzdAP0DyZonC1CfiP6MeD2eLBEBA7lEB
e6DC4T9cOj8dPGJAQLVIwi4daOE/NA/Xw9LHQEAUa9j59AnhP2JmPnmqJkFA
n0zzH5O14D8pUv3dpINBQCfRtP/1ZeA/D/cjM4XoQUBPDOe/3hLgP0seGpem
RkJA5/WIRH+Q3z+m/nfrraxCQDFv4wW69N4/mnMt79cQQ0AuYpNyiWHeP+Nq
sgFDbkNAfk4Ycxrd3T9MG58ElNNDQE9jBY56Ut0/Ck5bFiYyREBX2qpsi9Xc
P+c5fxiemERASLa/2slS3D9duvrJOP1EQCsL4g/X1ts/Kb1FihRbRUBe0sUS
92bbPxR5+DrWwEVAEx7hpZPx2j9Vt3r62B9GQP5/QnZ2h9o/uBaa+f9/RkDO
3pnRWB/aP/sHuKk=
"]]}}}, {
DisplayFunction -> Identity, AspectRatio -> 1,
Axes -> {False, False}, AxesLabel -> {None, None},
AxesOrigin -> {0, 0.1}, DisplayFunction :> Identity,
Frame -> {{True, True}, {True, True}},
FrameLabel -> {{None, None}, {None, None}}, FrameStyle ->
Directive[
Opacity[0.5],
Thickness[Tiny],
RGBColor[0.368417, 0.506779, 0.709798]],
FrameTicks -> {{None, None}, {None, None}},
GridLines -> {None, None}, GridLinesStyle -> Directive[
GrayLevel[0.5, 0.4]], ImageSize ->
Dynamic[{
Automatic, 3.5 CurrentValue["FontCapHeight"]/
AbsoluteCurrentValue[Magnification]}],
Method -> {
"DefaultBoundaryStyle" -> Automatic, "DefaultMeshStyle" ->
AbsolutePointSize[6], "ScalingFunctions" -> None},
PlotRange -> {{0., 45.}, {0.40816326588490603`,
3.539595155085149}}, PlotRangeClipping -> True,
PlotRangePadding -> {{
Scaled[0.1],
Scaled[0.1]}, {
Scaled[0.1],
Scaled[0.1]}}, Ticks -> {Automatic, Automatic}}],
GridBox[{{
RowBox[{
TagBox["\"Domain: \"", "SummaryItemAnnotation"],
"\[InvisibleSpace]",
TagBox[
RowBox[{"{",
RowBox[{"{",
RowBox[{"0.`", ",", "45.`"}], "}"}], "}"}],
"SummaryItem"]}]}, {
RowBox[{
TagBox["\"Output: \"", "SummaryItemAnnotation"],
"\[InvisibleSpace]",
TagBox["\"scalar\"", "SummaryItem"]}]}, {
RowBox[{
TagBox["\"Order: \"", "SummaryItemAnnotation"],
"\[InvisibleSpace]",
TagBox["3", "SummaryItem"]}]}, {
RowBox[{
TagBox["\"Method: \"", "SummaryItemAnnotation"],
"\[InvisibleSpace]",
TagBox["\"Hermite\"", "SummaryItem"]}]}, {
RowBox[{
TagBox["\"Periodic: \"", "SummaryItemAnnotation"],
"\[InvisibleSpace]",
TagBox["False", "SummaryItem"]}]}},
GridBoxAlignment -> {
"Columns" -> {{Left}}, "Rows" -> {{Automatic}}},
AutoDelete -> False,
GridBoxItemSize -> {
"Columns" -> {{Automatic}}, "Rows" -> {{Automatic}}},
GridBoxSpacings -> {
"Columns" -> {{2}}, "Rows" -> {{Automatic}}},
BaseStyle -> {
ShowStringCharacters -> False, NumberMarks -> False,
PrintPrecision -> 3, ShowSyntaxStyles -> False}]}},
GridBoxAlignment -> {"Rows" -> {{Top}}}, AutoDelete -> False,
GridBoxItemSize -> {
"Columns" -> {{Automatic}}, "Rows" -> {{Automatic}}},
BaselinePosition -> {1, 1}]},
Dynamic[Typeset`open$$], ImageSize -> Automatic],
BaselinePosition -> Baseline], DynamicModuleValues :> {}],
StyleBox["]", "NonInterpretableSummary"]}]},
"CopyTag",
DisplayFunction->(#& ),
InterpretationFunction->("InterpolatingFunction[{{0., 45.}}, <>]"& )],
False,
Editable->False,
SelectWithContents->True,
Selectable->False]}], ",",
RowBox[{"b", "\[Rule]",
TagBox[
TemplateBox[{RowBox[{
StyleBox[
TagBox["InterpolatingFunction", "SummaryHead"],
"NonInterpretableSummary"],
StyleBox["[", "NonInterpretableSummary"],
DynamicModuleBox[{Typeset`open$$ = False},
PanelBox[
PaneSelectorBox[{False -> GridBox[{{
PaneBox[
ButtonBox[
DynamicBox[
FEPrivate`FrontEndResource[
"FEBitmaps", "SquarePlusIconMedium"]],
ButtonFunction :> (Typeset`open$$ = True), Appearance ->
None, Evaluator -> Automatic, Method -> "Preemptive"],
Alignment -> {Center, Center}, ImageSize ->
Dynamic[{
Automatic, 3.5 CurrentValue["FontCapHeight"]/
AbsoluteCurrentValue[Magnification]}]],
GraphicsBox[{{{}, {}, {
Directive[
Opacity[1.],
RGBColor[0.368417, 0.506779, 0.709798],
AbsoluteThickness[1]],
LineBox[CompressedData["
1:eJwBsQNO/CFib1JlAgAAADoAAAACAAAAFHUPtZee+j+5XcFDF1EMQNkSah/r
KwJADLmYzTCDCUC9emCd5P4HQMv9oWPh2wZAlHTSIT1QDkBMBQC5k4oEQORJ
nknTGhJANS5BhwTEAkB3IpGFt0wVQPyI3guIKAFA0Z9APLFvGEA5Lh0anKf/
P9kvbGmzXBtA8+WhvdOE/T/biNUZ5YgeQKFFRqSegfs/RXpdoI+/IEDr/+qg
Qdz5P4GCLnE3MyJAE6/ZWmtt+D86b54Dd8YjQDYBH4zGCvc/SmVM0bo+JUAv
yi1SUeL1P9Y/mWCW1iZAjc5Pp+LA9D/GbESt/GYoQMM2/JduwPM/DaMtNWfc
KUAhzXWjnObyP9G9tX5pcStAHFHljqEO8j/s4XsDcOssQCvfms69VfE/g+rg
SQ6FLkAFUjTvZp3wP78i0qabCzBA3Cdr7nft7z/o1FJGMscwQNT60X04ze4/
T/mixpSSMUB1V4dE06rtP2EikmR5UDJArQpsC1yu7D+ldDBhowozQEdj3Yeh
xus/KDmePpnUM0Bqu5O3O9vqP1YCqzkRkTRAuffb2TIN6j/CPYcVVV01QKCg
ZKRmO+k/YKISUN4lNkAUd0qP43noP6oLPajp4DZAEf1wF5DP5z8y5zbhwKs3
QNZkvtEEIec/ZsfPNxppOEByuYrU3obmP8vQF+24IjlAJpXztVr35T9vTC+D
I+w5QC/MAkV+Y+U/vszlNhCoOkB9VcFtYeDkP0y/a8vIcztAs7k3HSlZ5D+F
tpB9AzI8QNcMEFTu4OM/8NZkjoPsPEB4lSaKU3DjP5lpCIDPtj1AqqIhzq/7
4j/uAEuPnXM+QFeZzWink+I/gQpdfzdAP0DyZonC1CfiP6MeD2eLBEBA7lEB
e6DC4T9cOj8dPGJAQLVIwi4daOE/NA/Xw9LHQEAUa9j59AnhP2JmPnmqJkFA
n0zzH5O14D8pUv3dpINBQCfRtP/1ZeA/D/cjM4XoQUBPDOe/3hLgP0seGpem
RkJA5/WIRH+Q3z+m/nfrraxCQDFv4wW69N4/mnMt79cQQ0AuYpNyiWHeP+Nq
sgFDbkNAfk4Ycxrd3T9MG58ElNNDQE9jBY56Ut0/Ck5bFiYyREBX2qpsi9Xc
P+c5fxiemERASLa/2slS3D9duvrJOP1EQCsL4g/X1ts/Kb1FihRbRUBe0sUS
92bbPxR5+DrWwEVAEx7hpZPx2j9Vt3r62B9GQP5/QnZ2h9o/uBaa+f9/RkDO
3pnRWB/aP/sHuKk=
"]]}}}, {
DisplayFunction -> Identity, AspectRatio -> 1,
Axes -> {False, False}, AxesLabel -> {None, None},
AxesOrigin -> {0, 0.1}, DisplayFunction :> Identity,
Frame -> {{True, True}, {True, True}},
FrameLabel -> {{None, None}, {None, None}}, FrameStyle ->
Directive[
Opacity[0.5],
Thickness[Tiny],
RGBColor[0.368417, 0.506779, 0.709798]],
FrameTicks -> {{None, None}, {None, None}},
GridLines -> {None, None}, GridLinesStyle -> Directive[
GrayLevel[0.5, 0.4]], ImageSize ->
Dynamic[{
Automatic, 3.5 CurrentValue["FontCapHeight"]/
AbsoluteCurrentValue[Magnification]}],
Method -> {
"DefaultBoundaryStyle" -> Automatic, "DefaultMeshStyle" ->
AbsolutePointSize[6], "ScalingFunctions" -> None},
PlotRange -> {{0., 45.}, {0.40816326588490603`,
3.539595155085149}}, PlotRangeClipping -> True,
PlotRangePadding -> {{
Scaled[0.1],
Scaled[0.1]}, {
Scaled[0.1],
Scaled[0.1]}}, Ticks -> {Automatic, Automatic}}],
GridBox[{{
RowBox[{
TagBox["\"Domain: \"", "SummaryItemAnnotation"],
"\[InvisibleSpace]",
TagBox[
RowBox[{"{",
RowBox[{"{",
RowBox[{"0.`", ",", "45.`"}], "}"}], "}"}],
"SummaryItem"]}]}, {
RowBox[{
TagBox["\"Output: \"", "SummaryItemAnnotation"],
"\[InvisibleSpace]",
TagBox["\"scalar\"", "SummaryItem"]}]}},
GridBoxAlignment -> {
"Columns" -> {{Left}}, "Rows" -> {{Automatic}}},
AutoDelete -> False,
GridBoxItemSize -> {
"Columns" -> {{Automatic}}, "Rows" -> {{Automatic}}},
GridBoxSpacings -> {
"Columns" -> {{2}}, "Rows" -> {{Automatic}}},
BaseStyle -> {
ShowStringCharacters -> False, NumberMarks -> False,
PrintPrecision -> 3, ShowSyntaxStyles -> False}]}},
GridBoxAlignment -> {"Rows" -> {{Top}}}, AutoDelete -> False,
GridBoxItemSize -> {
"Columns" -> {{Automatic}}, "Rows" -> {{Automatic}}},
BaselinePosition -> {1, 1}], True -> GridBox[{{
PaneBox[
ButtonBox[
DynamicBox[
FEPrivate`FrontEndResource[
"FEBitmaps", "SquareMinusIconMedium"]],
ButtonFunction :> (Typeset`open$$ = False), Appearance ->
None, Evaluator -> Automatic, Method -> "Preemptive"],
Alignment -> {Center, Center}, ImageSize ->
Dynamic[{
Automatic, 3.5 CurrentValue["FontCapHeight"]/
AbsoluteCurrentValue[Magnification]}]],
GraphicsBox[{{{}, {}, {
Directive[
Opacity[1.],
RGBColor[0.368417, 0.506779, 0.709798],
AbsoluteThickness[1]],
LineBox[CompressedData["
1:eJwBsQNO/CFib1JlAgAAADoAAAACAAAAFHUPtZee+j+5XcFDF1EMQNkSah/r
KwJADLmYzTCDCUC9emCd5P4HQMv9oWPh2wZAlHTSIT1QDkBMBQC5k4oEQORJ
nknTGhJANS5BhwTEAkB3IpGFt0wVQPyI3guIKAFA0Z9APLFvGEA5Lh0anKf/
P9kvbGmzXBtA8+WhvdOE/T/biNUZ5YgeQKFFRqSegfs/RXpdoI+/IEDr/+qg
Qdz5P4GCLnE3MyJAE6/ZWmtt+D86b54Dd8YjQDYBH4zGCvc/SmVM0bo+JUA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> {0, 0.1}, DisplayFunction :> Identity,
Frame -> {{True, True}, {True, True}},
FrameLabel -> {{None, None}, {None, None}}, FrameStyle ->
Directive[
Opacity[0.5],
Thickness[Tiny],
RGBColor[0.368417, 0.506779, 0.709798]],
FrameTicks -> {{None, None}, {None, None}},
GridLines -> {None, None}, GridLinesStyle -> Directive[
GrayLevel[0.5, 0.4]], ImageSize ->
Dynamic[{
Automatic, 3.5 CurrentValue["FontCapHeight"]/
AbsoluteCurrentValue[Magnification]}],
Method -> {
"DefaultBoundaryStyle" -> Automatic, "DefaultMeshStyle" ->
AbsolutePointSize[6], "ScalingFunctions" -> None},
PlotRange -> {{0., 45.}, {0.40816326588490603`,
3.539595155085149}}, PlotRangeClipping -> True,
PlotRangePadding -> {{
Scaled[0.1],
Scaled[0.1]}, {
Scaled[0.1],
Scaled[0.1]}}, Ticks -> {Automatic, Automatic}}],
GridBox[{{
RowBox[{
TagBox["\"Domain: \"", "SummaryItemAnnotation"],
"\[InvisibleSpace]",
TagBox[
RowBox[{"{",
RowBox[{"{",
RowBox[{"0.`", ",", "45.`"}], "}"}], "}"}],
"SummaryItem"]}]}, {
RowBox[{
TagBox["\"Output: \"", "SummaryItemAnnotation"],
"\[InvisibleSpace]",
TagBox["\"scalar\"", "SummaryItem"]}]}, {
RowBox[{
TagBox["\"Order: \"", "SummaryItemAnnotation"],
"\[InvisibleSpace]",
TagBox["3", "SummaryItem"]}]}, {
RowBox[{
TagBox["\"Method: \"", "SummaryItemAnnotation"],
"\[InvisibleSpace]",
TagBox["\"Hermite\"", "SummaryItem"]}]}, {
RowBox[{
TagBox["\"Periodic: \"", "SummaryItemAnnotation"],
"\[InvisibleSpace]",
TagBox["False", "SummaryItem"]}]}},
GridBoxAlignment -> {
"Columns" -> {{Left}}, "Rows" -> {{Automatic}}},
AutoDelete -> False,
GridBoxItemSize -> {
"Columns" -> {{Automatic}}, "Rows" -> {{Automatic}}},
GridBoxSpacings -> {
"Columns" -> {{2}}, "Rows" -> {{Automatic}}},
BaseStyle -> {
ShowStringCharacters -> False, NumberMarks -> False,
PrintPrecision -> 3, ShowSyntaxStyles -> False}]}},
GridBoxAlignment -> {"Rows" -> {{Top}}}, AutoDelete -> False,
GridBoxItemSize -> {
"Columns" -> {{Automatic}}, "Rows" -> {{Automatic}}},
BaselinePosition -> {1, 1}]},
Dynamic[Typeset`open$$], ImageSize -> Automatic],
BaselinePosition -> Baseline], DynamicModuleValues :> {}],
StyleBox["]", "NonInterpretableSummary"]}]},
"CopyTag",
DisplayFunction->(#& ),
InterpretationFunction->("InterpolatingFunction[{{0., 45.}}, <>]"& )],
False,
Editable->False,
SelectWithContents->True,
Selectable->False]}], ",",
RowBox[{"c", "\[Rule]",
TagBox[
TemplateBox[{RowBox[{
StyleBox[
TagBox["InterpolatingFunction", "SummaryHead"],
"NonInterpretableSummary"],
StyleBox["[", "NonInterpretableSummary"],
DynamicModuleBox[{Typeset`open$$ = False},
PanelBox[
PaneSelectorBox[{False -> GridBox[{{
PaneBox[
ButtonBox[
DynamicBox[
FEPrivate`FrontEndResource[
"FEBitmaps", "SquarePlusIconMedium"]],
ButtonFunction :> (Typeset`open$$ = True), Appearance ->
None, Evaluator -> Automatic, Method -> "Preemptive"],
Alignment -> {Center, Center}, ImageSize ->
Dynamic[{
Automatic, 3.5 CurrentValue["FontCapHeight"]/
AbsoluteCurrentValue[Magnification]}]],
GraphicsBox[{{{}, {}, {
Directive[
Opacity[1.],
RGBColor[0.368417, 0.506779, 0.709798],
AbsoluteThickness[1]],
LineBox[CompressedData["
1:eJwVxXk02wcAB3BCQ5HI7zfM8ZY0UcrUFeKWfB2xR9PNmGut0sxRx0oXm+Gh
5nk1nTjquetmVLXTGV09x9bO8fTVUFerpaWOUbJ2B4Zu++PzPmxxnE84RU5O
zuk//y9pzTnSWNLCfxTkSpHu3+QbbFa/TElaEfBPLiZ3jawKqGuzpvZfbAvm
Wfe3eKy/BLNkNGvdhIK13AdhVTt7gp7k0KtLB0rgUc5UMo/KoyhhnO3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dgCJ21rlO2/SPaArXv5M5QyJfwGYLpTt
"]]}}}, {
DisplayFunction -> Identity, AspectRatio -> 1,
Axes -> {False, False}, AxesLabel -> {None, None},
AxesOrigin -> {0, 0}, DisplayFunction :> Identity,
Frame -> {{True, True}, {True, True}},
FrameLabel -> {{None, None}, {None, None}}, FrameStyle ->
Directive[
Opacity[0.5],
Thickness[Tiny],
RGBColor[0.368417, 0.506779, 0.709798]],
FrameTicks -> {{None, None}, {None, None}},
GridLines -> {None, None}, GridLinesStyle -> Directive[
GrayLevel[0.5, 0.4]], ImageSize ->
Dynamic[{
Automatic, 3.5 CurrentValue["FontCapHeight"]/
AbsoluteCurrentValue[Magnification]}],
Method -> {
"DefaultBoundaryStyle" -> Automatic, "DefaultMeshStyle" ->
AbsolutePointSize[6], "ScalingFunctions" -> None},
PlotRange -> {{0., 45.}, {0., 4.5918367341151}},
PlotRangeClipping -> True, PlotRangePadding -> {{
Scaled[0.1],
Scaled[0.1]}, {
Scaled[0.1],
Scaled[0.1]}}, Ticks -> {Automatic, Automatic}}],
GridBox[{{
RowBox[{
TagBox["\"Domain: \"", "SummaryItemAnnotation"],
"\[InvisibleSpace]",
TagBox[
RowBox[{"{",
RowBox[{"{",
RowBox[{"0.`", ",", "45.`"}], "}"}], "}"}],
"SummaryItem"]}]}, {
RowBox[{
TagBox["\"Output: \"", "SummaryItemAnnotation"],
"\[InvisibleSpace]",
TagBox["\"scalar\"", "SummaryItem"]}]}},
GridBoxAlignment -> {
"Columns" -> {{Left}}, "Rows" -> {{Automatic}}},
AutoDelete -> False,
GridBoxItemSize -> {
"Columns" -> {{Automatic}}, "Rows" -> {{Automatic}}},
GridBoxSpacings -> {
"Columns" -> {{2}}, "Rows" -> {{Automatic}}},
BaseStyle -> {
ShowStringCharacters -> False, NumberMarks -> False,
PrintPrecision -> 3, ShowSyntaxStyles -> False}]}},
GridBoxAlignment -> {"Rows" -> {{Top}}}, AutoDelete -> False,
GridBoxItemSize -> {
"Columns" -> {{Automatic}}, "Rows" -> {{Automatic}}},
BaselinePosition -> {1, 1}], True -> GridBox[{{
PaneBox[
ButtonBox[
DynamicBox[
FEPrivate`FrontEndResource[
"FEBitmaps", "SquareMinusIconMedium"]],
ButtonFunction :> (Typeset`open$$ = False), Appearance ->
None, Evaluator -> Automatic, Method -> "Preemptive"],
Alignment -> {Center, Center}, ImageSize ->
Dynamic[{
Automatic, 3.5 CurrentValue["FontCapHeight"]/
AbsoluteCurrentValue[Magnification]}]],
GraphicsBox[{{{}, {}, {
Directive[
Opacity[1.],
RGBColor[0.368417, 0.506779, 0.709798],
AbsoluteThickness[1]],
LineBox[CompressedData["
1:eJwVxXk02wcAB3BCQ5HI7zfM8ZY0UcrUFeKWfB2xR9PNmGut0sxRx0oXm+Gh
5nk1nTjquetmVLXTGV09x9bO8fTVUFerpaWOUbJ2B4Zu++PzPmxxnE84RU5O
zuk//y9pzTnSWNLCfxTkSpHu3+QbbFa/TElaEfBPLiZ3jawKqGuzpvZfbAvm
Wfe3eKy/BLNkNGvdhIK13AdhVTt7gp7k0KtLB0rgUc5UMo/KoyhhnO3sTUfH
7huP2M8VsORZ5TmhS2JkrPfLfxwPIZFTkNUl0oRiIvuPxGkqxqrh1B6njaVz
v7+yPK6MWfPYqO9P60GJZs4udj6Mx9mTOi+ymbB8MtdmIVCBMDm4Jq/vCNQu
5pjPE6rI+Mrsgq0VB0lGV3y8hlXhEFelkDigj8h02Y+VyWrwCheN3eEbYF13
zX+aTsOUoCy0eMoQ3dqB16XVNAzEurftRRihZkm+Y4hFB63elBc5Z4x4HeGN
9m/oGOv5IS3qggkSAnLtbm7TsfEsRSF+/Tg+zb+lzfZTR+ZvC570LDPITYdn
i9rV0ccZb6pQtQC1gkv5kMLA6kMfD+6gBZr7hbJAQwY+2KkbKCq0hIZmXEmj
FwNnOYVhSd5ctKUVpllHM9CYYHG2XsUK5b6KoyaXGDCyr+KXPbRCcTbt69IG
BvwprfZEgTXUMu41BPUy8LPzJU2/YB5kMRKTKzMMhNaR3k8NbMBu15LelTFw
TdW5eW3BBuIFYp9GJcBdsXnW32qLKKuh8Hk9AhGDo7a6UXaYbD5vcNScwMiv
b7+8zbFHSK5Li4YLgTiReab+hj3SmkJs830J9N5/YcNodoDf5Hvjrz8hIOqL
GRmSOGJUOWjuUQKBrM78VAWuE2IOUnnPMwnIpsKkmRtO8Dftlv5ZQKAsSvni
aKczvhtxpObUENiUO5F3VcLHY9EyebmNQIZKcLotBDg2cSPyUDeBeqZ65GVF
YGiyWtY6SOC0g+AdJzGw1Xns471xAtbq03fHB4GGV/dCf3pKQBzBT7pm6AJJ
sXzlyTUCxj77TxoyXfA8/DBcXhNQ/1vfKmvVBalMBaOGfQInmLolTR6uaI7v
Ut2mkmg6SFxvu+6Kt4ZrQzoYJMolplvTDDcsDk+dW9EhsRh9S97tvBuYKQ8C
zTgkRHrVikUTbhhrYQXMvEtC5f1TWoZcd4T68Dy/5ZJYsU/Xrip1R63iR+IJ
BxLBd3aH7fbd4Tsvn1foSsK4R5ijcUqIhboJab4nCY2kbYepfiEMNmt/WfYm
4deVvDvD8oDSTEVpdgCJ21rlO2/SPaArXv5M5QyJfwGYLpTt
"]]}}}, {
DisplayFunction -> Identity, AspectRatio -> 1,
Axes -> {False, False}, AxesLabel -> {None, None},
AxesOrigin -> {0, 0}, DisplayFunction :> Identity,
Frame -> {{True, True}, {True, True}},
FrameLabel -> {{None, None}, {None, None}}, FrameStyle ->
Directive[
Opacity[0.5],
Thickness[Tiny],
RGBColor[0.368417, 0.506779, 0.709798]],
FrameTicks -> {{None, None}, {None, None}},
GridLines -> {None, None}, GridLinesStyle -> Directive[
GrayLevel[0.5, 0.4]], ImageSize ->
Dynamic[{
Automatic, 3.5 CurrentValue["FontCapHeight"]/
AbsoluteCurrentValue[Magnification]}],
Method -> {
"DefaultBoundaryStyle" -> Automatic, "DefaultMeshStyle" ->
AbsolutePointSize[6], "ScalingFunctions" -> None},
PlotRange -> {{0., 45.}, {0., 4.5918367341151}},
PlotRangeClipping -> True, PlotRangePadding -> {{
Scaled[0.1],
Scaled[0.1]}, {
Scaled[0.1],
Scaled[0.1]}}, Ticks -> {Automatic, Automatic}}],
GridBox[{{
RowBox[{
TagBox["\"Domain: \"", "SummaryItemAnnotation"],
"\[InvisibleSpace]",
TagBox[
RowBox[{"{",
RowBox[{"{",
RowBox[{"0.`", ",", "45.`"}], "}"}], "}"}],
"SummaryItem"]}]}, {
RowBox[{
TagBox["\"Output: \"", "SummaryItemAnnotation"],
"\[InvisibleSpace]",
TagBox["\"scalar\"", "SummaryItem"]}]}, {
RowBox[{
TagBox["\"Order: \"", "SummaryItemAnnotation"],
"\[InvisibleSpace]",
TagBox["3", "SummaryItem"]}]}, {
RowBox[{
TagBox["\"Method: \"", "SummaryItemAnnotation"],
"\[InvisibleSpace]",
TagBox["\"Hermite\"", "SummaryItem"]}]}, {
RowBox[{
TagBox["\"Periodic: \"", "SummaryItemAnnotation"],
"\[InvisibleSpace]",
TagBox["False", "SummaryItem"]}]}},
GridBoxAlignment -> {
"Columns" -> {{Left}}, "Rows" -> {{Automatic}}},
AutoDelete -> False,
GridBoxItemSize -> {
"Columns" -> {{Automatic}}, "Rows" -> {{Automatic}}},
GridBoxSpacings -> {
"Columns" -> {{2}}, "Rows" -> {{Automatic}}},
BaseStyle -> {
ShowStringCharacters -> False, NumberMarks -> False,
PrintPrecision -> 3, ShowSyntaxStyles -> False}]}},
GridBoxAlignment -> {"Rows" -> {{Top}}}, AutoDelete -> False,
GridBoxItemSize -> {
"Columns" -> {{Automatic}}, "Rows" -> {{Automatic}}},
BaselinePosition -> {1, 1}]},
Dynamic[Typeset`open$$], ImageSize -> Automatic],
BaselinePosition -> Baseline], DynamicModuleValues :> {}],
StyleBox["]", "NonInterpretableSummary"]}]},
"CopyTag",
DisplayFunction->(#& ),
InterpretationFunction->("InterpolatingFunction[{{0., 45.}}, <>]"& )],
False,
Editable->False,
SelectWithContents->True,
Selectable->False]}]}], "}"}]], "Output",
CellChangeTimes->{{3.67047452295394*^9, 3.670474565813692*^9}, {
3.670474616565473*^9, 3.670474647767619*^9}, {3.6704752435082893`*^9,
3.670475272409051*^9}, 3.670476486933958*^9}]
}, Open ]],
Cell[CellGroupData[{
Cell[BoxData[{
RowBox[{"?", "revrxn"}], "\[IndentingNewLine]",
RowBox[{
RowBox[{"rsys", "=",
RowBox[{"{", "\[IndentingNewLine]",
RowBox[{
RowBox[{"revrxn", "[",
RowBox[{
RowBox[{"a", "+", "b"}], ",", "c", ",",
RowBox[{"1.5", " ",
RowBox[{"10", "^", "6"}]}], ",", "10"}], "]"}], ",",
"\[IndentingNewLine]",
RowBox[{"rxn", "[",
RowBox[{
RowBox[{"2", "a"}], ",", "b", ",",
RowBox[{"10", "^", "5"}]}], "]"}], ",", "\[IndentingNewLine]",
"\[IndentingNewLine]",
RowBox[{"conc", "[",
RowBox[{
RowBox[{"{",
RowBox[{"a", ",", "b", ",", "c"}], "}"}], ",",
RowBox[{"10", "^",
RowBox[{"-", "9"}]}]}], "]"}]}], "\[IndentingNewLine]", "}"}]}],
";"}]}], "Input",
CellChangeTimes->{{3.670474699893907*^9, 3.6704747205708523`*^9}}],
Cell[BoxData[
StyleBox["\<\"Represents a reversible reaction. eg. revrxn[a+b,c,1,1]\"\>",
"MSG"]], "Print", "PrintUsage",
CellChangeTimes->{3.6704747209076557`*^9},
CellTags->"Info-9e7ec44b-0e5f-427a-9f62-8772fc5a96d2"]
}, Open ]],
Cell[CellGroupData[{
Cell[BoxData[{
RowBox[{
RowBox[{"keff", "=", "300000"}], ";"}], "\[IndentingNewLine]",
RowBox[{
RowBox[{
RowBox[{"tmax", "=",
RowBox[{"5", "*", "24", "*", "60", "*", "60"}]}], ";"}],
"\[IndentingNewLine]"}], "\[IndentingNewLine]",
RowBox[{
RowBox[{"bibi", "[",
RowBox[{"a_", ",", "b_", ",", "c_", ",", "d_"}], "]"}], ":=",
"\[IndentingNewLine]",
RowBox[{"Module", "[",
RowBox[{
RowBox[{"{",
RowBox[{
"gate", ",", "backward", ",", "agate", ",", "out", ",", "atrans", ",",
"helper"}], "}"}], ",", "\[IndentingNewLine]",
RowBox[{"Seq", "[", "\[IndentingNewLine]",
RowBox[{
RowBox[{"revrxn", "[",
RowBox[{
RowBox[{"a", "+", "gate"}], ",",
RowBox[{"backward", "+", "agate"}], ",",
RowBox[{"keff", "/", "10"}], ",", "keff"}], "]"}], ",",
"\[IndentingNewLine]",
RowBox[{"rxn", "[",
RowBox[{
RowBox[{"b", "+", "agate"}], ",", "out", ",", "keff"}], "]"}], ",",
"\[IndentingNewLine]",
RowBox[{"revrxn", "[",
RowBox[{
RowBox[{"out", "+",
RowBox[{"trans", "[", "c", "]"}]}], ",", " ",
RowBox[{"c", "+", "atrans"}], ",",
RowBox[{"keff", "/", "10"}], ",", "keff"}], "]"}], ",",
"\[IndentingNewLine]",
RowBox[{"rxn", "[",
RowBox[{
RowBox[{"helper", "+", "atrans"}], ",", "d", ",", "keff"}], "]"}],
",", "\[IndentingNewLine]", "\[IndentingNewLine]",
RowBox[{"conc", "[",
RowBox[{
RowBox[{"{",
RowBox[{"gate", ",",
RowBox[{"trans", "[", "c", "]"}]}], "}"}], ",", " ",
RowBox[{"200", " ",
RowBox[{"10", "^",
RowBox[{"-", "9"}]}]}]}], "]"}], ",", "\[IndentingNewLine]",
RowBox[{"conc", "[",
RowBox[{"backward", ",",
RowBox[{"100", " ",
RowBox[{"10", "^",
RowBox[{"-", "9"}]}]}]}], "]"}], ",", "\[IndentingNewLine]",
RowBox[{"conc", "[",
RowBox[{"helper", ",", " ",
RowBox[{"200", " ",
RowBox[{"10", "^",
RowBox[{"-", "9"}]}]}]}], "]"}]}], "\[IndentingNewLine]",
"\[IndentingNewLine]", "]"}]}], "]"}]}], "\[IndentingNewLine]",
RowBox[{
RowBox[{"rsys", "=", "\[IndentingNewLine]",
RowBox[{"{",
RowBox[{
RowBox[{"bibi", "[",
RowBox[{"b", ",", "a", ",", "b", ",", "b"}], "]"}], ",",
"\[IndentingNewLine]",