Modellezés Limesz, Derivált, Integrál Direkt (normál) értékadás (=) p legyen a 6. Chebysev polinom. p ChebyshevT6, x 8 x 48 x 4 3 x 6 (Formális) derivált Dp, x 36 x9 x 3 9 x DSinx, x Cosx DSinx, x, Sinx DSinx, x, x Sinx Dx ^ y ^, x, y 0 TableDSinx, x, i, i, 0, 7 Sinx, Cosx, Sinx, Cosx, Sinx, Cosx, Sinx, Cosx TableFormTableDSinx, x, i, i, 0, 7 Sinx Cosx Sinx Cosx Sinx Cosx Sinx Cosx Dx ^ y ^, y y Ugyanez, ha polinomfüggvényt definiálunk hozzárendelési szabállyal: qx : ChebyshevT6, x;
q Dqx, x 36 x9 x 3 9 x Határértékek Limitp, x Infinity Limitx ^ x 3x ^, x Infinity 3 LimitSinxx, x 0 p 8 x 48 x 4 3 x 6 ReverseCoefficientList p, x 3, 0, 48, 0, 8, 0, Integrálok Integratex ^, x x 3 3 Integratex ^, x, 0, 3 E x x Erfx E x x exp Erf N.4936 E x x
Nexp.4936 NIntegrateE ^x ^, x,,.4936 IntegrateE ^x ^, x,, Erf 3 x ^ x Sorozatok, Függvények Értékadás A ;? A Global`A A? B Table véges listák generálásához Tablei ^, i,, 4, 9, 6, Random 0.34 ClearMyFunction függvény definíciója (n_!) MyFunctionnList : n ^ függvényhívás MyFunction
MyFunction,, 3,, 0 SinPi, Pi 4, 0,, 0 Magyarázat az értékadáshoz '=' (Set) és ':=' (SetDelayed) Normál és késleltetett értékadás. Fontos ismerni a különbséget, hibák forrása lehet! V Random; V : Random; TableV, i, 0.090674, 0.090674, 0.090674, 0.090674, 0.090674 TableV, i, 0.63809, 0.96708, 0.30409, 0.3967, 0.34738 Sorozat: Hozzárendelési szabály vagy a képhalmaz egy véges szelete vagy grafikon := (SetDelayed, késleltetett értékadás) an : n ; n a 6 a 9 Na 0. Véges sorozatok generálása Tablei ^, i, 9, 8, 00,, 44 Tablei ^ 3, i,,,, 7, Az a sorozat elsõ tíz eleme Tablean, n, 0 6, 9, 3 4, 4, 6, 6 4, 7 4, 8 69, 9 86,
t Tablen, an, n, 0, 6,, 3 4, 3,, 4, 9 4,, 6 7 8 9, 6,, 7,, 8,, 9, 6 4 4 69 86, 0, TableFormt 3 4 6 7 8 9 0 6 9 3 4 4 6 6 4 7 4 8 69 9 86 Ábrák ListPlott 0. 0.0 0.8 0.6 0.4 0. 4 6 8 0? ListPlot y y x x y x y x y list list
OptionsListPlot AlignmentPoint Center, AspectRatio, Axes True, AxesLabel None, GoldenRatio AxesOrigin Automatic, AxesStyle, Background None, BaselinePosition Automatic, BaseStyle, ClippingStyle None, ColorFunction Automatic, ColorFunctionScaling True, ColorOutput Automatic, ContentSelectable Automatic, DataRange Automatic, DisplayFunction $DisplayFunction, Epilog, Filling None, FillingStyle Automatic, FormatType TraditionalForm, Frame False, FrameLabel None, FrameStyle, FrameTicks Automatic, FrameTicksStyle, GridLines None, GridLinesStyle, ImageMargins 0., ImagePadding All, ImageSize Automatic, InterpolationOrder None, Joined False, LabelStyle, MaxPlotPoints, Mesh None, MeshFunctions &, MeshShading None, MeshStyle Automatic, Method Automatic, PerformanceGoal $PerformanceGoal, PlotLabel None, PlotMarkers None, PlotRange Automatic, PlotRangeClipping True, PlotRangePadding Automatic, PlotRegion Automatic, PlotStyle Automatic, PreserveImageOptions Automatic, Prolog, RotateLabel True, Ticks Automatic, TicksStyle ListPlott, PlotStyle RGBColor, 0, 0, PointSize.03, AxesOrigin 0, 0, PlotRange 0,, 0,.0 0.8 0.6 0.4 0. 0.0 0 4 6 8 0 g ListPlotTablen, an, n, 0, 00, PlotStyle RGBColor, 0, 0, PointSize.03, PlotRange 49, 0, 0,.0 0.8 0.6 0.4 0. 0 60 70 80 90 00 g InputForm Graphics[{Hue[0.67, 0.6, 0.6], RGBColor[, 0, 0],
PointSize[0.03], Point[{{0., 0.099600798403936}, {., 0.097063347}, {., 0.09970098498}, {3., 0.08834399434437}, {4., 0.0848689833487}, {., 0.088883}, {6., 0.07887696984}, {7., 0.07690744}, {8., 0.077903970}, {9., 0.069484604704}, {60., 0.066430643348}, {6., 0.06374439076779}, {6., 0.0608080007846}, {63., 0.08304479446}, {64., 0.06094976834984}, {6., 0.0366430600478}, {66., 0.03443408473}, {67., 0.049087674844}, {68., 0.04689997839706}, {69., 0.04477493079467}, {70., 0.0478883078}, {7., 0.04070093430836}, {7., 0.038708778846}, {73., 0.03687897634048}, {74., 0.03089497909}, {7., 0.033490070479}, {76., 0.03464443867843}, {77., 0.0976070044864}, {78., 0.08099894784}, {79., 0.0648094780696}, {80., 0.049049984387}, {8., 0.033677794699969}, {8.,
0.08606033897}, {83., 0.003944980334}, {84., 0.0896339643004}, {8., 0.0766984786}, {86., 0.0600344498}, {87., 0.04866649068}, {88., 0.03630403930868}, {89., 0.0886709934393}, {90., 0.0046637088}, {9., 0.00983799793386}, {9., 0.00863479399}, {93., 0.0074647683}, {94., 0.00638469397}, {9., 0.000487646733}, {96., 0.00408377308}, {97., 0.00303808468388}, {98., 0.00987798497774}, {99., 0.00098967774838}, {00., 0.0099900498706}}]}, {AspectRatio -> GoldenRatio^ (-), Axes -> True, PlotRange -> {{49, 0}, {0, }}, PlotRangeClipping -> True}] Grafikus objektumok ábrázolása
ShowGraphicsPointSize.0, Red, Point0, 0, GraphicsPoint, ShowTableGraphicsPointSize.03, Pointan, 0, n, 0, Axes True, PlotRange 0,,.0,.0 0.00 0.00 0.000 0.00 0.00 0. 0. 0.3 0.4 0. Függvény: Hozzárendelési szabály vagy grafikon fx : x x; Plotfx, x,, 0 4 4 0
Plotx, x ^, x,, 0 0 4 4 MyFunx : ArcTanx; MyDFunx : DMyFunx, x; MyDFunx x? Plot?? Plot PlotSinx, Cosx, x,,, PlotStyle, RGBColor, 0, 0, Axes False
PlotEvaluateMyFunx, MyDFunx, x,,, PlotStyle, RGBColor, 0, 0.0 0. 4 4 0..0 Feladatok?Hogyan lehetne az x^+y^== és x^+y^== ellipszisek grafikonját felrajzolni és a metszetük területét kiszámolni? Hint: pl. ContourPlot, RegionPlot,Impr. integrál, Boole Andexpr, expr IntegrateIntegrateBoolex ^ y ^ x ^ y ^, y, Infinity, Infinity, x, Infinity, Infinity ArcCos 3 ArcSin 3 FullSimplify ArcSec3 N.74084
RegionPlotx ^ y ^ x ^ y ^, x,,, y,, ContourPlotx ^ y ^, x ^ y ^, x,,, y,,, Axes True.0 0. 0.0 0..0.0 0. 0.0 0..0 86 IntegrateIntegrate, y, 0, Sqrtx ^, x, Sqrt3, Sqrt 8 6 3 ArcCos 3 N.74084
Solvex ^ y ^, x ^ y ^, x, y x 3, y 3, x 3, y 3, x 3, y 3, x 3, y 3 f[x]:=x/(x^-x+6) Ábrázoljuk, lok. glob, limeszek derivált mon., szimb. szám is! stb. In[]:= In[]:= In[3]:= Out[3]= Clearf fx : xx x 6 Solvefx 0, x x 0 OptionsLimit Analytic False, Assumptions $Assumptions, Direction Automatic féloldali limeszek Limitfx, x 3, Direction Limitfx, x 3, Direction SolveDenominatorfx 0, x x, x 3 Plotfx, x,,, PlotRange 0, 0 0 4 4 0 0 x. SolveDfx, x 0 6, 6
ReduceDfx, x 0, x 6 x x 6 NSqrt6.44949 PlotEvaluateDfx, x, x,, 0, PlotRange.,. 0.0 0.0 4 3 0.0 0.0 PlotEvaluateDfx, x, x,,, PlotRange.,. 0.0 0.0 4 4 0.0 0.0 Ábrázolások Plotx ^, x,,, ImageSize 00, 00, ListPlotRange0 0 4 3 8, 6 4 4 6 8 0
Variánsok ParametricPlott, t, t, 0, 0. 0.0 0. 0.0 0.0 0. 0. 0.3 0.4 0. ContourPlotx ^ y ^, x,,, y,,.0 0. 0.0 0..0.0 0. 0.0 0..0 In[4]:= PolarPlot,, 0, 4 6 Out[4]= 3 4
Ábrázoljunk különböz (algebrai) görbéket, pl. kör, hiperbola, lemniszkáta, cusp etc. Keressünk rá a helpben a térgörbék, felületek ábrázolására! Ábrázoljunk pl. a csavargörbét, síkot, félgömböt stb. Interaktív prezentációk In[]:= ManipulatePlota x b, x,,, PlotRange 0, 0, a,,,., b, 4, 4,. 0 Out[]= 4 4 0