f(x) = 1 - sqrt(4 - x)
piirto1: PolyLine[(-8.7096E0,-1.0544E-1), (-8.7096E0,-6.8645E-2), (-8.6961E0,-1.8051E-2), (-8.6689E0,2.3345E-2), (-8.5875E0,7.3939E-2), (-8.4992E0,1.1993E-1), (-8.4246E0,1.4293E-1), (-8.3703E0,1.5213E-1), (-8.3160E0,1.7053E-1), (-8.2074E0,1.6133E-1), (-8.1260E0,9.6937E-2), (-8.0445E0,2.3345E-2), (-7.9902E0,-2.2650E-2), (-7.9223E0,-8.7043E-2), (-7.9088E0,-1.2384E-1), (-7.8545E0,-1.6063E-1), (-7.8002E0,-1.7903E-1), (-7.7459E0,-1.7903E-1), (-7.6712E0,-1.6983E-1), (-7.5694E0,-1.3304E-1), (-7.4880E0,-1.2384E-1), (-7.4201E0,-9.6242E-2), (-7.3115E0,-7.7844E-2), (-7.2301E0,-3.1849E-2), (-7.1350E0,-4.2520E-3), (-6.9993E0,3.2544E-2), (-6.8704E0,7.3939E-2), (-6.7550E0,1.1993E-1), (-6.6600E0,1.5213E-1), (-6.5514E0,1.2913E-1), (-6.4699E0,6.0141E-2), (-6.3953E0,-8.8515E-3), (-6.3545E0,-6.4045E-2), (-6.2935E0,-1.0544E-1), (-6.1984E0,-1.0544E-1), (-6.0627E0,-1.0544E-1), (-5.9677E0,-8.7043E-2), (-5.8319E0,-6.8645E-2), (-5.5876E0,1.4146E-2), (-5.3976E0,6.0141E-2), (-5.3161E0,9.6937E-2), (-5.2211E0,1.1533E-1), (-5.0786E0,1.7513E-1), (-4.9700E0,2.2112E-1), (-4.8817E0,2.6712E-1), (-4.8139E0,2.8092E-1), (-4.6103E0,6.0141E-2), (-4.4949E0,-5.4846E-2), (-4.4338E0,-1.0544E-1), (-4.3524E0,-1.5144E-1), (-4.2505E0,-1.9743E-1), (-4.1487E0,-2.2503E-1), (-4.0401E0,-2.5262E-1), (-3.8501E0,-2.5262E-1), (-3.7008E0,-2.5262E-1), (-3.6329E0,-2.3423E-1), (-3.4565E0,-1.5144E-1), (-3.2121E0,-1.3451E-2), (-3.0628E0,6.0141E-2), (-2.9678E0,9.6937E-2), (-2.8999E0,1.1533E-1), (-2.7981E0,1.6133E-1), (-2.6963E0,2.0732E-1), (-2.6284E0,2.3492E-1), (-2.5741E0,2.3492E-1), (-2.5198E0,1.9813E-1), (-2.4927E0,1.4293E-1), (-2.4520E0,8.3138E-2), (-2.3977E0,2.3345E-2), (-2.3128E0,-4.3348E-2), (-2.2348E0,-5.9446E-2), (-2.1669E0,-5.9446E-2), (-2.1126E0,-5.0247E-2), (-2.0040E0,4.9469E-3), (-1.8683E0,5.0942E-2), (-1.7190E0,1.2453E-1), (-1.5561E0,1.8893E-1), (-1.4339E0,2.2572E-1), (-1.2982E0,2.7172E-1), (-1.0946E0,3.3611E-1), (-9.8597E-1,3.6371E-1), (-8.7737E-1,3.9130E-1), (-7.3484E-1,4.1430E-1), (-6.6019E-1,4.1890E-1), (-5.9232E-1,3.9130E-1), (-5.7874E-1,3.3611E-1), (-5.2445E-1,2.7172E-1), (-4.4300E-1,1.6133E-1), (-3.8870E-1,1.1533E-1), (-3.3441E-1,6.9340E-2), (-2.5975E-1,3.4745E-4), (-1.7152E-1,-5.9446E-2), (-1.1722E-1,-8.7043E-2), (-6.2925E-2,-1.0544E-1), (-8.6282E-3,-1.2384E-1), (4.5668E-2,-1.3304E-1), (1.6784E-1,-1.3304E-1), (2.6285E-1,-1.3304E-1), (3.4430E-1,-1.2384E-1), (4.5289E-1,-9.6242E-2), (5.2076E-1,-5.9446E-2), (6.1578E-1,-2.2650E-2), (7.5152E-1,1.4146E-2), (8.1939E-1,3.2544E-2), (9.6871E-1,7.8539E-2), (1.1045E0,1.1533E-1), (1.1995E0,1.3373E-1), (1.2809E0,1.7053E-1), (1.3352E0,1.7973E-1), (1.4234E0,2.1192E-1), (1.5252E0,2.3492E-1), (1.6067E0,2.1652E-1), (1.6746E0,1.6133E-1), (1.7017E0,1.1533E-1), (1.7289E0,6.9340E-2), (1.8239E0,-2.2650E-2), (1.8782E0,-7.7844E-2), (1.9325E0,-8.7043E-2), (2.0139E0,-9.6242E-2), (2.0682E0,-9.6242E-2), (2.1497E0,-8.7043E-2), (2.2311E0,-7.7844E-2), (2.3397E0,-2.2650E-2), (2.4347E0,1.4146E-2), (2.5297E0,5.0942E-2), (2.6383E0,1.0614E-1), (2.7605E0,1.6133E-1), (2.8148E0,1.7053E-1), (2.8691E0,1.9813E-1), (2.9505E0,2.0732E-1), (3.0184E0,2.0732E-1), (3.0727E0,2.0732E-1), (3.1677E0,1.4753E-1), (3.2424E0,1.0154E-1), (3.3306E0,4.6342E-2), (3.3917E0,3.4745E-4), (3.4664E0,-2.2650E-2), (3.5342E0,-2.2650E-2), (3.6021E0,-4.2520E-3), (3.6971E0,2.3345E-2), (3.7853E0,6.0141E-2), (3.8668E0,6.4740E-2), (3.9075E0,9.5464E-3), (3.9414E0,-3.1849E-2), (3.9822E0,-5.0247E-2), (NaN,NaN), (4.0772E0,1.4146E-2), (4.0229E0,4.1743E-2), (3.9550E0,6.0141E-2), (3.9007E0,6.9340E-2), (3.8464E0,7.8539E-2), (3.7921E0,7.8539E-2), (3.7243E0,6.9340E-2), (3.6971E0,3.2544E-2), (3.7175E0,-1.8051E-2), (3.8057E0,-4.1048E-2), (3.8600E0,-5.9446E-2), (3.9279E0,-6.8645E-2), (4.0365E0,-6.8645E-2), (4.1383E0,-5.9446E-2), (4.1586E0,-1.3451E-2), (4.1383E0,3.7143E-2), (4.0229E0,5.0942E-2), (3.9550E0,4.1743E-2), (3.8939E0,1.8745E-2), (3.8871E0,-3.1849E-2), (3.9957E0,-3.1849E-2), (4.1247E0,-2.2650E-2), (4.1111E0,1.8745E-2), (4.0365E0,1.4146E-2), (4.0025E0,-4.7947E-2), (4.0772E0,-5.9446E-2), (4.0772E0,-2.2650E-2), (4.0365E0,-1.3451E-2), (NaN,NaN), (-8.0852E0,6.5807E-1), (-8.0581E0,6.0288E-1), (-8.0445E0,5.6608E-1), (-7.9970E0,5.1549E-1), (-7.8816E0,4.0970E-1), (-7.8138E0,3.3611E-1), (-7.7391E0,3.0391E-1), (-7.6373E0,2.9931E-1), (-7.5491E0,3.0391E-1), (-7.4676E0,3.2691E-1), (-7.3726E0,3.8211E-1), (-7.3387E0,4.1890E-1), (-7.2776E0,4.7410E-1), (-7.2436E0,5.1089E-1), (-7.1893E0,5.5689E-1), (-7.1350E0,6.0288E-1), (-7.1079E0,6.4888E-1), (-7.0672E0,6.9487E-1), (-7.0400E0,7.3167E-1), (-6.9857E0,7.7766E-1), (-6.9518E0,8.3745E-1), (-6.8975E0,9.0185E-1), (-6.8500E0,9.6164E-1), (-6.8228E0,1.0214E0), (-6.7821E0,1.0628E0), (-6.7550E0,1.0996E0), (-6.7414E0,1.0536E0), (-6.7414E0,7.2247E-1), (-6.7210E0,6.4428E-1), (-6.6600E0,7.0407E-1), (-6.5921E0,7.5926E-1), (-6.5106E0,8.2366E-1), (-6.4563E0,8.7885E-1), (-6.4020E0,9.2944E-1), (-6.3070E0,9.9384E-1), (-6.2527E0,1.0444E0), (-6.2256E0,1.0812E0), (-6.1984E0,1.1479E0), (-6.2256E0,1.1088E0), (-6.2527E0,1.0628E0), (-6.2935E0,1.0168E0), (-6.3206E0,9.6164E-1), (-6.3342E0,9.0645E-1), (-6.3885E0,8.2826E-1), (-6.4156E0,7.5926E-1), (-6.4428E0,7.1327E-1), (-6.4496E0,6.5348E-1), (-6.4835E0,6.1208E-1), (-6.4835E0,5.7528E-1), (-6.4835E0,5.3849E-1), (-6.5242E0,4.6490E-1), (-6.5378E0,4.0970E-1), (-6.5378E0,3.7291E-1), (-6.5514E0,3.2691E-1), (-6.5785E0,2.9012E-1), (-6.5989E0,2.3952E-1), (-6.5378E0,2.4412E-1), (NaN,NaN), (-6.1441E0,2.3492E-1), (-6.0898E0,2.3492E-1), (-6.0084E0,2.8092E-1), (-5.8998E0,2.9931E-1), (-5.8048E0,3.2691E-1), (-5.7233E0,3.3611E-1), (-5.6419E0,3.9130E-1), (-5.5333E0,4.5570E-1), (-5.4926E0,5.2929E-1), (-5.4451E0,5.8908E-1), (-5.4451E0,6.5348E-1), (-5.5062E0,6.6727E-1), (-5.6012E0,6.6727E-1), (-5.6962E0,6.3508E-1), (-5.7912E0,5.8448E-1), (-5.8591E0,5.5689E-1), (-5.9270E0,5.0169E-1), (-5.9948E0,4.3730E-1), (-6.0084E0,3.9130E-1), (-6.0491E0,3.1771E-1), (-6.0898E0,2.3492E-1), (-6.1034E0,1.8893E-1), (-6.1170E0,1.0614E-1), (-6.1713E0,3.2544E-2), (-6.2256E0,-9.6242E-2), (-6.2392E0,-1.6983E-1), (-6.2935E0,-2.4343E-1), (-6.3477E0,-3.5381E-1), (-6.3749E0,-4.1821E-1), (-6.4088E0,-4.6880E-1), (-6.4631E0,-5.4239E-1), (-6.5310E0,-5.8149E-1), (-6.4971E0,-5.1020E-1), (NaN,NaN), (-6.4971E0,-2.6182E-1), (-6.4156E0,-2.4343E-1), (-6.3613E0,-2.2503E-1), (-6.2527E0,-2.0663E-1), (-6.1034E0,-1.6983E-1), (-5.9812E0,-1.5144E-1), (-5.8998E0,-1.1464E-1), (-5.8048E0,-8.7043E-2), (-5.7098E0,-3.1849E-2), (-5.6147E0,4.9469E-3), (-5.5604E0,3.2544E-2), (NaN,NaN), true]
piirto2: PolyLine[(3.2094E-2,9.9844E-1), (8.3395E-3,9.6394E-1), (1.4069E-1,9.5244E-1), (2.2213E-1,9.5244E-1), (2.2213E-1,9.8924E-1), (1.4747E-1,1.0122E0), (7.2817E-2,1.0168E0), (4.9459E-3,1.0168E0), (-6.2925E-2,1.0076E0), (-6.2925E-2,9.7084E-1), (-8.6282E-3,9.6164E-1), (8.6391E-2,9.6164E-1), (1.8820E-1,9.7544E-1), (1.1354E-1,9.8924E-1), (2.5307E-2,9.7544E-1), (-2.8989E-2,9.1565E-1), (-7.6499E-2,8.7885E-1), (-4.5957E-2,8.1676E-1), (3.2094E-2,8.0526E-1), (1.1354E-1,7.8686E-1), (2.0856E-1,7.5926E-1), (1.5426E-1,7.1327E-1), (7.2817E-2,6.7647E-1), (-4.9351E-2,6.2128E-1), (-1.1043E-1,5.7068E-1), (-1.0365E-1,5.1089E-1), (-3.5776E-2,4.7410E-1), (5.9242E-2,4.4650E-1), (2.0177E-1,4.0050E-1), (2.6285E-1,3.8211E-1), (2.7643E-1,3.4531E-1), (2.4928E-1,3.0851E-1), (1.7462E-1,2.6252E-1), (7.2817E-2,1.7973E-1), (4.9459E-3,1.1533E-1), (-2.2202E-2,6.9340E-2), (-3.5776E-2,1.4146E-2), (-3.5776E-2,-3.1849E-2), (3.2094E-2,-6.8645E-2), (8.6391E-2,-9.6242E-2), (1.4747E-1,-1.4684E-1), (1.5426E-1,-1.9743E-1), (8.6391E-2,-2.5262E-1), (-8.6282E-3,-3.4461E-1), (-4.9351E-2,-3.9061E-1), (-7.6499E-2,-4.2741E-1), (-7.6499E-2,-4.7340E-1), (-7.6499E-2,-5.1020E-1), (-2.2202E-2,-5.3779E-1), (4.5668E-2,-5.5619E-1), (1.4747E-1,-6.0679E-1), (1.6784E-1,-6.7578E-1), (1.5426E-1,-7.4017E-1), (1.1354E-1,-7.7697E-1), (7.2817E-2,-8.2296E-1), (4.5668E-2,-8.6896E-1), (4.5668E-2,-9.1495E-1), (1.1733E-2,-9.6555E-1), (4.9459E-3,-1.0253E0), (4.9459E-3,-1.0805E0), (1.8520E-2,-1.1265E0), (4.5668E-2,-1.1725E0), (8.6391E-2,-1.2093E0), (8.6391E-2,-1.2553E0), (3.2094E-2,-1.3013E0), (-4.9351E-2,-1.3749E0), (-1.0365E-1,-1.4393E0), (-1.3080E-1,-1.4761E0), (-1.5116E-1,-1.5267E0), (-1.5794E-1,-1.5773E0), (-1.4437E-1,-1.6233E0), (-4.9351E-2,-1.6601E0), (4.5668E-2,-1.6877E0), (1.6784E-1,-1.7245E0), (2.2892E-1,-1.7475E0), (1.9498E-1,-1.8073E0), (1.2033E-1,-1.8257E0), (1.1733E-2,-1.8670E0), (-9.0073E-2,-1.9084E0), (-1.6473E-1,-1.9498E0), (-2.3939E-1,-2.0004E0), (-2.3939E-1,-2.0464E0), (-2.5296E-1,-2.0832E0), (-2.5296E-1,-2.1292E0), (-2.2581E-1,-2.1660E0), (-1.7152E-1,-2.2120E0), (-1.3080E-1,-2.2488E0), (-6.2925E-2,-2.2718E0), (-8.6282E-3,-2.2948E0), (-8.6282E-3,-2.3316E0), (-1.5415E-2,-2.3822E0), (-3.5776E-2,-2.4236E0), (-9.0073E-2,-2.4696E0), (-9.0073E-2,-2.5064E0), (-1.0365E-1,-2.5432E0), (-1.0365E-1,-2.5984E0), (-1.0365E-1,-2.6628E0), (-7.6499E-2,-2.6996E0), (-4.9351E-2,-2.7363E0), (3.2094E-2,-2.7823E0), (9.9965E-2,-2.8191E0), (1.5426E-1,-2.8283E0), (2.2892E-1,-2.8651E0), (2.0856E-1,-2.9111E0), (1.2711E-1,-2.9295E0), (7.2817E-2,-2.9387E0), (4.9459E-3,-2.9571E0), (-9.0073E-2,-2.9801E0), (-1.3758E-1,-3.0169E0), (-1.3080E-1,-2.9939E0), (NaN,NaN), (6.1578E-1,-1.6969E0), (6.1578E-1,-1.7521E0), (6.1578E-1,-1.8073E0), (6.1578E-1,-1.8440E0), (6.6329E-1,-1.9314E0), (7.1759E-1,-1.9866E0), (9.4156E-1,-2.0004E0), (1.1180E0,-2.0004E0), (1.2402E0,-1.9912E0), (1.3895E0,-1.9360E0), (1.5388E0,-1.8992E0), (1.6474E0,-1.8532E0), (1.7696E0,-1.7889E0), (1.8510E0,-1.7429E0), (1.9325E0,-1.6877E0), (1.9868E0,-1.6325E0), (2.0818E0,-1.5773E0), (2.1361E0,-1.5221E0), (2.2040E0,-1.4577E0), (2.2854E0,-1.4025E0), (2.3533E0,-1.3473E0), (2.4619E0,-1.2185E0), (2.5705E0,-1.1357E0), (2.5840E0,-1.0989E0), (2.6180E0,-1.0391E0), (2.5569E0,-1.1081E0), (2.5297E0,-1.1725E0), (2.5162E0,-1.2277E0), (2.4619E0,-1.3105E0), (2.4211E0,-1.3749E0), (2.3940E0,-1.4393E0), (2.3397E0,-1.5037E0), (2.2854E0,-1.5865E0), (2.2583E0,-1.6509E0), (2.1904E0,-1.7337E0), (2.1632E0,-1.7981E0), (2.1225E0,-1.8808E0), (2.1089E0,-1.9452E0), (2.0682E0,-2.0096E0), (2.0411E0,-2.0924E0), (2.0275E0,-2.1660E0), (2.0003E0,-2.2028E0), (2.0003E0,-2.2396E0), (1.9868E0,-2.2764E0), (1.9596E0,-2.3132E0), (1.9460E0,-2.2672E0), (NaN,NaN), (1.8918E0,-1.8900E0), (1.9596E0,-1.8716E0), (2.0411E0,-1.8624E0), (2.1497E0,-1.8532E0), (2.2718E0,-1.8532E0), (2.3804E0,-1.8348E0), (2.4890E0,-1.8257E0), (2.5569E0,-1.8165E0), (NaN,NaN), (2.3125E0,-2.2580E0), (2.3668E0,-2.2672E0), (2.4754E0,-2.2672E0), (2.5569E0,-2.2580E0), (2.6926E0,-2.2396E0), (2.8555E0,-2.1936E0), (3.0048E0,-2.1568E0), (3.2084E0,-2.0832E0), (3.3306E0,-2.0372E0), (3.3713E0,-1.9912E0), (3.3849E0,-1.9452E0), (3.4256E0,-1.8808E0), (3.4256E0,-1.7153E0), (3.4053E0,-1.6279E0), (3.3170E0,-1.6233E0), (3.2627E0,-1.6233E0), (3.2084E0,-1.6509E0), (3.1134E0,-1.7153E0), (3.0048E0,-1.7981E0), (2.9913E0,-1.8532E0), (2.9234E0,-1.9176E0), (2.8691E0,-2.0372E0), (2.8284E0,-2.1200E0), (2.8012E0,-2.2028E0), (2.7741E0,-2.2856E0), (2.7333E0,-2.3592E0), (2.7198E0,-2.4328E0), (2.6519E0,-2.5524E0), (2.6112E0,-2.6720E0), (2.5569E0,-2.7455E0), (2.5162E0,-2.8467E0), (2.4754E0,-2.9295E0), (2.4754E0,-2.8927E0), (2.4754E0,-2.8559E0), (2.4890E0,-2.8191E0), (2.4890E0,-2.7731E0), (NaN,NaN), (2.4754E0,-2.6076E0), (2.5162E0,-2.5892E0), (2.5840E0,-2.5708E0), (2.6791E0,-2.5432E0), (2.7741E0,-2.5340E0), (2.8691E0,-2.5156E0), (2.9505E0,-2.4972E0), (3.0048E0,-2.4788E0), (3.0727E0,-2.4788E0), (3.1134E0,-2.4604E0), (NaN,NaN), true]
A = Roots(f)
g: y = -5
B = Intersect(f, g, (-31.999999999999993, -5))
piirto3: PolyLine[(-4.9815E0,-1.4066E-2), (-5.0294E0,-7.0940E-2), (-5.0294E0,-1.4677E-1), (-4.9815E0,-2.4156E-1), (-4.9575E0,-3.4583E-1), (-4.8855E0,-4.3115E-1), (-4.8855E0,-1.0757E0), (-4.8855E0,-1.2463E0), (-4.9335E0,-1.3222E0), (-4.9575E0,-1.4265E0), (-5.0294E0,-1.5118E0), (-5.0294E0,-1.8341E0), (-5.0294E0,-1.9857E0), (-2.6789E0,-1.9857E0), (-2.1512E0,-1.9857E0), (-1.8154E0,-1.9857E0), (-1.6235E0,-1.9668E0), (-1.6235E0,-1.8909E0), (-1.4556E0,-1.7867E0), (-1.3357E0,-1.7013E0), (-1.1438E0,-1.6445E0), (-8.5598E-1,-1.5686E0), (-5.6816E-1,-1.4928E0), (7.7503E-1,-1.4928E0), (1.2308E0,-1.5023E0), (1.4466E0,-1.5686E0), (1.4946E0,-1.6824E0), (1.5905E0,-1.7961E0), (1.4946E0,-1.9194E0), (1.3987E0,-2.0047E0), (1.2547E0,-2.0805E0), (1.0149E0,-2.1374E0), (6.5510E-1,-2.2417E0), (4.3923E-1,-2.2890E0), (2.4735E-1,-2.2890E0), (-1.6490E-2,-2.3175E0), (-8.0801E-1,-2.3270E0), (-1.2397E0,-2.3270E0), (-1.5516E0,-2.2890E0), (-1.7674E0,-2.2132E0), (-1.7674E0,-2.1374E0), (-1.7434E0,-2.0331E0), (-1.6715E0,-1.9099E0), (NaN,NaN), (-5.8450E0,6.1155E-1), (-5.7010E0,5.7364E-1), (-5.5092E0,5.7364E-1), (-5.2693E0,5.7364E-1), (-5.1254E0,5.5468E-1), (NaN,NaN), (-4.5977E0,1.0097E0), (-4.5977E0,8.7697E-1), (-4.5977E0,7.6322E-1), (-4.6937E0,6.8739E-1), (-4.5018E0,6.4947E-1), (-4.1660E0,6.1155E-1), (-3.9741E0,5.9260E-1), (-3.7102E0,5.6416E-1), (-3.5423E0,4.5989E-1), (-3.5423E0,3.8406E-1), (-3.6863E0,3.0822E-1), (-3.9261E0,2.8926E-1), (-4.6937E0,2.8926E-1), (-5.1734E0,2.8926E-1), (-5.4372E0,3.1770E-1), (-5.3173E0,3.8406E-1), (NaN,NaN), (-4.4058E0,1.0286E0), (-4.2139E0,1.0286E0), (-3.5903E0,1.0286E0), (-3.0626E0,1.0286E0), (NaN,NaN), true]