(bobby@Desktop)(0)(12:18 AM Fri Dec 23)> (~/Cpp Projects/FactoringTool/bin/Debug)(1 files, 52Kb)> ./FactoringTool The polynomial you entered has coefficients: A: 1 B: 8 C: 15 Does this look correct? 1. Yes 2. No 2 Please enter the coefficient for x^2: 1 Please enter the coefficient for x: 2 Please enter the constant term (c): 15 The polynomial you entered has coefficients: A: 1 B: 2 C: 15 Factoring C (15)...... Format of results: Factor on top Divisor on bottom 15 5 3 1 1 3 5 15 With a total of 4 possible factors to use. Testing these factors....... in (x+a)(x+b) a is 5 and b is 3 So your final form is (x5)(x+3) 
(bobby@Desktop)(0)(12:20 AM Fri Dec 23)> (~/Cpp Projects/FactoringTool/bin/Debug)(1 files, 52Kb)> ./FactoringTool The polynomial you entered has coefficients: A: 1 B: 8 C: 15 Does this look correct? 1. Yes 2. No 2 Please enter the coefficient for x^2: 1 Please enter the coefficient for x: 4 Please enter the constant term (c): 60 The polynomial you entered has coefficients: A: 1 B: 4 C: 60 Factoring C (60)...... Format of results: Factor on top Divisor on bottom 15 30 20 15 12 10 6 5 4 1 2 3 4 5 6 10 12 15 With a total of 9 possible factors to use. Testing these factors....... in (x+a)(x+b) a is 10 and b is 6 So your final form is (x10)(x+6) *** glibc detected *** ./FactoringTool: free(): invalid next size (fast): 0x00000069a6ae2230 *** ======= Backtrace: ========= /lib64/libc.so.6(+0x76115)[0x318c1b54115] /lib64/libc.so.6(cfree+0x6c)[0x318c1b5904c] ./FactoringTool(+0x1504)[0x69a68d4504] ./FactoringTool(main+0x702)[0x69a68d4ce2] /lib64/libc.so.6(__libc_start_main+0xfd)[0x318c1b0020d] ./FactoringTool(+0xbb9)[0x69a68d3bb9] ======= Memory map: ======== 69a68d300069a68d6000 rxp 00000000 08:03 15467796 /home/bobby/Cpp Projects/FactoringTool/bin/Debug/FactoringTool 69a6ad500069a6ad6000 rp 00002000 08:03 15467796 /home/bobby/Cpp Projects/FactoringTool/bin/Debug/FactoringTool 69a6ad600069a6ad7000 rwp 00003000 08:03 15467796 /home/bobby/Cpp Projects/FactoringTool/bin/Debug/FactoringTool 69a6ad700069a6b04000 rwp 00000000 00:00 0 [heap] 318bc000000318bc021000 rwp 00000000 00:00 0 318bc021000318c0000000 p 00000000 00:00 0 318c1ade000318c1c63000 rxp 00000000 08:03 12871890 /lib64/libc2.14.1.so 318c1c63000318c1e62000 p 00185000 08:03 12871890 /lib64/libc2.14.1.so 318c1e62000318c1e66000 rp 00184000 08:03 12871890 /lib64/libc2.14.1.so 318c1e66000318c1e67000 rwp 00188000 08:03 12871890 /lib64/libc2.14.1.so 318c1e67000318c1e6c000 rwp 00000000 00:00 0 318c1e6c000318c1e81000 rxp 00000000 08:03 8913988 /lib64/libgcc_s.so.1 318c1e81000318c2080000 p 00015000 08:03 8913988 /lib64/libgcc_s.so.1 318c2080000318c2081000 rp 00014000 08:03 8913988 /lib64/libgcc_s.so.1 318c2081000318c2082000 rwp 00015000 08:03 8913988 /lib64/libgcc_s.so.1 318c2082000318c2103000 rxp 00000000 08:03 12865885 /lib64/libm2.14.1.so 318c2103000318c2302000 p 00081000 08:03 12865885 /lib64/libm2.14.1.so 318c2302000318c2303000 rp 00080000 08:03 12865885 /lib64/libm2.14.1.so 318c2303000318c2304000 rwp 00081000 08:03 12865885 /lib64/libm2.14.1.so 318c2304000318c2402000 rxp 00000000 08:03 11966648 /usr/lib64/gcc/x86_64pclinuxgnu/4.5.3/libstdc++.so.6.0.14 318c2402000318c2602000 p 000fe000 08:03 11966648 /usr/lib64/gcc/x86_64pclinuxgnu/4.5.3/libstdc++.so.6.0.14 318c2602000318c260b000 rp 000fe000 08:03 11966648 /usr/lib64/gcc/x86_64pclinuxgnu/4.5.3/libstdc++.so.6.0.14 318c260b000318c260c000 rwp 00107000 08:03 11966648 /usr/lib64/gcc/x86_64pclinuxgnu/4.5.3/libstdc++.so.6.0.14 318c260c000318c2620000 rwp 00000000 00:00 0 318c2620000318c2641000 rxp 00000000 08:03 12872301 /lib64/ld2.14.1.so 318c2808000318c280d000 rwp 00000000 00:00 0 318c283a000318c283e000 rwp 00000000 00:00 0 318c283e000318c2840000 rxp 00000000 00:00 0 [vdso] 318c2840000318c2841000 rp 00020000 08:03 12872301 /lib64/ld2.14.1.so 318c2841000318c2842000 rwp 00021000 08:03 12872301 /lib64/ld2.14.1.so 318c2842000318c2843000 rwp 00000000 00:00 0 3a0ffb7f0003a0ffba1000 rwp 00000000 00:00 0 [stack] ffffffffff600000ffffffffff601000 rp 00000000 00:00 0 [vsyscall] Aborted 










(bobby@Desktop)(0)(12:20 AM Fri Dec 23)> (~/Cpp Projects/FactoringTool/bin/Debug)(1 files, 52Kb)> ./FactoringTool The polynomial you entered has coefficients: A: 1 B: 8 C: 15 Does this look correct? 1. Yes 2. No 2 Please enter the coefficient for x^2: 1 Please enter the coefficient for x: 4 Please enter the constant term (c): 60 The polynomial you entered has coefficients: A: 1 B: 4 C: 60 Factoring C (60)...... Format of results: Factor on top Divisor on bottom 60 30 20 15 12 10 6 5 4 1 2 3 4 5 6 10 12 15 With a total of 9 possible factors to use. Testing these factors....... in (x+a)(x+b) a is 10 and b is 6 So your final form is (x10)(x+6) 