// File: /workspace/github_cpp_makefile_star2_O2/PeterDenton[P]Nu-Pert/src/Figures.cpp
// Function: Figures::Eigenvalue_Precision()
void Eigenvalue_Precision()
{
	double a;
	std::ofstream data[2];
	data[0].open("data/Eigenvalue_Precision_NO.txt");
	data[1].open("data/Eigenvalue_Precision_IO.txt");

	double l10, l20, l30;
	double l12, l22, l32;
	double M1sq, M2sq, M3sq;
	int order;
	for (int i = 0; i < 1; i++) // only NO for now
	{
		set_ordering(i == 0);
		for (double Y = -40; Y <= 40; Y += 0.011)
		{
			a = Y * Y_to_a;

			order = 0;
			l10 = Check::l1(a, order);
			l20 = Check::l2(a, order);
			l30 = Check::l3(a, order);

			order = 2;
			l12 = Check::l1(a, order);
			l22 = Check::l2(a, order);
			l32 = Check::l3(a, order);

			M1sq = Exact::M1sq(a);
			M2sq = Exact::M2sq(a);
			M3sq = Exact::M3sq(a);

			data[i] << Y;
			data[i] << " " << std::abs(1 - l10 / M1sq);
			data[i] << " " << std::abs(1 - l20 / M2sq);
			data[i] << " " << std::abs(1 - l30 / M3sq);
			data[i] << " " << std::abs(1 - l12 / M1sq);
			data[i] << " " << std::abs(1 - l22 / M2sq);
			data[i] << " " << std::abs(1 - l32 / M3sq);
			data[i] << std::endl;
		}
		data[i].close();
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x460, %rsp            # imm = 0x460
leaq 0x60(%rsp), %rdi
callq 0x2250
leaq 0x260(%rsp), %rbx
movq %rbx, %rdi
callq 0x2250
leaq 0x2495(%rip), %rsi      # 0xdf6b
leaq 0x60(%rsp), %rdi
pushq $0x10
popq %rdx
callq 0x2040
leaq 0x24a2(%rip), %rsi      # 0xdf8c
pushq $0x10
popq %rdx
movq %rbx, %rdi
callq 0x2040
pushq $0x1
popq %rdi
callq 0x37e3
leaq 0x182c(%rip), %rax      # 0xd330
movsd (%rax), %xmm0
movsd %xmm0, 0x28(%rsp)
movsd 0x22ea(%rip), %xmm0     # 0xde00
pushq $0x2
popq %rbx
leaq 0x60(%rsp), %r14
leaq 0x2109(%rip), %r15      # 0xdc2e
movsd 0x22db(%rip), %xmm1     # 0xde08
ucomisd %xmm0, %xmm1
jb 0xbd43
movsd %xmm0, 0x20(%rsp)
mulsd 0x28(%rsp), %xmm0
movsd %xmm0, 0x8(%rsp)
xorl %edi, %edi
callq 0x250c
movsd %xmm0, 0x58(%rsp)
movsd 0x8(%rsp), %xmm0
xorl %edi, %edi
callq 0x26bf
movsd %xmm0, 0x50(%rsp)
movsd 0x8(%rsp), %xmm0
xorl %edi, %edi
callq 0x286e
movsd %xmm0, 0x48(%rsp)
movsd 0x8(%rsp), %xmm0
movl %ebx, %edi
callq 0x250c
movsd %xmm0, 0x40(%rsp)
movsd 0x8(%rsp), %xmm0
movl %ebx, %edi
callq 0x26bf
movsd %xmm0, 0x38(%rsp)
movsd 0x8(%rsp), %xmm0
movl %ebx, %edi
callq 0x286e
movsd %xmm0, 0x30(%rsp)
movsd 0x8(%rsp), %xmm0
callq 0x424f
movsd %xmm0, 0x18(%rsp)
movsd 0x8(%rsp), %xmm0
callq 0x4264
movsd %xmm0, 0x10(%rsp)
movsd 0x8(%rsp), %xmm0
callq 0x4279
movsd %xmm0, 0x8(%rsp)
movq %r14, %rdi
movsd 0x20(%rsp), %xmm0
callq 0x2230
movq %r14, %rdi
movq %r15, %rsi
callq 0x2190
movsd 0x58(%rsp), %xmm1
divsd 0x18(%rsp), %xmm1
movsd 0x1403(%rip), %xmm0     # 0xd018
subsd %xmm1, %xmm0
andpd 0x189f(%rip), %xmm0     # 0xd4c0
movq %rax, %rdi
callq 0x2230
movq %r14, %rdi
movq %r15, %rsi
callq 0x2190
movsd 0x50(%rsp), %xmm1
divsd 0x10(%rsp), %xmm1
movsd 0x13d0(%rip), %xmm0     # 0xd018
subsd %xmm1, %xmm0
andpd 0x186c(%rip), %xmm0     # 0xd4c0
movq %rax, %rdi
callq 0x2230
movq %r14, %rdi
movq %r15, %rsi
callq 0x2190
movsd 0x48(%rsp), %xmm1
divsd 0x8(%rsp), %xmm1
movsd 0x139d(%rip), %xmm0     # 0xd018
subsd %xmm1, %xmm0
andpd 0x1839(%rip), %xmm0     # 0xd4c0
movq %rax, %rdi
callq 0x2230
movq %r14, %rdi
movq %r15, %rsi
callq 0x2190
movsd 0x40(%rsp), %xmm1
divsd 0x18(%rsp), %xmm1
movsd 0x136a(%rip), %xmm0     # 0xd018
subsd %xmm1, %xmm0
andpd 0x1806(%rip), %xmm0     # 0xd4c0
movq %rax, %rdi
callq 0x2230
movq %r14, %rdi
movq %r15, %rsi
callq 0x2190
movsd 0x38(%rsp), %xmm1
divsd 0x10(%rsp), %xmm1
movsd 0x1337(%rip), %xmm0     # 0xd018
subsd %xmm1, %xmm0
andpd 0x17d3(%rip), %xmm0     # 0xd4c0
movq %rax, %rdi
callq 0x2230
movq %r14, %rdi
movq %r15, %rsi
callq 0x2190
movsd 0x30(%rsp), %xmm1
divsd 0x8(%rsp), %xmm1
movsd 0x1304(%rip), %xmm0     # 0xd018
subsd %xmm1, %xmm0
andpd 0x17a0(%rip), %xmm0     # 0xd4c0
movq %rax, %rdi
callq 0x2230
movq %r14, %rdi
callq 0x20d0
movsd 0x20(%rsp), %xmm0
addsd 0x20fa(%rip), %xmm0     # 0xde38
jmp 0xbb25
leaq 0x60(%rsp), %rdi
callq 0x21f0
movl $0x200, %ebx            # imm = 0x200
movq $-0x200, %r14           # imm = 0xFE00
leaq (%rsp,%rbx), %rdi
addq $0x60, %rdi
callq 0x2200
addq %r14, %rbx
cmpq %r14, %rbx
jne 0xbd59
addq $0x460, %rsp            # imm = 0x460
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
leaq 0x60(%rsp), %rdi
callq 0x2200
jmp 0xbdb3
jmp 0xbd8e
jmp 0xbd8e
movq %rax, %rbx
movl $0x200, %r14d           # imm = 0x200
movq $-0x200, %r15           # imm = 0xFE00
leaq (%rsp,%r14), %rdi
addq $0x60, %rdi
callq 0x2200
addq %r15, %r14
cmpq %r15, %r14
jne 0xbd9e
movq %rbx, %rdi
callq 0x2280