Esimerkki

f(x) = (-x^(2)) + 4
piirto1: PolyLine[(-1.3482E0,-2.6698E-1), (-1.3482E0,-1.9641E-1), (-1.3513E0,-9.9377E-2), (-1.3670E0,6.4772E-3), (-1.4078E0,1.0351E-1), (-1.4454E0,1.5644E-1), (-1.5113E0,1.7408E-1), (-1.5647E0,1.6526E-1), (-1.5992E0,1.1233E-1), (-1.6180E0,3.2941E-2), (-1.6306E0,-3.7629E-2), (-1.6368E0,-1.2584E-1), (-1.6368E0,-2.3170E-1), (-1.6337E0,-3.6401E-1), (-1.6149E0,-4.6987E-1), (-1.5804E0,-5.4044E-1), (-1.4988E0,-5.6690E-1), (-1.4392E0,-5.4926E-1), (-1.4047E0,-4.6987E-1), (-1.3827E0,-3.6401E-1), (-1.3670E0,-2.8462E-1), (�,�), (-4.1319E-1,8.5868E-2), (-4.4143E-1,1.4762E-1), (-4.7908E-1,2.0054E-1), (-5.2614E-1,2.0937E-1), (-5.7321E-1,2.0054E-1), (-6.1086E-1,1.3880E-1), (-6.3282E-1,6.8226E-2), (-6.4223E-1,-2.8808E-2), (-6.4537E-1,-1.2584E-1), (-6.4537E-1,-2.1405E-1), (-6.3282E-1,-3.1109E-1), (-6.1086E-1,-4.0812E-1), (-5.7948E-1,-4.8751E-1), (-5.4183E-1,-5.3162E-1), (-5.0104E-1,-5.4926E-1), (-4.7594E-1,-5.6690E-1), (-4.3202E-1,-5.6690E-1), (-3.8496E-1,-5.5808E-1), (-3.5986E-1,-4.6987E-1), (-3.5044E-1,-3.7284E-1), (-3.5044E-1,-2.4934E-1), (-3.5044E-1,-1.4348E-1), (-3.5986E-1,-2.8808E-2), (-3.8496E-1,6.8226E-2), (-4.1319E-1,1.2115E-1), (�,�), (5.6571E-1,1.0351E-1), (5.3748E-1,1.4762E-1), (5.0924E-1,1.7408E-1), (4.6531E-1,1.7408E-1), (4.1825E-1,1.5644E-1), (3.9629E-1,5.0583E-2), (3.8688E-1,-6.4093E-2), (3.8374E-1,-1.6113E-1), (3.8688E-1,-2.5816E-1), (4.0884E-1,-3.5519E-1), (4.2766E-1,-4.4341E-1), (4.6531E-1,-4.7869E-1), (5.0924E-1,-5.1397E-1), (5.5316E-1,-5.1397E-1), (6.0023E-1,-4.8751E-1), (6.2219E-1,-3.8166E-1), (6.2846E-1,-2.4934E-1), (6.2846E-1,-1.4348E-1), (6.1905E-1,-2.8808E-2), (5.9709E-1,8.5868E-2), (5.6885E-1,1.7408E-1), (5.3434E-1,2.2701E-1), (5.0924E-1,2.6229E-1), (4.9041E-1,2.9758E-1), (�,�), (1.4944E0,8.5868E-2), (1.4662E0,1.2997E-1), (1.4379E0,1.5644E-1), (1.4128E0,1.5644E-1), (1.3674E0,1.1674E-1), (1.3501E0,1.5298E-2), (1.3501E0,-9.0556E-2), (1.3532E0,-2.4052E-1), (1.3783E0,-3.3755E-1), (1.4160E0,-4.2576E-1), (1.4442E0,-4.6105E-1), (1.4693E0,-4.7869E-1), (1.4944E0,-5.1397E-1), (1.5383E0,-5.1397E-1), (1.5854E0,-5.0515E-1), (1.6105E0,-4.1694E-1), (1.6136E0,-3.1991E-1), (1.6105E0,-2.2287E-1), (1.6011E0,-1.4348E-1), (1.5697E0,-1.9986E-2), (1.5415E0,8.5868E-2), (1.5038E0,1.3880E-1), (1.4693E0,1.5644E-1), (�,�), true]
piirto2: PolyLine[(-1.4988E0,3.2941E-2), (-1.5051E0,8.5868E-2), (-1.5051E0,5.9750E-1), (-1.5019E0,7.6510E-1), (-1.4925E0,8.4449E-1), (-1.4925E0,1.2150E0), (-1.4956E0,1.3649E0), (-1.4988E0,1.5502E0), (-1.4988E0,1.6737E0), (�,�), true]
piirto3: PolyLine[(-4.9477E-1,-1.9986E-2), (-5.0104E-1,3.2941E-2), (-5.0104E-1,2.0937E-1), (-5.0418E-1,3.5933E-1), (-5.0732E-1,7.5628E-1), (-5.0418E-1,9.0624E-1), (-5.0104E-1,1.0033E0), (-4.9791E-1,1.1003E0), (-4.8849E-1,1.1797E0), (-4.8536E-1,1.2767E0), (-4.7908E-1,1.4002E0), (-4.7594E-1,1.6560E0), (-4.7908E-1,1.8060E0), (-4.8536E-1,1.9295E0), (-4.9477E-1,2.0089E0), (-4.9791E-1,2.1059E0), (-5.0104E-1,2.7146E0), (-5.0104E-1,2.8381E0), (-5.0732E-1,3.6320E0), (-5.0732E-1,3.7555E0), (�,�), true]
piirto4: PolyLine[(-4.9241E-2,1.7443E0), (-2.4141E-2,1.7443E0), (9.5945E-4,1.7443E0), (2.6060E-2,1.7443E0), (�,�), (7.6260E-2,1.5855E0), (9.1948E-2,1.6560E0), (1.1705E-1,1.7884E0), (1.3274E-1,1.8854E0), (1.3901E-1,1.9913E0), (1.5470E-1,2.1412E0), (1.5313E-1,2.2691E0), (1.2960E-1,2.1941E0), (1.1391E-1,2.0971E0), (1.1391E-1,2.0089E0), (1.0764E-1,1.9383E0), (1.0136E-1,1.8678E0), (9.8223E-2,1.7707E0), (8.8810E-2,1.6737E0), (8.8810E-2,1.4973E0), (8.2535E-2,1.3297E0), (7.6260E-2,1.2326E0), (8.2535E-2,1.2856E0), (�,�), (6.9985E-2,1.3914E0), (8.2535E-2,1.4443E0), (1.0136E-1,1.4796E0), (�,�), (2.2686E-1,1.9913E0), (2.2059E-1,1.9383E0), (2.0804E-1,1.8678E0), (2.0176E-1,1.8148E0), (1.8921E-1,1.7619E0), (1.8921E-1,1.6560E0), (1.8921E-1,1.5502E0), (2.0176E-1,1.4973E0), (�,�), (2.5824E-1,1.7795E0), (2.8334E-1,1.7795E0), (�,�), true]
piirto5: PolyLine[(3.1471E-1,2.1147E0), (3.3981E-1,2.1147E0), (3.6491E-1,2.1147E0), (3.9629E-1,2.0883E0), (3.9943E-1,1.9913E0), (4.1825E-1,1.8942E0), (3.9001E-1,1.8678E0), (�,�), (3.3354E-1,1.6913E0), (3.5864E-1,1.6913E0), (3.7746E-1,1.7090E0), (4.0256E-1,1.7090E0), (4.2139E-1,1.7266E0), (4.4649E-1,1.7266E0), (�,�), (3.7119E-1,1.5678E0), (3.9629E-1,1.5678E0), (4.1511E-1,1.5502E0), (4.0884E-1,1.4973E0), (3.9629E-1,1.4443E0), (3.7746E-1,1.4267E0), (3.5864E-1,1.3914E0), (3.8374E-1,1.3914E0), (4.0884E-1,1.3914E0), (�,�), (4.9669E-1,2.2030E0), (5.1238E-1,2.1236E0), (5.2806E-1,2.0442E0), (5.3748E-1,1.9471E0), (5.5316E-1,1.8678E0), (5.5316E-1,1.6384E0), (5.5003E-1,1.4532E0), (5.2806E-1,1.3297E0), (5.0924E-1,1.2503E0), (�,�), (-3.0416E-2,3.7379E0), (-5.3156E-3,3.7379E0), (2.6060E-2,3.7379E0), (5.1160E-2,3.7379E0), (�,�), (7.6260E-2,3.2968E0), (1.1077E-1,3.3056E0), (1.3901E-1,3.3497E0), (1.7352E-1,3.4379E0), (2.0176E-1,3.5085E0), (2.0804E-1,3.5791E0), (2.0490E-1,3.6761E0), (1.6254E-1,3.7158E0), (1.3901E-1,3.6144E0), (1.3587E-1,3.4997E0), (1.3274E-1,3.4026E0), (1.2646E-1,3.3321E0), (1.2646E-1,3.2615E0), (1.2646E-1,3.1733E0), (1.2019E-1,3.1027E0), (1.1705E-1,3.0057E0), (1.1391E-1,2.9087E0), (�,�), (9.5085E-2,3.0145E0), (1.1391E-1,3.0498E0), (1.3274E-1,3.0851E0), (1.5156E-1,3.1204E0), (�,�), (3.0216E-1,3.6849E0), (2.8961E-1,3.6320E0), (2.6451E-1,3.5438E0), (2.4569E-1,3.4556E0), (2.4569E-1,3.3850E0), (2.3941E-1,3.3321E0), (2.3941E-1,3.2439E0), (2.3941E-1,3.1557E0), (2.4569E-1,3.1027E0), (�,�), (2.9589E-1,3.4026E0), (3.2099E-1,3.4026E0), (�,�), (3.8374E-1,3.6673E0), (3.9629E-1,3.6144E0), (3.9629E-1,3.5438E0), (�,�), (3.5864E-1,3.4203E0), (3.8374E-1,3.4379E0), (4.2139E-1,3.4379E0), (4.5904E-1,3.4379E0), (�,�), (3.7746E-1,3.3497E0), (4.0256E-1,3.3497E0), (4.2139E-1,3.2968E0), (4.2139E-1,3.2262E0), (4.0256E-1,3.1909E0), (4.2139E-1,3.1557E0), (4.4021E-1,3.1380E0), (4.6531E-1,3.1380E0), (�,�), (4.7159E-1,3.7026E0), (5.0296E-1,3.6761E0), (5.3120E-1,3.5703E0), (5.4689E-1,3.4909E0), (5.4689E-1,3.3850E0), (5.4375E-1,3.2350E0), (5.2806E-1,3.1557E0), (5.0924E-1,3.1204E0), (�,�), true]
piirto6: PolyLine[(-1.8753E0,1.7443E0), (-1.8878E0,1.6913E0), (-1.9318E0,1.6208E0), (-1.9631E0,1.5502E0), (-1.9820E0,1.5149E0), (-1.9882E0,1.4620E0), (�,�), (-1.6933E0,1.7443E0), (-1.7215E0,1.7002E0), (-1.7561E0,1.6560E0), (-1.7906E0,1.5943E0), (-1.8282E0,1.5061E0), (-1.8565E0,1.4443E0), (-1.8878E0,1.3914E0), (-1.9255E0,1.3032E0), (-1.9600E0,1.2238E0), (-1.9945E0,1.1532E0), (-1.9757E0,1.1621E0), (�,�), (-1.4611E0,1.7266E0), (-1.4862E0,1.6737E0), (-1.5427E0,1.5678E0), (-1.5741E0,1.4973E0), (-1.5992E0,1.4267E0), (-1.6368E0,1.3738E0), (-1.6651E0,1.2944E0), (-1.6996E0,1.2326E0), (-1.7372E0,1.1444E0), (-1.7780E0,1.0650E0), (-1.8219E0,1.0209E0), (-1.8596E0,9.6799E-1), (-1.8878E0,9.3271E-1), (-1.9325E0,8.3347E-1), (-1.9129E0,8.4449E-1), (�,�), (-1.1537E0,1.7443E0), (-1.1850E0,1.7090E0), (-1.2195E0,1.6560E0), (-1.2603E0,1.6208E0), (-1.2980E0,1.5678E0), (-1.3356E0,1.5149E0), (-1.3733E0,1.4267E0), (-1.4109E0,1.3649E0), (-1.4737E0,1.2679E0), (-1.5113E0,1.1973E0), (-1.5427E0,1.1621E0), (-1.5678E0,1.0915E0), (-1.5992E0,1.0562E0), (-1.6494E0,1.0033E0), (-1.7623E0,8.7978E-1), (-1.8627E0,7.5628E-1), (-1.9255E0,6.6807E-1), (-1.9694E0,5.7986E-1), (-2.0008E0,5.0929E-1), (-1.9631E0,5.7986E-1), (�,�), (-1.0219E0,1.3914E0), (-1.0470E0,1.3738E0), (-1.0909E0,1.3032E0), (-1.1348E0,1.1973E0), (-1.3294E0,8.0921E-1), (-1.3796E0,6.8571E-1), (-1.4172E0,6.3278E-1), (-1.4988E0,5.0929E-1), (-1.5553E0,4.0343E-1), (-1.5866E0,3.8579E-1), (-1.6306E0,3.1522E-1), (-1.6776E0,2.5347E-1), (-1.7121E0,2.2701E-1), (-1.7466E0,1.8290E-1), (-1.7843E0,1.3880E-1), (-1.8219E0,9.4689E-2), (-1.8502E0,5.0583E-2), (�,�), (-1.0344E0,8.4449E-1), (-1.0532E0,7.9157E-1), (-1.1474E0,6.1514E-1), (-1.2039E0,4.9164E-1), (-1.2603E0,3.6815E-1), (-1.2980E0,2.7994E-1), (-1.3356E0,2.2701E-1), (-1.3670E0,1.7408E-1), (-1.4109E0,1.0792E-1), (-1.3921E0,1.3880E-1), (�,�), (-1.0595E0,4.0343E-1), (-1.0846E0,3.6815E-1), (-1.1223E0,3.3286E-1), (-1.1537E0,2.7994E-1), (-1.1725E0,2.2701E-1), (-1.1913E0,1.7408E-1), (�,�), (-2.0133E0,3.3144E0), (-1.9976E0,3.2174E0), (-1.9820E0,3.1380E0), (-1.9631E0,3.0233E0), (-1.9443E0,2.8910E0), (-1.9318E0,2.8028E0), (-1.9192E0,2.6440E0), (-1.9004E0,2.5029E0), (-1.8941E0,2.4147E0), (-1.8910E0,2.3176E0), (-1.8816E0,2.2030E0), (-1.8753E0,2.0442E0), (-1.8565E0,1.8942E0), (-1.8439E0,1.7972E0), (-1.8314E0,1.7090E0), (-1.8188E0,1.6384E0), (-1.8125E0,1.5678E0), (-1.8125E0,1.4973E0), (-1.8565E0,1.5678E0), (-1.9067E0,1.6649E0), (-1.9412E0,1.7354E0), (-1.9537E0,1.8060E0), (-1.9129E0,1.8325E0), (-1.8816E0,1.8325E0), (-1.8502E0,1.8325E0), (-1.8125E0,1.8501E0), (-1.7655E0,1.8413E0), (-1.7561E0,1.7619E0), (-1.7592E0,1.6649E0), (-1.7749E0,1.5855E0), (-1.7733E0,1.6825E0), (-1.7984E0,1.6649E0), (-1.8251E0,1.6472E0), (-1.8439E0,1.7884E0), (-1.8721E0,1.7795E0), (-1.8298E0,1.7575E0), (-1.8753E0,1.7443E0), (-1.8596E0,1.6737E0), (-1.8847E0,1.7090E0), (-1.8910E0,1.7884E0), (-1.8627E0,1.8148E0), (-1.8314E0,1.8148E0), (�,�), (-2.3898E0,4.4612E0), (-2.3647E0,4.4612E0), (-2.3239E0,4.4524E0), (-2.2706E0,4.4259E0), (-2.2392E0,4.4083E0), (-2.2361E0,4.3201E0), (-2.2581E0,4.2318E0), (-2.2894E0,4.1260E0), (-2.3208E0,4.0025E0), (-2.3396E0,3.9143E0), (�,�), (-2.3396E0,4.2142E0), (-2.3208E0,4.1966E0), (-2.3020E0,4.1789E0), (-2.2769E0,4.1613E0), (-2.2518E0,4.1613E0), (�,�), (-2.4526E0,3.8084E0), (-2.4149E0,3.8084E0), (-2.2706E0,3.8084E0), (-2.2204E0,3.8084E0), (�,�), (-2.3710E0,3.7202E0), (-2.3710E0,3.6496E0), (-2.3836E0,3.5614E0), (-2.3757E0,3.4247E0), (-2.3302E0,3.3938E0), (-2.2957E0,3.3938E0), (-2.2769E0,3.4997E0), (-2.2643E0,3.5791E0), (-2.2643E0,3.5085E0), (-2.2769E0,3.4203E0), (-2.2832E0,3.2968E0), (-2.2863E0,3.1821E0), (-2.2957E0,3.0498E0), (-2.2957E0,2.9792E0), (�,�), true]
piirto7: PolyLine[(-1.2039E0,4.0025E0), (-1.1725E0,4.0025E0), (-1.1411E0,3.9672E0), (-1.1066E0,3.9055E0), (-1.0689E0,3.8172E0), (-1.0344E0,3.7555E0), (-1.0093E0,3.6673E0), (-9.6854E-1,3.5614E0), (-9.3402E-1,3.4556E0), (-9.0892E-1,3.3850E0), (-8.7441E-1,3.3233E0), (-8.3362E-1,3.2262E0), (-8.0225E-1,3.1733E0), (-7.8342E-1,3.1027E0), (-7.5832E-1,3.0498E0), (-7.3950E-1,2.9792E0), (-7.1440E-1,2.8734E0), (-7.2695E-1,2.9616E0), (-7.4577E-1,3.0498E0), (-7.7401E-1,3.1645E0), (-8.0225E-1,3.2527E0), (-8.0225E-1,3.1733E0), (-8.0225E-1,3.0145E0), (-8.0538E-1,2.8469E0), (-7.7715E-1,2.8204E0), (-7.5205E-1,2.8381E0), (-7.2695E-1,2.8557E0), (-7.0185E-1,2.8557E0), (-6.9557E-1,2.9439E0), (-6.7988E-1,3.0410E0), (-6.7675E-1,3.1909E0), (-6.7675E-1,3.2968E0), (-7.1126E-1,3.2615E0), (-7.3950E-1,3.1909E0), (-7.6146E-1,3.0939E0), (-7.9283E-1,2.9969E0), (-8.1480E-1,2.9263E0), (�,�), (-1.4298E0,4.6905E0), (-1.4015E0,4.7170E0), (-1.3733E0,4.7435E0), (-1.3607E0,4.6729E0), (-1.3639E0,4.5759E0), (-1.3858E0,4.4436E0), (-1.3984E0,4.3024E0), (-1.3796E0,4.3024E0), (�,�), (-1.2666E0,4.6023E0), (-1.2603E0,4.5053E0), (-1.2290E0,4.4436E0), (-1.1866E0,4.3553E0), (-1.1882E0,4.2318E0), (-1.2258E0,4.1877E0), (-1.2729E0,4.1789E0), (-1.3137E0,4.2142E0), (-1.2980E0,4.3377E0), (�,�), (-1.2541E0,4.6376E0), (-1.2352E0,4.6553E0), (-1.2039E0,4.6729E0), (-1.1850E0,4.6905E0), (-1.0972E0,4.6905E0), (-1.0281E0,4.6905E0), (�,�), (-1.4674E0,4.0907E0), (-1.4486E0,4.0731E0), (-1.3168E0,4.0731E0), (-1.2415E0,4.0731E0), (-1.2227E0,4.0554E0), (-1.2039E0,4.0378E0), (-1.1725E0,4.0201E0), (-1.1474E0,4.0201E0), (�,�), (-1.3796E0,3.8614E0), (-1.3858E0,3.7908E0), (-1.3858E0,3.7202E0), (-1.3984E0,3.6496E0), (-1.3733E0,3.6144E0), (-1.3356E0,3.6144E0), (-1.2886E0,3.6320E0), (-1.2729E0,3.7202E0), (-1.2729E0,3.7908E0), (-1.2729E0,3.6849E0), (-1.2854E0,3.5614E0), (-1.2917E0,3.4203E0), (-1.2917E0,3.3497E0), (�,�), true]
p = 12 (slider from 1 to 500, step 1)
keskisumma = RectangleSum(f, -2, 2, p, 0.5)
teksti1 = LaTeX(keskisumma, true, true)
tarkka = Integral(f, -2, 2)
teksti2 = LaTeX(tarkka, true, true)
alasumma = LowerSum(f, -2, 2, p)
teksti3 = LaTeX(alasumma, true, true)
yläsumma = UpperSum(f, -2, 2, p)
teksti4 = LaTeX(yläsumma, true, true)