-
Notifications
You must be signed in to change notification settings - Fork 0
/
solution.txt
1360 lines (1360 loc) · 39.9 KB
/
solution.txt
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
Hello world!
----------第一题----------
LU分解的结果:10
x1 = 0.99999999640842118787
x2 = 1.00000030675132833835
x3 = 0.99999352589619694420
x4 = 1.00005841854456334339
x5 = 0.99972308161524015002
x6 = 1.00075724604460436495
x7 = 0.99876320627825831977
x8 = 1.00119051820729287883
x9 = 0.99937714663391785663
x10 = 1.00013655588270600205
LU分解得到的数值解与理论解的二范数为:0.00200178576154945919
QR分解的结果:10
x1 = 0.99999999788421822799
x2 = 1.00000018050854166951
x3 = 0.99999619054317223643
x4 = 1.00003438891615648032
x5 = 0.99983688113398683228
x6 = 1.00044639313105965250
x7 = 0.99927034183977248016
x8 = 1.00070290663292871258
x9 = 0.99963197588463448273
x10 = 1.00008074488730280827
QR分解得到的数值解与理论解的二范数为:0.00118131790206028615
LU分解的结果:20
x1 = 0.99999895213098133340
x2 = 1.00016610957728713238
x3 = 0.99351982786654347013
x4 = 1.10810406638787317668
x5 = 0.05043506020792644373
x6 = 5.81279018794253321545
x7 = -13.38390416878691091540
x8 = 24.75926257176505629332
x9 = -14.25073821782095251365
x10 = -5.00823170544129236958
x11 = -13.86180097293629387423
x12 = 98.23433544406947248717
x13 = -145.20004946732638018148
x14 = 90.40016501785440539152
x15 = 4.77185601698853378849
x16 = -62.14418648114224197343
x17 = 96.33449764635139445090
x18 = -89.58536951730269493055
x19 = 47.72774305261256699850
x20 = -8.75859412345512922116
LU分解得到的数值解与理论解的二范数为:252.35073902440691995253
QR分解的结果:20
x1 = 0.99999944885810154727
x2 = 1.00008676669769802636
x3 = 0.99663747608511177312
x4 = 1.05557775643264650789
x5 = 0.51975116227417839099
x6 = 3.35328671649269960398
x7 = -5.47019696354524764814
x8 = 8.87171048828291652910
x9 = 6.66650550557087662185
x10 = -30.97391800316215437761
x11 = 37.11152287000363969582
x12 = 1.81869904486845901381
x13 = -29.99472306956421263635
x14 = 15.65553811558249641678
x15 = 11.07220317561787226168
x16 = -11.67351460183556000061
x17 = 17.15383011645397104417
x18 = -21.66660888235485060704
x19 = 16.16513789319979821357
x20 = -2.66152540476267196468
QR分解得到的数值解与理论解的二范数为:70.17397314935692520521
LU分解的结果:30
x1 = 0.99999970215261546613
x2 = 1.00004847508095795483
x3 = 0.99803709991068290108
x4 = 1.03433557032097578343
x5 = 0.68049853012211825032
x6 = 2.73553320974518143771
x7 = -4.64192381260240694019
x8 = 11.33159726138500289494
x9 = -6.13146351327914373996
x10 = -7.78027839141838750692
x11 = 19.99154183304237619723
x12 = 0.52830684102742409003
x13 = -29.99023167962066338532
x14 = 39.70522765063545023168
x15 = -12.24688172090154658633
x16 = -24.86299355368600316751
x17 = 40.82520678048559403805
x18 = -20.64180357294782552913
x19 = 23.32516555678600411738
x20 = -29.41070648619505689680
x21 = 3.67865668370080989291
x22 = -0.69357910051885485192
x23 = 29.83043380257929655386
x24 = 1.86007331654516883113
x25 = -26.51156984399995408808
x26 = -3.42586270327209785336
x27 = 10.18023433797383603405
x28 = 22.50708328544028447027
x29 = -22.00644268963689498264
x30 = 7.13175714804466842622
LU分解得到的数值解与理论解的二范数为:100.71355914146307952706
QR分解的结果:30
x1 = 1.00000094865241817566
x2 = 0.99985464288584624537
x3 = 1.00547501401419281386
x4 = 0.91222466555711034797
x5 = 1.73322279402305468032
x6 = -2.45550876311828325527
x7 = 10.07514178745419464178
x8 = -9.54067593303399341664
x9 = -5.01505329798469556835
x10 = 32.92424245518325420790
x11 = -26.75197499886605356778
x12 = -3.72557864328470289550
x13 = 7.60668663583325699307
x14 = 14.16934828973013260622
x15 = 10.33025375603419604431
x16 = -33.76041372327825484945
x17 = 10.41295452242343344551
x18 = -4.41203540865663068615
x19 = 55.58862849950465090387
x20 = -59.53753065947208256148
x21 = 1.02508935147586921488
x22 = 32.71801364121460409251
x23 = -18.05550031116130682562
x24 = 20.61282687622879805645
x25 = -11.44374668053654353628
x26 = -13.83690570171047085068
x27 = 12.31970862361355223413
x28 = 12.39951196426996382627
x29 = -11.21904803359366908921
x30 = 3.92078728502134721268
QR分解得到的数值解与理论解的二范数为:113.46156015015796469925
----------第二题----------
LU分解的结果:50
x1 = 1.00000000000000000000
x2 = 1.00000000000000000000
x3 = 1.00000000000000000000
x4 = 1.00000000000000000000
x5 = 1.00000000000000000000
x6 = 1.00000000000000000000
x7 = 1.00000000000000000000
x8 = 1.00000000000000000000
x9 = 1.00000000000000000000
x10 = 1.00000000000000000000
x11 = 1.00000000000000000000
x12 = 1.00000000000000000000
x13 = 1.00000000000000000000
x14 = 1.00000000000000000000
x15 = 1.00000000000000000000
x16 = 1.00000000000000000000
x17 = 1.00000000000000000000
x18 = 1.00000000000000000000
x19 = 1.00000000000000000000
x20 = 1.00000000000000000000
x21 = 1.00000000000000000000
x22 = 1.00000000000000000000
x23 = 1.00000000000000000000
x24 = 1.00000000000000000000
x25 = 1.00000000000000000000
x26 = 1.00000000000000000000
x27 = 1.00000000000000000000
x28 = 1.00000000000000000000
x29 = 1.00000000000000000000
x30 = 1.00000000000000000000
x31 = 1.00000000000000000000
x32 = 1.00000000000000000000
x33 = 1.00000000000000000000
x34 = 1.00000000000000000000
x35 = 1.00000000000000000000
x36 = 1.00000000000000000000
x37 = 1.00000000000000000000
x38 = 1.00000000000000000000
x39 = 1.00000000000000000000
x40 = 1.00000000000000000000
x41 = 1.00000000000000000000
x42 = 1.00000000000000000000
x43 = 1.00000000000000000000
x44 = 1.00000000000000000000
x45 = 1.00000000000000000000
x46 = 1.00000000000000000000
x47 = 1.00000000000000000000
x48 = 1.00000000000000000000
x49 = 1.00000000000000000000
x50 = 1.00000000000000000000
LU分解得到的数值解与理论解的二范数为:0.00000000000000000000
QR分解的结果:50
x1 = 1.00000000000000643929
x2 = 0.99999999999999533706
x3 = 1.00000000000000000000
x4 = 1.00000000000001021405
x5 = 1.00000000000001509903
x6 = 0.99999999999997324363
x7 = 1.00000000000000177636
x8 = 0.99999999999999988898
x9 = 0.99999999999999722444
x10 = 1.00000000000000466294
x11 = 0.99999999999998778755
x12 = 1.00000000000000199840
x13 = 0.99999999999999211742
x14 = 0.99999999999998745448
x15 = 1.00000000000002087219
x16 = 1.00000000000000177636
x17 = 0.99999999999999700240
x18 = 1.00000000000001132427
x19 = 0.99999999999999233946
x20 = 0.99999999999999722444
x21 = 1.00000000000000044409
x22 = 0.99999999999999844569
x23 = 1.00000000000000155431
x24 = 1.00000000000000532907
x25 = 0.99999999999999322764
x26 = 0.99999999999999888978
x27 = 1.00000000000000732747
x28 = 0.99999999999999200639
x29 = 1.00000000000000022204
x30 = 1.00000000000000022204
x31 = 1.00000000000000044409
x32 = 0.99999999999999933387
x33 = 1.00000000000000177636
x34 = 1.00000000000000222045
x35 = 0.99999999999999722444
x36 = 0.99999999999999800160
x37 = 1.00000000000000199840
x38 = 0.99999999999999755751
x39 = 1.00000000000000111022
x40 = 0.99999999999999933387
x41 = 1.00000000000000155431
x42 = 1.00000000000000111022
x43 = 1.00000000000000355271
x44 = 0.99999999999999955591
x45 = 1.00000000000000155431
x46 = 1.00000000000000044409
x47 = 0.99999999999999977796
x48 = 0.99999999999999955591
x49 = 0.99999999999999766853
x50 = 1.00000000000000199840
QR分解得到的数值解与理论解的二范数为:0.00000000000004917461
LU分解的结果:100
x1 = 1.00000000000000022204
x2 = 1.00000000000000044409
x3 = 1.00000000000000088818
x4 = 1.00000000000000177636
x5 = 1.00000000000000355271
x6 = 1.00000000000000710543
x7 = 1.00000000000001421085
x8 = 1.00000000000002842171
x9 = 1.00000000000005684342
x10 = 1.00000000000011368684
x11 = 1.00000000000022737368
x12 = 1.00000000000045474735
x13 = 1.00000000000090949470
x14 = 1.00000000000181898940
x15 = 1.00000000000363797881
x16 = 1.00000000000727595761
x17 = 1.00000000001455191523
x18 = 1.00000000002910383046
x19 = 1.00000000005820766091
x20 = 1.00000000011641532183
x21 = 1.00000000023283064365
x22 = 1.00000000046566128731
x23 = 1.00000000093132257462
x24 = 1.00000000186264514923
x25 = 1.00000000372529029846
x26 = 1.00000000745058059692
x27 = 1.00000001490116119385
x28 = 1.00000002980232238770
x29 = 1.00000005960464477539
x30 = 1.00000011920928955078
x31 = 1.00000023841857910156
x32 = 1.00000047683715820312
x33 = 1.00000095367431640625
x34 = 1.00000190734863281250
x35 = 1.00000381469726562500
x36 = 1.00000762939453125000
x37 = 1.00001525878906250000
x38 = 1.00003051757812500000
x39 = 1.00006103515625000000
x40 = 1.00012207031250000000
x41 = 1.00024414062500000000
x42 = 1.00048828125000000000
x43 = 1.00097656250000000000
x44 = 1.00195312500000000000
x45 = 1.00390625000000000000
x46 = 1.00781250000000000000
x47 = 1.01562500000000000000
x48 = 1.03125000000000000000
x49 = 1.06250000000000000000
x50 = 1.12500000000000000000
x51 = 1.25000000000000000000
x52 = 1.50000000000000000000
x53 = 2.00000000000000000000
x54 = 2.00000000000000000000
x55 = 4.00000000000000000000
x56 = 4.00000000000000000000
x57 = 8.00000000000000000000
x58 = 16.00000000000000000000
x59 = 0.00000000000000000000
x60 = 0.00000000000000000000
x61 = 0.00000000000000000000
x62 = 0.00000000000000000000
x63 = 0.00000000000000000000
x64 = 0.00000000000000000000
x65 = 0.00000000000000000000
x66 = 0.00000000000000000000
x67 = 0.00000000000000000000
x68 = 0.00000000000000000000
x69 = 0.00000000000000000000
x70 = 0.00000000000000000000
x71 = 0.00000000000000000000
x72 = 0.00000000000000000000
x73 = 0.00000000000000000000
x74 = 0.00000000000000000000
x75 = 0.00000000000000000000
x76 = 0.00000000000000000000
x77 = 0.00000000000000000000
x78 = 0.00000000000000000000
x79 = 0.00000000000000000000
x80 = 0.00000000000000000000
x81 = 0.00000000000000000000
x82 = 0.00000000000000000000
x83 = 0.00000000000000000000
x84 = 0.00000000000000000000
x85 = 0.00000000000000000000
x86 = 0.00000000000000000000
x87 = 0.00000000000000000000
x88 = 0.00000000000000000000
x89 = 0.00000000000000000000
x90 = 0.00000000000000000000
x91 = 0.00000000000000000000
x92 = 0.00000000000000000000
x93 = 0.00000000000000000000
x94 = 0.00000000000000000000
x95 = 0.00000000000000000000
x96 = 0.00000000000000000000
x97 = 0.00000000000000000000
x98 = 0.00000000000000000000
x99 = 0.00000000000000000000
x100 = 0.99999999999999977796
LU分解得到的数值解与理论解的二范数为:18.31210892642716103751
QR分解的结果:100
x1 = 1.00000000000030686564
x2 = 0.99999999999998157030
x3 = 0.99999999999999800160
x4 = 1.00000000000000799361
x5 = 1.00000000000000155431
x6 = 0.99999999999999067413
x7 = 0.99999999999998701039
x8 = 0.99999999999999966693
x9 = 0.99999999999998523403
x10 = 1.00000000000001487699
x11 = 0.99999999999998789857
x12 = 1.00000000000001265654
x13 = 1.00000000000000288658
x14 = 1.00000000000003175238
x15 = 1.00000000000002642331
x16 = 0.99999999999995503597
x17 = 0.99999999999999633626
x18 = 1.00000000000000355271
x19 = 0.99999999999999689138
x20 = 1.00000000000002065015
x21 = 0.99999999999997057909
x22 = 0.99999999999999744649
x23 = 0.99999999999998723244
x24 = 1.00000000000004130030
x25 = 1.00000000000000310862
x26 = 0.99999999999999988898
x27 = 0.99999999999998556710
x28 = 0.99999999999999578115
x29 = 1.00000000000003730349
x30 = 0.99999999999997934985
x31 = 0.99999999999999455991
x32 = 0.99999999999999389377
x33 = 0.99999999999998989697
x34 = 1.00000000000000199840
x35 = 0.99999999999998268052
x36 = 1.00000000000000244249
x37 = 1.00000000000001287859
x38 = 1.00000000000000932587
x39 = 0.99999999999999855671
x40 = 0.99999999999998889777
x41 = 1.00000000000000532907
x42 = 1.00000000000000133227
x43 = 1.00000000000000577316
x44 = 1.00000000000000910383
x45 = 0.99999999999999111822
x46 = 0.99999999999998512301
x47 = 1.00000000000000932587
x48 = 0.99999999999998256950
x49 = 0.99999999999999256151
x50 = 1.00000000000000976996
x51 = 1.00000000000000310862
x52 = 1.00000000000001132427
x53 = 0.99999999999999622524
x54 = 1.00000000000000355271
x55 = 1.00000000000001243450
x56 = 0.99999999999998723244
x57 = 0.99999999999999356071
x58 = 0.99999999999998423483
x59 = 0.99999999999999700240
x60 = 0.99999999999998667732
x61 = 1.00000000000003663736
x62 = 1.00000000000000954792
x63 = 0.99999999999999744649
x64 = 1.00000000000000266454
x65 = 0.99999999999999056310
x66 = 1.00000000000000444089
x67 = 1.00000000000000843769
x68 = 1.00000000000000222045
x69 = 0.99999999999999666933
x70 = 0.99999999999999611422
x71 = 1.00000000000000310862
x72 = 0.99999999999999822364
x73 = 1.00000000000000111022
x74 = 0.99999999999999200639
x75 = 0.99999999999999678035
x76 = 1.00000000000000555112
x77 = 1.00000000000000066613
x78 = 1.00000000000000333067
x79 = 1.00000000000000466294
x80 = 1.00000000000000244249
x81 = 1.00000000000000022204
x82 = 1.00000000000000111022
x83 = 1.00000000000000133227
x84 = 1.00000000000000066613
x85 = 1.00000000000000199840
x86 = 1.00000000000000133227
x87 = 0.99999999999999877875
x88 = 1.00000000000000177636
x89 = 1.00000000000000155431
x90 = 1.00000000000000022204
x91 = 0.99999999999999722444
x92 = 0.99999999999999866773
x93 = 0.99999999999999766853
x94 = 0.99999999999999966693
x95 = 0.99999999999999966693
x96 = 0.99999999999999800160
x97 = 0.99999999999999944489
x98 = 0.99999999999999900080
x99 = 1.00000000000000022204
x100 = 1.00000000000022759572
QR分解得到的数值解与理论解的二范数为:0.00000000000040128401
LU分解的结果:150
x1 = 0.99989966934041296653
x2 = -0.00020066131917406693
x3 = -0.00040132263834813386
x4 = -0.00080264527669626773
x5 = -0.00019114913925122323
x6 = -0.00032790822410788678
x7 = -0.00062584641824514620
x8 = -0.00123920532399779404
x9 = -0.00247841064799558808
x10 = -0.00496570946665997326
x11 = -0.00994659166894962254
x12 = -0.01991274818146848702
x13 = -0.03984807118195021758
x14 = -0.07972071359472465701
x15 = -0.15946724931927747093
x16 = -0.31896102246537338942
x17 = -0.43928991619031876326
x18 = -0.27857983240392059088
x19 = 0.35712604946456849575
x20 = 0.99996638461016118526
x21 = -0.00004455493763089180
x22 = -0.00005509657785296440
x23 = -0.00007411744445562363
x24 = -0.00011473707854747772
x25 = -0.00020033493638038635
x26 = -0.00037624686956405640
x27 = -0.00073251128196716309
x28 = -0.00144895911216735840
x29 = -0.00288522243499755859
x30 = -0.00576055049896240234
x31 = -0.01151347160339355469
x32 = -0.02302122116088867188
x33 = -0.04603862762451171875
x34 = -0.09207534790039062500
x35 = -0.18415069580078125000
x36 = -0.36830139160156250000
x37 = -0.57019042968750000000
x38 = -0.59277343750000000000
x39 = -0.11413574218750000000
x40 = 0.76391601562500000000
x41 = 1.25000000000000000000
x42 = 0.00000000000000000000
x43 = 0.00000000000000000000
x44 = 0.00000000000000000000
x45 = 0.00000000000000000000
x46 = 0.00000000000000000000
x47 = 0.00000000000000000000
x48 = 0.00000000000000000000
x49 = 0.00000000000000000000
x50 = 0.00000000000000000000
x51 = 0.00000000000000000000
x52 = 0.00000000000000000000
x53 = 0.00000000000000000000
x54 = 0.00000000000000000000
x55 = 0.00000000000000000000
x56 = 0.00000000000000000000
x57 = 0.00000000000000000000
x58 = 0.00000000000000000000
x59 = 0.00000000000000000000
x60 = 0.00000000000000000000
x61 = 0.00000000000000000000
x62 = 0.00000000000000000000
x63 = 0.00000000000000000000
x64 = 0.00000000000000000000
x65 = 0.00000000000000000000
x66 = 0.00000000000000000000
x67 = 0.00000000000000000000
x68 = 0.00000000000000000000
x69 = 0.00000000000000000000
x70 = 0.00000000000000000000
x71 = 0.00000000000000000000
x72 = 0.00000000000000000000
x73 = 0.00000000000000000000
x74 = 0.00000000000000000000
x75 = 0.00000000000000000000
x76 = 0.00000000000000000000
x77 = 0.00000000000000000000
x78 = 0.00000000000000000000
x79 = 0.00000000000000000000
x80 = 0.00000000000000000000
x81 = 0.00000000000000000000
x82 = 0.00000000000000000000
x83 = 0.00000000000000000000
x84 = 0.00000000000000000000
x85 = 0.00000000000000000000
x86 = 0.00000000000000000000
x87 = 0.00000000000000000000
x88 = 0.00000000000000000000
x89 = 0.00000000000000000000
x90 = 0.00000000000000000000
x91 = 0.00000000000000000000
x92 = 0.00000000000000000000
x93 = 0.00000000000000000000
x94 = 0.00000000000000000000
x95 = 0.00000000000000000000
x96 = 0.00000000000000000000
x97 = 0.00000000000000000000
x98 = 0.00000000000000000000
x99 = 0.00000000000000000000
x100 = 0.00000000000000000000
x101 = 0.00000000000000000000
x102 = 0.00000000000000000000
x103 = 0.00000000000000000000
x104 = 0.00000000000000000000
x105 = 0.00000000000000000000
x106 = 0.00000000000000000000
x107 = 0.00000000000000000000
x108 = 0.00000000000000000000
x109 = 0.00000000000000000000
x110 = 0.00000000000000000000
x111 = 0.00000000000000000000
x112 = 0.00000000000000000000
x113 = 0.00000000000000000000
x114 = 0.00000000000000000000
x115 = 0.00000000000000000000
x116 = 0.00000000000000000000
x117 = 0.00000000000000000000
x118 = 0.00000000000000000000
x119 = 0.00000000000000000000
x120 = 0.00000000000000000000
x121 = 0.00000000000000000000
x122 = 0.00000000000000000000
x123 = 0.00000000000000000000
x124 = 0.00000000000000000000
x125 = 0.00000000000000000000
x126 = 0.00000000000000000000
x127 = 0.00000000000000000000
x128 = 0.00000000000000000000
x129 = 0.00000000000000000000
x130 = 0.00000000000000000000
x131 = 0.00000000000000000000
x132 = 0.00000000000000000000
x133 = 0.00000000000000000000
x134 = 0.00000000000000000000
x135 = 0.00000000000000000000
x136 = 0.00000000000000000000
x137 = 0.00000000000000000000
x138 = 0.00000000000000000000
x139 = 0.00000000000000000000
x140 = 0.00000000000000000000
x141 = 0.00000000000000000000
x142 = 0.00000000000000000000
x143 = 0.00000000000000000000
x144 = 0.00000000000000000000
x145 = 0.00000000000000000000
x146 = 0.00000000000000000000
x147 = 0.00000000000000000000
x148 = 0.00000000000000000000
x149 = 0.00000000000000000000
x150 = 1.00010033065958703347
LU分解得到的数值解与理论解的二范数为:12.35110654369501048677
QR分解的结果:150
x1 = 0.99999999999940103468
x2 = 0.99999999999997546407
x3 = 1.00000000000002753353
x4 = 0.99999999999997613020
x5 = 1.00000000000002198242
x6 = 1.00000000000002686740
x7 = 1.00000000000003552714
x8 = 0.99999999999999267253
x9 = 0.99999999999998034905
x10 = 1.00000000000010946799
x11 = 0.99999999999985256238
x12 = 0.99999999999998057110
x13 = 1.00000000000002953193
x14 = 1.00000000000005173639
x15 = 0.99999999999997601918
x16 = 0.99999999999998279154
x17 = 1.00000000000004729550
x18 = 0.99999999999997213340
x19 = 0.99999999999994815258
x20 = 0.99999999999996902478
x21 = 0.99999999999997679634
x22 = 0.99999999999992761346
x23 = 1.00000000000019939606
x24 = 0.99999999999993927080
x25 = 0.99999999999997046807
x26 = 1.00000000000001110223
x27 = 0.99999999999997069011
x28 = 0.99999999999996458389
x29 = 1.00000000000009903189
x30 = 1.00000000000001199041
x31 = 0.99999999999998578915
x32 = 0.99999999999996447286
x33 = 1.00000000000000621725
x34 = 0.99999999999999222844
x35 = 0.99999999999993482991
x36 = 0.99999999999992905675
x37 = 1.00000000000016231461
x38 = 0.99999999999998978595
x39 = 0.99999999999999344968
x40 = 1.00000000000000732747
x41 = 1.00000000000002020606
x42 = 0.99999999999997613020
x43 = 1.00000000000001509903
x44 = 1.00000000000000643929
x45 = 1.00000000000000355271
x46 = 0.99999999999997957190
x47 = 0.99999999999997901678
x48 = 0.99999999999998301359
x49 = 1.00000000000000865974
x50 = 1.00000000000000599520
x51 = 1.00000000000001776357
x52 = 0.99999999999998889777
x53 = 1.00000000000000133227
x54 = 1.00000000000002398082
x55 = 0.99999999999998734346
x56 = 1.00000000000000133227
x57 = 0.99999999999999755751
x58 = 0.99999999999999567013
x59 = 0.99999999999999655831
x60 = 0.99999999999996702638
x61 = 1.00000000000002531308
x62 = 0.99999999999999722444
x63 = 0.99999999999997624123
x64 = 1.00000000000004063416
x65 = 1.00000000000001443290
x66 = 0.99999999999997768452
x67 = 1.00000000000002997602
x68 = 1.00000000000000022204
x69 = 1.00000000000000666134
x70 = 1.00000000000001110223
x71 = 0.99999999999997524203
x72 = 1.00000000000001776357
x73 = 0.99999999999995670130
x74 = 1.00000000000001665335
x75 = 0.99999999999996513900
x76 = 1.00000000000004418688
x77 = 1.00000000000002930989
x78 = 0.99999999999997024602
x79 = 0.99999999999996047606
x80 = 1.00000000000000444089
x81 = 1.00000000000000333067
x82 = 0.99999999999999833467
x83 = 1.00000000000000088818
x84 = 1.00000000000001776357
x85 = 0.99999999999998734346
x86 = 0.99999999999999777955
x87 = 0.99999999999999400480
x88 = 1.00000000000001887379
x89 = 0.99999999999998490097
x90 = 1.00000000000000310862
x91 = 0.99999999999999444888
x92 = 1.00000000000001332268
x93 = 0.99999999999999733546
x94 = 0.99999999999999433786
x95 = 1.00000000000001976197
x96 = 1.00000000000001176836
x97 = 1.00000000000003153033
x98 = 0.99999999999994126920
x99 = 1.00000000000000310862
x100 = 0.99999999999999700240
x101 = 1.00000000000000244249
x102 = 1.00000000000000177636
x103 = 1.00000000000000621725
x104 = 0.99999999999999400480
x105 = 0.99999999999997679634
x106 = 1.00000000000000377476
x107 = 1.00000000000001287859
x108 = 1.00000000000001110223
x109 = 1.00000000000000044409
x110 = 1.00000000000000466294
x111 = 0.99999999999999300559
x112 = 1.00000000000001065814
x113 = 1.00000000000000244249
x114 = 0.99999999999999711342
x115 = 1.00000000000000066613
x116 = 1.00000000000000222045
x117 = 0.99999999999998967493
x118 = 1.00000000000000244249
x119 = 1.00000000000000688338
x120 = 0.99999999999999800160
x121 = 1.00000000000000643929
x122 = 0.99999999999998756550
x123 = 0.99999999999999178435
x124 = 1.00000000000000466294
x125 = 0.99999999999999744649
x126 = 0.99999999999999600320
x127 = 0.99999999999999567013
x128 = 1.00000000000000155431
x129 = 1.00000000000000199840
x130 = 1.00000000000000666134
x131 = 0.99999999999999988898
x132 = 0.99999999999999800160
x133 = 1.00000000000000510703
x134 = 0.99999999999999822364
x135 = 0.99999999999999289457
x136 = 0.99999999999999911182
x137 = 0.99999999999999589217
x138 = 0.99999999999999966693
x139 = 1.00000000000000599520
x140 = 1.00000000000000022204
x141 = 1.00000000000000199840
x142 = 0.99999999999999877875
x143 = 1.00000000000000155431
x144 = 0.99999999999999733546
x145 = 1.00000000000000399680
x146 = 1.00000000000000421885
x147 = 1.00000000000000377476
x148 = 0.99999999999999189537
x149 = 0.99999999999999478195
x150 = 0.99999999999948219198
QR分解得到的数值解与理论解的二范数为:0.00000000000089662381
----------第二题的变形----------
LU分解的结果:50
x1 = -0.99999999999999644729
x2 = -0.99999999999999289457
x3 = -0.99999999999998578915
x4 = -0.99999999999997157829
x5 = -0.99999999999994315658
x6 = -0.99999999999988631316
x7 = -0.99999999999977262632
x8 = -0.99999999999954525265
x9 = -0.99999999999909050530
x10 = -0.99999999999818101060
x11 = -0.99999999999636202119
x12 = -0.99999999999272404239
x13 = -0.99999999998544808477
x14 = -0.99999999997089616954
x15 = -0.99999999994179233909
x16 = -0.99999999988358467817
x17 = -0.99999999976716935635
x18 = -0.99999999953433871269
x19 = -0.99999999906867742538
x20 = -0.99999999813735485077
x21 = -0.99999999627470970154
x22 = -0.99999999254941940308
x23 = -0.99999998509883880615
x24 = -0.99999997019767761230
x25 = -0.99999994039535522461
x26 = -0.99999988079071044922
x27 = -0.99999976158142089844
x28 = -0.99999952316284179688
x29 = -0.99999904632568359375
x30 = -0.99999809265136718750
x31 = -0.99999618530273437500
x32 = -0.99999237060546875000
x33 = -0.99998474121093750000
x34 = -0.99996948242187500000
x35 = -0.99993896484375000000
x36 = -0.99987792968750000000
x37 = -0.99975585937500000000
x38 = -0.99951171875000000000
x39 = -0.99902343750000000000
x40 = -0.99804687500000000000
x41 = -0.99609375000000000000
x42 = -0.99218750000000000000
x43 = -0.98437500000000000000
x44 = -0.96875000000000000000
x45 = -0.93750000000000000000
x46 = -0.87500000000000000000
x47 = -0.75000000000000000000
x48 = -0.50000000000000000000
x49 = 0.00000000000000000000
x50 = 2.99999999999999644729
LU分解得到的数值解的残量的二范数为:0.00000000000000000000
QR分解的结果:50
x1 = -1.00000000000001021405
x2 = -1.00000000000000266454
x3 = -0.99999999999998656630
x4 = -0.99999999999997157829
x5 = -0.99999999999995825561
x6 = -0.99999999999986965982
x7 = -0.99999999999977107201
x8 = -0.99999999999953781415
x9 = -0.99999999999909150450
x10 = -0.99999999999816957530
x11 = -0.99999999999635691417
x12 = -0.99999999999273359030
x13 = -0.99999999998544064628
x14 = -0.99999999997089528136
x15 = -0.99999999994180122087
x16 = -0.99999999988358601044
x17 = -0.99999999976716791306
x18 = -0.99999999953434892674
x19 = -0.99999999906867509392
x20 = -0.99999999813735651610
x21 = -0.99999999627470492758
x22 = -0.99999999254941851490
x23 = -0.99999998509883958331
x24 = -0.99999997019768027684
x25 = -0.99999994039534900736
x26 = -0.99999988079070900593
x27 = -0.99999976158142767080
x28 = -0.99999952316283458043
x29 = -0.99999904632568381579
x30 = -0.99999809265136951897
x31 = -0.99999618530272971206
x32 = -0.99999237060546863898
x33 = -0.99998474121094249600
x34 = -0.99996948242187466693
x35 = -0.99993896484374700240
x36 = -0.99987792968750222045
x37 = -0.99975585937500055511
x38 = -0.99951171874999922284
x39 = -0.99902343750000266454
x40 = -0.99804687499999800160
x41 = -0.99609374999999833467
x42 = -0.99218750000000077716
x43 = -0.98437500000000111022
x44 = -0.96874999999999922284
x45 = -0.93750000000000122125
x46 = -0.87499999999999977796
x47 = -0.74999999999999844569
x48 = -0.50000000000000066613
x49 = -0.00000000000000000000
x50 = 2.99999999999998712141
QR分解得到的数值解的残量的二范数为:0.00000000000008387527
LU分解的结果:100
x1 = -1.00000000000000000000
x2 = -1.00000000000000000000
x3 = -1.00000000000000000000
x4 = -1.00000000000000000000
x5 = -1.00000000000000000000
x6 = -1.00000000000000000000
x7 = -1.00000000000000000000
x8 = -1.00000000000000000000
x9 = -1.00000000000000000000
x10 = -1.00000000000000000000
x11 = -1.00000000000000000000
x12 = -1.00000000000000000000
x13 = -1.00000000000000000000
x14 = -1.00000000000000000000
x15 = -1.00000000000000000000
x16 = -1.00000000000000000000
x17 = -1.00000000000000000000
x18 = -1.00000000000000000000
x19 = -1.00000000000000000000
x20 = -1.00000000000000000000
x21 = -1.00000000000000000000
x22 = -1.00000000000000000000
x23 = -1.00000000000000000000
x24 = -1.00000000000000000000
x25 = -1.00000000000000000000
x26 = -1.00000000000000000000
x27 = -1.00000000000000000000
x28 = -1.00000000000000000000
x29 = -1.00000000000000000000
x30 = -1.00000000000000000000
x31 = -1.00000000000000000000
x32 = -1.00000000000000000000
x33 = -1.00000000000000000000
x34 = -1.00000000000000000000
x35 = -1.00000000000000000000
x36 = -1.00000000000000000000
x37 = -1.00000000000000000000
x38 = -1.00000000000000000000
x39 = -1.00000000000000000000
x40 = -1.00000000000000000000
x41 = -1.00000000000000000000
x42 = -1.00000000000000000000
x43 = -1.00000000000000000000
x44 = -1.00000000000000000000
x45 = -1.00000000000000000000
x46 = -1.00000000000000000000
x47 = -1.00000000000000000000
x48 = -1.00000000000000000000
x49 = -1.00000000000000000000
x50 = -1.00000000000000000000
x51 = -1.00000000000000000000
x52 = -1.00000000000000000000
x53 = -2.00000000000000000000
x54 = 0.00000000000000000000
x55 = 0.00000000000000000000
x56 = 0.00000000000000000000
x57 = 0.00000000000000000000
x58 = 0.00000000000000000000
x59 = 0.00000000000000000000
x60 = 0.00000000000000000000
x61 = 0.00000000000000000000
x62 = 0.00000000000000000000
x63 = 0.00000000000000000000
x64 = 0.00000000000000000000
x65 = 0.00000000000000000000
x66 = 0.00000000000000000000
x67 = 0.00000000000000000000
x68 = 0.00000000000000000000
x69 = 0.00000000000000000000
x70 = 0.00000000000000000000
x71 = 0.00000000000000000000
x72 = 0.00000000000000000000
x73 = 0.00000000000000000000
x74 = 0.00000000000000000000
x75 = 0.00000000000000000000
x76 = 0.00000000000000000000
x77 = 0.00000000000000000000
x78 = 0.00000000000000000000
x79 = 0.00000000000000000000
x80 = 0.00000000000000000000
x81 = 0.00000000000000000000
x82 = 0.00000000000000000000
x83 = 0.00000000000000000000
x84 = 0.00000000000000000000
x85 = 0.00000000000000000000
x86 = 0.00000000000000000000
x87 = 0.00000000000000000000
x88 = 0.00000000000000000000
x89 = 0.00000000000000000000
x90 = 0.00000000000000000000
x91 = 0.00000000000000000000
x92 = 0.00000000000000000000
x93 = 0.00000000000000000000
x94 = 0.00000000000000000000
x95 = 0.00000000000000000000
x96 = 0.00000000000000000000
x97 = 0.00000000000000000000
x98 = 0.00000000000000000000
x99 = 0.00000000000000000000
x100 = 3.00000000000000000000
LU分解得到的数值解的残量的二范数为:171.14029332684924611385
QR分解的结果:100
x1 = -1.00000000000030775382
x2 = -0.99999999999996991296
x3 = -1.00000000000001709743
x4 = -0.99999999999999888978
x5 = -1.00000000000001687539
x6 = -1.00000000000000088818
x7 = -0.99999999999998023803
x8 = -1.00000000000001554312
x9 = -0.99999999999998312461
x10 = -1.00000000000000532907
x11 = -0.99999999999999955591
x12 = -0.99999999999998712141
x13 = -1.00000000000000111022
x14 = -1.00000000000002420286
x15 = -0.99999999999999722444
x16 = -0.99999999999999278355
x17 = -0.99999999999999544809
x18 = -1.00000000000000865974
x19 = -0.99999999999999955591
x20 = -1.00000000000001043610
x21 = -1.00000000000000177636
x22 = -0.99999999999999811262
x23 = -0.99999999999999000799
x24 = -0.99999999999997213340
x25 = -1.00000000000000133227
x26 = -0.99999999999997346567
x27 = -1.00000000000004574119
x28 = -1.00000000000001976197
x29 = -1.00000000000003308465
x30 = -0.99999999999995692335
x31 = -1.00000000000000355271
x32 = -1.00000000000001865175
x33 = -0.99999999999999111822
x34 = -0.99999999999999167333
x35 = -0.99999999999998567812
x36 = -1.00000000000000088818
x37 = -1.00000000000000066613
x38 = -1.00000000000000954792
x39 = -0.99999999999998978595
x40 = -0.99999999999999988898
x41 = -1.00000000000000355271
x42 = -1.00000000000000688338
x43 = -1.00000000000000732747
x44 = -1.00000000000000133227
x45 = -1.00000000000000466294