Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- x=-4:0.01:4;
- fx=cos(x);
- %fx = log10(x) -x.^3 - exp(-x);
- %fx=sin(cos(x.^2) + exp(-x));%
- %fx=sin(cos(x.^3) - log(x.^2) + 15*x);
- %Fx =[ -336.0826911, -300.5064069, -267.9163963, -238.1158277, -210.9176187, -186.1441170, -163.6267848, -143.2058870, -124.7301828, -108.0566221, -93.0500453, -79.5828883, -67.5348918, -56.7928159, -47.2501595, -38.8068848, -31.3691479, -24.8490337, -19.1642983, -14.2381149, -9.9988278, -6.3797106, -3.3187318, -0.7583256, 1.3548307, 3.0700332, 4.4327615, 5.4848827, 6.2648489, 6.8078886, 7.1461918, 7.3090882, 7.3232203, 7.2127090, 6.9993141, 6.7025876, 6.3400219, 5.9271910, 5.4778870, 5.0042489, 4.5168877, 4.0250038, 3.5365006, 3.0580908, 2.5953988, 2.1530570, 1.7347972, 1.3435366, 0.9814595, 0.6500933, 0.3503812, 0.0827485, -0.1528335, -0.3567898, -0.5298861, -0.6731789, -0.7879686, -0.8757562, -0.9382039, -0.9770985, -0.9943190, -0.9918064, -0.9715366, -0.9354963, -0.8856616, -0.8239788, -0.7523477, -0.6726072, -0.5865230, -0.4957768, -0.4019579, -0.3065564, -0.2109574, -0.1164373, -0.0241611, 0.0648191, 0.1495646, 0.2292491, 0.3031578, 0.3706843, 0.4313286, 0.4846927, 0.5304772, 0.5684762, 0.5985729, 0.6207342, 0.6350052, 0.6415040, 0.6404159, 0.6319873, 0.6165208, 0.5943685, 0.5659272, 0.5316325, 0.4919533, 0.4473869, 0.3984535, 0.3456918, 0.2896538, 0.2309010, 0.1699995, 0.1075165, 0.0440162, -0.0199435, -0.0838144, -0.1470609, -0.2091631, -0.2696195, -0.3279491, -0.3836937, -0.4364202, -0.4857223, -0.5312222, -0.5725721, -0.6094557, -0.6415895, -0.6687236, -0.6906430, -0.7071683, -0.7181566, -0.7235020, -0.7231361, -0.7170285, -0.7051870, -0.6876579, -0.6645259, -0.6359141, -0.6019837, -0.5629337, -0.5190006, -0.4704570, -0.4176117, -0.3608079, -0.3004221, -0.2368628, -0.1705689, -0.1020072, -0.0316707, 0.0399240, 0.1122393, 0.1847199, 0.2567958, 0.3278860, 0.3974018, 0.4647518, 0.5293451, 0.5905968, 0.6479321, 0.7007913, 0.7486351, 0.7909498, 0.8272522, 0.8570952, 0.8800730, 0.8958260, 0.9040463, 0.9044824, 0.8969434, 0.8813036, 0.8575062, 0.8255666, 0.7855748, 0.7376982, 0.6821824, 0.6193517, 0.5496094, 0.4734358, 0.3913870, 0.3040907, 0.2122427, 0.1166014, 0.0179810, -0.0827551, -0.1847038, -0.2869311, -0.3884831, -0.4883968, -0.5857128, -0.6794880, -0.7688086, -0.8528040, -0.9306608, -1.0016362, -1.0650718, -1.1204066, -1.1671892, -1.2050890, -1.2339062, -1.2535801, -1.2641957, -1.2659878, -1.2593432, -1.2447999, -1.2230436, -1.1949010, -1.1613306, -1.1234091, -1.0823156, -1.0393118, -0.9957195, -0.9528950, -0.9122005, -0.8749738, -0.8424953, -0.8159546, -0.7964155, -0.7847813, -0.7817617, -0.7878406, -0.8032468, -0.8279291, -0.8615357, -0.9033998, -0.9525327, -1.0076239, -1.0670514, -1.1289017, -1.1909998, -1.2509506, -1.3061921, -1.3540586, -1.3918558, -1.4169452, -1.4268370, -1.4192898, -1.3924150, -1.3447829, -1.2755260, -1.1844382, -1.0720624, -0.9397639, -0.7897837, -0.6252657, -0.4502536, -0.2696512, -0.0891413, 0.0849396, 0.2457763, 0.3862985, 0.4994554, 0.5785368, 0.6175364, 0.6115481, 0.5571840, 0.4529962, 0.2998827, 0.1014506, -0.1356924, -0.4017546, -0.6837228, -0.9655125, -1.2283502, -1.4514296, -1.6128822, -1.6910950, -1.6663964, -1.5231144, -1.2519884, -0.8528818, -0.3377022, 0.2666152, 0.9152714, 1.5431997, 2.0634687, 2.3669696, 2.3239780, 1.7883016, 0.6048505, -1.3784107, -4.2930655, -8.2262615, -13.1889776, -19.0754362, -25.6127382, -32.3001476, -38.3380531, -42.5475509, -43.2829605, -38.3415284, -24.8772802, 0.6703234, 42.6173166, 106.0235505, 196.5975944, 320.4761883, 483.8217735, 692.1631355, 949.3806809, 1256.2081436, 1608.0851190, 1992.1480204, 2383.0887048, 2737.5375872, 2986.5384797, 3025.5719779, 2701.4485637, 1795.2264431, 0.1062001, -3106.9928370, -8101.7699593, -15758.7536285, ];
- %xx =[ 0.5000000; 0.9000000; 1.7000000; 2.0000000; 2.8000000; 2.9700000; 0.7380000; 1.0000000; 1.2710000; 2.5000000; 2.3400000; 2.1000000; 2.6700000; 1.0800000; 1.5000000; 1.2500000; 2.6100000; 0.6050000; 2.3100000; ];
- %yy =[ 0.3503812; 0.6165208; 0.1166014; -0.9528950; 0.6703234; 0.1062001; -0.0423847; 0.1699995; -0.5983055; -0.9655125; -0.2696512; -0.8279291; 0.6048505; -0.3279491; 0.7909498; -0.6645259; 0.9152714; -0.9954064; -0.7897837; ];
- %xx =[ -2.8500000; -2.7500000; -2.6500000; -2.5500000; -2.4500000; -2.3500000; -2.2500000; -2.1500000; -2.0500000; -1.9500000; -1.8500000; -1.7500000; -1.6500000; -1.5500000; -1.4500000; -1.3500000; -1.2500000; -1.1500000; -1.0500000; -0.9500000; -0.8500000; -0.7500000; -0.6500000; -0.5500000; -0.4500000; -0.3500000; -0.2500000; -0.1500000; -0.0500000; 0.0500000; 0.1500000; 0.2500000; 0.3500000; 0.4500000; 0.5500000; 0.6500000; 0.7500000; 0.8500000; 0.9500000; 1.0500000; 1.1500000; 1.2500000; 1.3500000; 1.4500000; 1.5500000; 1.6500000; 1.7500000; 1.8500000; 1.9500000; 2.0500000; 2.1500000; 2.2500000; 2.3500000; 2.4500000; 2.5500000; 2.6500000; 2.7500000; 2.8500000; 2.9500000; ];
- %yy =[ -0.9432676; -0.3923264; 1.1636630; 0.5999060; -0.3469226; -0.5189135; -0.0470931; 0.4277369; 0.4690613; 0.0697894; -0.4914572; -0.9064272; -1.0176506; -0.8581635; -0.5808290; -0.3482693; -0.2479903; -0.2654819; -0.3129825; -0.2880300; -0.1293197; 0.1545400; 0.4918613; 0.7827116; 0.9438744; 0.9442226; 0.8166992; 0.6435220; 0.5219024; 0.5246445; 0.6712609; 0.9206221; 1.1875971; 1.3768408; 1.4202447; 1.3030444; 1.0678480; 0.7945455; 0.5640532; 0.4212916; 0.3543617; 0.3011701; 0.1831113; -0.0479837; -0.3726302; -0.6986459; -0.8978844; -0.8722660; -0.6147765; -0.2234714; 0.1543712; 0.4236013; 0.6091995; 0.7985678; 0.9551431; 0.8114269; 0.2196187; -0.1546542; -0.6500314; ];
- '-', x, Fx, '--', xx, yy, 'ok')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement