f(x) = x^(3) - (5 * x^(2)) + (2 * x) + 8
g: y = (-25 / 4 * x) + 25 / 2
h: y = (-6 * x) + 12
A, B = Intersect(f, h)
C, D = Intersect(f, g)
piirto1: PolyLine[(1.8184E0,8.9834E0), (1.8184E0,8.7943E0), (1.8184E0,8.0758E0), (1.8184E0,7.6977E0), (1.8099E0,7.4708E0), (1.8056E0,7.2060E0), (1.8056E0,7.0548E0), (NaN,NaN), (1.7502E0,8.1515E0), (1.7800E0,8.1515E0), (1.8162E0,8.1704E0), (1.8589E0,8.2460E0), (1.8823E0,8.3027E0), (1.9078E0,8.3027E0), (1.9292E0,8.3784E0), (1.9547E0,8.4162E0), (NaN,NaN), (2.0101E0,8.1136E0), (1.9931E0,8.1136E0), (1.9718E0,8.0758E0), (1.9505E0,7.9056E0), (1.9292E0,7.6598E0), (1.9206E0,7.4708E0), (1.9121E0,7.3195E0), (1.9121E0,7.1682E0), (1.9292E0,7.1682E0), (1.9716E0,7.3387E0), (1.9908E0,7.4952E0), (2.0181E0,7.5840E0), (2.0198E0,7.4296E0), (2.0186E0,7.2060E0), (NaN,NaN), (2.0655E0,8.1515E0), (2.0655E0,7.9246E0), (2.0696E0,7.5854E0), (2.0709E0,7.4141E0), (2.0897E0,7.4924E0), (2.1014E0,7.6773E0), (2.1142E0,7.8288E0), (2.1561E0,7.6406E0), (2.1976E0,7.5464E0), (2.2061E0,7.6977E0), (NaN,NaN), (2.2913E0,8.3784E0), (2.2785E0,8.3405E0), (2.2657E0,8.1893E0), (2.2487E0,7.9624E0), (2.2423E0,7.7166E0), (2.2402E0,7.5086E0), (2.2727E0,7.5294E0), (2.2941E0,7.6658E0), (2.3108E0,7.8248E0), (2.3211E0,8.0002E0), (2.3254E0,7.8489E0), (2.3254E0,7.6977E0), (2.2998E0,6.6388E0), (2.2870E0,6.1094E0), (2.2743E0,5.8825E0), (2.2573E0,5.4529E0), (2.2497E0,5.2905E0), (2.2444E0,5.4665E0), (2.2444E0,5.8068E0), (2.2444E0,5.9581E0), (2.2615E0,6.2984E0), (2.2700E0,6.4497E0), (2.2828E0,6.6388E0), (2.2998E0,6.7901E0), (2.3169E0,6.9413E0), (2.3488E0,7.1493E0), (2.3680E0,7.2060E0), (NaN,NaN), (2.4149E0,7.8489E0), (2.4340E0,7.9435E0), (2.4575E0,8.0947E0), (2.4575E0,8.3027E0), (2.4404E0,8.3405E0), (2.3977E0,8.1526E0), (2.3856E0,7.9723E0), (2.3780E0,7.7998E0), (2.3780E0,7.6325E0), (2.3946E0,7.4039E0), (2.4149E0,7.2817E0), (2.4319E0,7.2060E0), (2.4489E0,7.2060E0), (2.4756E0,7.3668E0), (2.4958E0,7.6977E0), (NaN,NaN), (2.5384E0,8.5296E0), (2.5384E0,8.3405E0), (2.5342E0,8.1136E0), (2.5342E0,7.9246E0), (2.5209E0,7.6679E0), (2.5123E0,7.5103E0), (2.5157E0,7.6625E0), (2.5298E0,7.9087E0), (2.5482E0,8.1058E0), (2.5725E0,8.2460E0), (2.5810E0,8.0380E0), (2.5874E0,7.7544E0), (2.5895E0,7.5086E0), (2.5895E0,7.3573E0), (2.5981E0,7.6409E0), (2.6109E0,7.8489E0), (NaN,NaN), (2.7003E0,9.6641E0), (2.7046E0,9.5128E0), (2.7046E0,9.2103E0), (2.7046E0,8.9078E0), (2.7003E0,8.7565E0), (2.6976E0,8.4771E0), (2.6952E0,8.3517E0), (2.6939E0,8.2870E0), (2.7046E0,8.6431E0), (NaN,NaN), (2.7600E0,9.5885E0), (2.7600E0,9.3994E0), (2.7600E0,8.7187E0), (2.7577E0,8.1704E0), (2.7571E0,8.0376E0), (2.7546E0,7.9557E0), (2.7344E0,8.0380E0), (2.7216E0,8.2271E0), (NaN,NaN), (2.6705E0,8.8322E0), (2.6918E0,8.8322E0), (2.7088E0,8.8322E0), (2.7387E0,8.7565E0), (2.7898E0,8.7565E0), (2.8281E0,8.7565E0), (NaN,NaN), (2.8409E0,8.6809E0), (2.8452E0,8.4918E0), (2.8473E0,8.2838E0), (2.8494E0,7.8489E0), (2.8494E0,7.5086E0), (2.8537E0,7.3195E0), (2.8665E0,7.5086E0), (2.8707E0,7.7355E0), (2.8750E0,7.8489E0), (NaN,NaN), (2.8622E0,9.2859E0), (2.8622E0,9.2859E0), (NaN,NaN), (1.8482E0,6.1472E0), (1.8290E0,6.0337E0), (1.8056E0,5.8636E0), (1.7971E0,5.6177E0), (1.7886E0,5.4665E0), (1.7886E0,5.2396E0), (1.7907E0,4.8803E0), (1.8013E0,4.7101E0), (1.8141E0,4.6723E0), (NaN,NaN), (1.8439E0,5.5043E0), (1.8631E0,5.6177E0), (1.8951E0,5.7690E0), (1.9204E0,5.6811E0), (1.9209E0,5.5281E0), (1.9164E0,5.3530E0), (1.9036E0,5.1450E0), (1.8908E0,4.9749E0), (1.9206E0,4.9370E0), (1.9462E0,4.8614E0), (NaN,NaN), (1.9632E0,4.8614E0), (1.9632E0,4.7101E0), (1.9760E0,4.8236E0), (NaN,NaN), (2.0442E0,5.5799E0), (2.0293E0,5.4476E0), (2.0186E0,5.2774E0), (2.0186E0,5.1261E0), (2.0293E0,4.9370E0), (2.0485E0,4.8614E0), (2.0698E0,4.8614E0), (2.0911E0,4.8614E0), (2.1038E0,5.0127E0), (2.1081E0,5.1639E0), (2.1081E0,5.3152E0), (2.1060E0,5.5232E0), (2.0911E0,5.6556E0), (NaN,NaN), (2.1081E0,5.9959E0), (2.1251E0,5.8446E0), (2.1507E0,5.5421E0), (2.1677E0,5.3152E0), (2.1805E0,5.2018E0), (2.1805E0,5.0505E0), (2.1891E0,4.9370E0), (2.1891E0,4.7858E0), (2.1848E0,4.6723E0), (NaN,NaN), (2.4063E0,5.4665E0), (2.3893E0,5.5421E0), (2.3619E0,5.4097E0), (2.3862E0,5.0322E0), (2.3938E0,4.8931E0), (2.3723E0,4.8992E0), (2.3382E0,5.0127E0), (2.3169E0,5.1261E0), (2.2892E0,5.1829E0), (2.2998E0,5.2018E0), (NaN,NaN), (2.4617E0,5.5421E0), (2.4511E0,5.3341E0), (2.4489E0,5.1261E0), (2.4553E0,4.9181E0), (2.4830E0,4.8614E0), (2.5001E0,4.8614E0), (2.5310E0,4.9843E0), (2.5540E0,5.0781E0), (2.5491E0,4.9042E0), (2.5464E0,4.7262E0), (2.5682E0,4.7858E0), (2.5810E0,4.9370E0), (NaN,NaN), (2.6407E0,6.0337E0), (2.6449E0,5.9203E0), (2.6449E0,5.6177E0), (2.6425E0,5.1436E0), (2.6442E0,5.0280E0), (2.7046E0,5.1260E0), (2.7170E0,4.9580E0), (2.7301E0,5.0883E0), (NaN,NaN), (2.7898E0,6.0337E0), (2.7941E0,5.8446E0), (2.7983E0,5.7312E0), (2.7983E0,5.5421E0), (2.7983E0,5.3530E0), (2.7941E0,5.1639E0), (2.7898E0,5.0505E0), (2.7770E0,5.0883E0), (2.7728E0,5.2774E0), (NaN,NaN), (2.7557E0,5.6934E0), (2.7728E0,5.6934E0), (2.8111E0,5.6934E0), (2.8452E0,5.6934E0), (NaN,NaN), (2.8239E0,5.3530E0), (2.8494E0,5.3530E0), (2.8878E0,5.3719E0), (2.9176E0,5.5232E0), (2.9134E0,5.7312E0), (2.8835E0,5.6934E0), (2.8601E0,5.5043E0), (2.8409E0,5.3152E0), (2.8367E0,5.1639E0), (2.8367E0,5.0127E0), (2.8452E0,4.8614E0), (2.8729E0,4.7480E0), (2.8963E0,4.7101E0), (2.9261E0,4.6723E0), (2.9602E0,4.6345E0), (2.9858E0,4.6345E0), (2.9900E0,4.7858E0), (2.9900E0,4.9370E0), (NaN,NaN), (2.9858E0,5.2774E0), (3.0028E0,5.2774E0), (3.0241E0,5.3152E0), (3.0412E0,5.3530E0), (3.0502E0,5.5826E0), (3.0484E0,5.7304E0), (3.0284E0,5.8068E0), (3.0028E0,5.7690E0), (2.9900E0,5.5799E0), (2.9730E0,5.3908E0), (2.9645E0,5.2396E0), (2.9645E0,5.0883E0), (2.9645E0,4.9370E0), (2.9687E0,4.7858E0), (2.9922E0,4.6723E0), (3.0346E0,4.7341E0), (3.0480E0,4.8767E0), (3.0582E0,5.0127E0), (NaN,NaN), (3.1434E0,5.9581E0), (3.1434E0,5.8068E0), (3.1434E0,5.6177E0), (3.1306E0,5.2963E0), (3.1221E0,5.1261E0), (3.1051E0,4.9465E0), (3.1093E0,5.1639E0), (3.1221E0,5.3908E0), (3.1477E0,5.5799E0), (3.1690E0,5.6934E0), (3.1860E0,5.6934E0), (3.2052E0,5.5988E0), (3.2159E0,5.3908E0), (3.2393E0,5.1072E0), (3.2499E0,4.8803E0), (3.2585E0,4.7101E0), (NaN,NaN), true]
piirto2: PolyLine[(1.6096E0,9.8910E0), (1.6096E0,9.7019E0), (1.6096E0,9.4372E0), (1.6053E0,9.2859E0), (1.6053E0,9.0212E0), (1.6053E0,8.7565E0), (1.5968E0,8.5674E0), (1.5926E0,8.3784E0), (1.5926E0,8.2271E0), (NaN,NaN), (1.5713E0,9.0969E0), (1.5883E0,9.0969E0), (1.6053E0,9.1347E0), (1.6224E0,9.1725E0), (1.6394E0,9.1725E0), (NaN,NaN), (1.6991E0,9.1347E0), (1.6660E0,9.0469E0), (1.6477E0,8.8852E0), (1.6419E0,8.6938E0), (1.6714E0,8.6242E0), (1.7012E0,8.7943E0), (1.7208E0,8.8829E0), (1.7200E0,8.7156E0), (1.7207E0,8.5505E0), (1.7417E0,8.5296E0), (1.7502E0,8.6431E0), (NaN,NaN), (1.7758E0,8.9834E0), (1.7758E0,8.8322E0), (1.7758E0,8.6809E0), (1.7715E0,8.4918E0), (1.7715E0,8.3405E0), (1.7800E0,8.5296E0), (1.7928E0,8.6809E0), (1.8035E0,8.8700E0), (1.8394E0,8.7524E0), (1.8452E0,8.5992E0), (1.8476E0,8.4322E0), (1.8610E0,8.4540E0), (NaN,NaN), (1.9334E0,8.8322E0), (1.9129E0,8.6238E0), (1.9398E0,8.5863E0), (1.9595E0,8.6645E0), (1.9574E0,8.5030E0), (1.9547E0,8.2649E0), (1.9547E0,8.1136E0), (1.9406E0,7.8047E0), (1.9352E0,7.6175E0), (1.9284E0,7.4509E0), (1.9022E0,7.3748E0), (1.8988E0,7.5803E0), (1.9078E0,7.8746E0), (1.9261E0,8.0177E0), (1.9505E0,8.1136E0), (1.9760E0,8.1136E0), (2.0058E0,8.1136E0), (NaN,NaN), (2.0570E0,8.4540E0), (2.0954E0,8.6238E0), (2.0504E0,8.6785E0), (2.0424E0,8.5314E0), (2.0396E0,8.3611E0), (2.0612E0,8.2271E0), (2.0911E0,8.2649E0), (2.1124E0,8.3784E0), (2.1166E0,8.4918E0), (NaN,NaN), (2.1592E0,8.8700E0), (2.1550E0,8.6620E0), (2.1454E0,8.4634E0), (2.1635E0,8.7187E0), (2.1912E0,8.8511E0), (2.2125E0,8.6998E0), (2.2146E0,8.4918E0), (2.2146E0,8.3405E0), (2.2317E0,8.3784E0), (2.2444E0,8.5674E0), (NaN,NaN), (2.3169E0,9.5507E0), (2.3169E0,9.3616E0), (2.3126E0,9.2103E0), (2.3105E0,8.9267E0), (2.2998E0,8.7565E0), (2.2977E0,8.5485E0), (2.3126E0,8.7187E0), (2.3339E0,8.9078E0), (NaN,NaN), (2.3850E0,9.6263E0), (2.3850E0,9.4372E0), (2.3850E0,9.2859E0), (2.3808E0,9.0591E0), (2.3765E0,8.8700E0), (2.3680E0,8.6809E0), (2.3595E0,8.5674E0), (2.3424E0,8.6053E0), (2.3339E0,8.7187E0), (NaN,NaN), (2.2956E0,9.1725E0), (2.3169E0,9.1725E0), (2.3382E0,9.1347E0), (2.4021E0,9.1347E0), (2.4362E0,9.1347E0), (NaN,NaN), (2.4489E0,8.9456E0), (2.4447E0,8.8322E0), (2.4404E0,8.7187E0), (2.4319E0,8.6053E0), (2.4276E0,8.4918E0), (2.4234E0,8.6431E0), (NaN,NaN), (2.4660E0,9.5885E0), (2.4660E0,9.5885E0), (NaN,NaN), (1.6352E0,7.7355E0), (1.6139E0,7.6977E0), (1.5968E0,7.5464E0), (1.5755E0,7.3195E0), (1.5627E0,7.1304E0), (1.5585E0,6.9413E0), (1.5457E0,6.7144E0), (1.5457E0,6.5253E0), (1.5542E0,6.3174E0), (1.5713E0,6.2228E0), (NaN,NaN), (1.6948E0,7.6598E0), (1.7225E0,7.6220E0), (1.7183E0,7.4140E0), (1.7012E0,7.2249E0), (1.6991E0,7.0548E0), (1.6778E0,7.0548E0), (1.6607E0,7.0548E0), (NaN,NaN), (1.7672E0,7.5464E0), (1.7569E0,7.2630E0), (1.7332E0,6.9224E0), (1.7246E0,6.7522E0), (1.7076E0,6.6010E0), (1.6948E0,6.3930E0), (1.6820E0,6.2228E0), (1.6991E0,6.2606E0), (1.7119E0,6.3363E0), (NaN,NaN), (1.7630E0,6.6766E0), (1.7758E0,6.7144E0), (1.7886E0,6.6766E0), (1.7928E0,6.5632E0), (1.7843E0,6.4497E0), (1.7758E0,6.3363E0), (1.7886E0,6.2228E0), (1.8056E0,6.1850E0), (1.8226E0,6.1850E0), (NaN,NaN), (1.8823E0,6.2228E0), (1.8823E0,6.0337E0), (1.8823E0,5.8825E0), (1.8780E0,5.7690E0), (NaN,NaN), true]
piirto3: PolyLine[(1.9760E0,7.2439E0), (1.9931E0,7.2817E0), (2.0144E0,7.2817E0), (2.0432E0,7.2518E0), (2.0566E0,7.0813E0), (2.0662E0,6.8406E0), (2.0625E0,6.5010E0), (2.0271E0,6.4119E0), (2.0101E0,6.4119E0), (NaN,NaN), (2.0953E0,6.3363E0), (2.0953E0,6.3363E0), (NaN,NaN), (2.1124E0,7.0170E0), (2.1251E0,7.1304E0), (2.1379E0,7.2060E0), (2.1464E0,7.3195E0), (2.1507E0,7.2060E0), (2.1507E0,6.8657E0), (2.1507E0,6.6010E0), (2.1550E0,6.4875E0), (2.1635E0,6.6010E0), (NaN,NaN), (2.1763E0,7.2439E0), (2.1891E0,7.3195E0), (2.2104E0,7.3195E0), (2.2274E0,7.3573E0), (2.2492E0,7.2713E0), (2.2474E0,7.1181E0), (2.2551E0,6.9536E0), (2.2601E0,6.7708E0), (2.2380E0,6.5632E0), (2.2189E0,6.4875E0), (2.2018E0,6.4875E0), (NaN,NaN), (2.2828E0,7.5464E0), (2.3020E0,7.4518E0), (2.3297E0,7.2817E0), (2.3382E0,7.0926E0), (2.3552E0,6.9035E0), (2.3552E0,6.7522E0), (2.3510E0,6.5064E0), (2.3382E0,6.3363E0), (NaN,NaN), (2.2700E0,5.2774E0), (2.2530E0,5.3152E0), (2.2317E0,5.2585E0), (2.2317E0,5.0883E0), (2.2530E0,4.9181E0), (2.2679E0,4.7669E0), (2.2359E0,4.6723E0), (2.1869E0,4.6723E0), (2.2189E0,4.7101E0), (NaN,NaN), (2.3211E0,5.2774E0), (2.3188E0,5.2162E0), (2.3183E0,5.1268E0), (2.3218E0,5.0491E0), (2.3573E0,4.8425E0), (2.3818E0,5.0032E0), (2.3850E0,4.8236E0), (2.3893E0,4.6723E0), (2.3936E0,4.5211E0), (2.4127E0,4.7291E0), (2.4276E0,4.9749E0), (2.4362E0,5.1639E0), (NaN,NaN), (2.4660E0,6.1850E0), (2.4660E0,6.0337E0), (2.4662E0,5.0355E0), (2.4873E0,5.1639E0), (2.5043E0,5.1261E0), (2.5086E0,4.9370E0), (2.5171E0,4.7480E0), (2.5171E0,4.9370E0), (2.5214E0,5.1639E0), (NaN,NaN), (2.5555E0,5.6934E0), (2.5597E0,5.5799E0), (2.5640E0,5.4665E0), (2.5640E0,5.0127E0), (2.5640E0,5.1639E0), (NaN,NaN), (2.5597E0,5.4665E0), (2.5725E0,5.5043E0), (2.5981E0,5.5043E0), (2.6236E0,5.5043E0), (NaN,NaN), (2.6364E0,5.2396E0), (2.6598E0,5.2585E0), (2.6812E0,5.4098E0), (2.6620E0,5.5043E0), (2.6364E0,5.3341E0), (2.6279E0,5.1261E0), (2.6385E0,4.9370E0), (2.6620E0,4.8992E0), (2.6833E0,4.8992E0), (2.7067E0,4.9938E0), (2.7174E0,5.1639E0), (NaN,NaN), (2.7301E0,5.2396E0), (2.7472E0,5.2396E0), (2.7637E0,5.4712E0), (2.7259E0,5.3719E0), (2.7046E0,5.2396E0), (2.7110E0,5.0505E0), (2.7301E0,4.9749E0), (2.7515E0,4.9749E0), (2.7685E0,5.0127E0), (2.7855E0,5.1639E0), (NaN,NaN), (2.8154E0,5.3530E0), (2.8047E0,5.0505E0), (2.8154E0,5.1639E0), (2.8367E0,5.2396E0), (2.8622E0,5.3152E0), (2.8857E0,5.2207E0), (2.8921E0,5.0505E0), (2.8921E0,4.8992E0), (2.8921E0,4.7480E0), (NaN,NaN), true]
piirto4: PolyLine[(5.5723E-1,1.1554E0), (5.5723E-1,1.1554E0), (NaN,NaN), true]