Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
1.5
1.0
0.5
-10 -5 5 10
-0.5
-1.0
-1.5
100 !
93 326 215 443 944 152 681 699 238 856 266 700 490 715 968 264 381 621 468 592 963 895 217 599
993 229 915 608 941 463 976 156 518 286 253 697 920 827 223 758 251 185 210 916 864 000 000 000
000 000 000 000 000
N[%, 20]
9.33262 10157
N[Sqrt[2], 500]
1.4142135623730950488016887242096980785696718753769480731766797379907324784621070
38850387534327641572735013846230912297024924836055850737212644121497099935831413
22266592750559275579995050115278206057147010955997160597027453459686201472851741
86408891986095523292304843087143214508397626036279952514079896872533965463318088
29640620615258352395054745750287759961729835575220337531857011354374603408498847
16038689997069900481503054402779031645424782306849293691862158057846311159666871
30130156185689872372
a=%
1.4142135623730950488016887242096980785696718753769480731766797379907324784621070
38850387534327641572735013846230912297024924836055850737212644121497099935831413
22266592750559275579995050115278206057147010955997160597027453459686201472851741
86408891986095523292304843087143214508397626036279952514079896872533965463318088
29640620615258352395054745750287759961729835575220337531857011354374603408498847
16038689997069900481503054402779031645424782306849293691862158057846311159666871
30130156185689872372
a =.
a=3
b=4
a^2 + b^2
25
c = 1 + x ^ 10
(1 + x)10
Expand[%]
1 + 10 x + 45 x2 + 120 x3 + 210 x4 + 252 x5 + 210 x6 + 120 x7 + 45 x8 + 10 x9 + x10
b=a
3
c := a
{a, b, c}
{7, 3, 7}
a=7
7.
7.
fib[2] = 1
1
fib[5]
5
Solve[ x ^ 2 + 2 x + 10 0, x]
{{x - 1 - 3 }, {x - 1 + 3 }}
Solve[x ^ 5 + 2 x + 10 0, x]
x Root10 + 2 #1 + #15 &, 1,
x Root10 + 2 #1 + #15 &, 2, x Root10 + 2 #1 + #15 &, 3,
x Root10 + 2 #1 + #15 &, 4, x Root10 + 2 #1 + #15 &, 5
Solve[x ^ 4 + 2 x + 10 0, x]
1/3
1 2 9 + 47 919 20 22/3
x + -
2 32/3 3 9 + 47 919
1/3
1/3
1 2 9 + 47 919 20 22/3
- - -
2 32/3 3 9 + 47 919
1/3
1 1/3 1/3
4 2 9 + 47 919 + 20 22/3 3 9 + 47 919 ,
32/3
1/3
1 2 9 + 47 919 20 22/3
x + +
2 32/3 3 9 + 47 919
1/3
1/3
1 2 9 + 47 919 20 22/3
- - -
2 32/3 3 9 + 47 919
1/3
1 1/3 1/3
4 2 9 + 47 919 + 20 22/3 3 9 + 47 919 ,
32/3
1/3
1 2 9 + 47 919 20 22/3
x - + -
2 32/3 3 9 + 47 919
1/3
1/3
1 2 9 + 47 919 20 22/3
- - +
2 32/3 3 9 + 47 919
1/3
1 1/3 1/3
4 2 9 + 47 919 + 20 22/3 3 9 + 47 919 ,
32/3
1/3
1 2 9 + 47 919 20 22/3
x - + +
2 32/3 3 9 + 47 919
1/3
1/3
1 2 9 + 47 919 20 22/3
- - +
2 32/3 3 9 + 47 919
1/3
1 1/3 1/3
4 2 9 + 47 919 + 20 22/3 3 9 + 47 919
32/3
N[%]
{{x 1.26234 - 1.41053 }, {x 1.26234 + 1.41053 },
{x - 1.26234 - 1.09426 }, {x - 1.26234 + 1.09426 }}
Solve[x ^ 3 + 2 x + 10 0, x]
1/3
- 45 + 2049 2
x - ,
32/3 3 - 45 + 2049
1/3
1/3
1 + 3 - 45 + 2049 1- 3
x - + ,
2 32/3 3 - 45 + 2049
1/3
1/3
1 - 3 - 45 + 2049 1+ 3
x - +
2 32/3 3 - 45 + 2049
1/3
N[%]
{{x - 1.84742}, {x 0.92371 - 2.13535 }, {x 0.92371 + 2.13535 }}
= {t, t ^ 2}
t, t2
lungh[, 0, 3]
1
6 37 + ArcSinh[6]
4
N[%]
9.74709
= {Cos[t], Sin[t], t / 4}
t
Cos[t], Sin[t],
4
lungh[, 0, 2 ]
17
2
ParametricPlot3D[, {t, 0, 2 }]
= {t, t ^ 2}
t, t2
x + 1 x + 2 x + 3 (x + 4)
(1 + x) (2 + x) (4 + x)
3+x
x + 1 x + 2 x + 3 (x + 4)
(1 + x) (2 + x)
(3 + x) (4 + x)
Expand[%]
2 3x x2
+ +
(3 + x) (4 + x) (3 + x) (4 + x) (3 + x) (4 + x)
x + 1 x + 2 x + 3 (x + 4)
(1 + x) (2 + x)
(3 + x) (4 + x)
Expand[%]
2 3x x2
+ +
(3 + x) (4 + x) (3 + x) (4 + x) (3 + x) (4 + x)
Together[%]
2 + 3 x + x2
(3 + x) (4 + x)
Denominator[%]
1
x + 1 x + 2 x + 3 (x + 4)
(1 + x) (2 + x)
(3 + x) (4 + x)
Expand[%]
2 3x x2
+ +
(3 + x) (4 + x) (3 + x) (4 + x) (3 + x) (4 + x)
Together[%]
2 + 3 x + x2
(3 + x) (4 + x)
Denominator[%]
(3 + x) (4 + x)
Expand[%]
12 + 7 x + x2
Expand
Expand
ExpandAll[%]
Expand
x + 1 x + 2 x + 3 (x + 4)
(1 + x) (2 + x)
(3 + x) (4 + x)
ExpandAll[%]
2 3x x2
+ +
12 + 7 x + x2 12 + 7 x + x2 12 + 7 x + x2
Apart[%]
2 6
1+ -
3+x 4+x
b = {1, 2, 3}
{1, 2, 3}
0.5
1 2 3 4 5 6
-0.5
-1.0
MatrixForm[%]
5 1 -2
2 4 -3
1 2 6
MatrixPlot[%]
1 2 3
1 1
2 2
3 3
1 2 3
Det[%]
1 2 3
1 1
Det2 2
3 3
1 2 3
MatrixForm[%]
5 1 -2
2 4 -3
1 2 6
Det[%]
135
M.{x, y, z}
{5 x + y - 2 z, 2 x + 4 y - 3 z, x + 2 y + 6 z}
LinearSolve[M, b]
5 82 4
, ,
27 135 15
n=%
5 82 4
, ,
27 135 15
M.n
{1, 2, 3}
n.n
1729
3645
b.b
14
n.M
65 85 16
, ,-
27 27 27
M
{{5, 1, - 2}, {2, 4, - 3}, {1, 2, 6}}
M[[1]]
{5, 1, - 2}
M[[1, 3]]
-2
M[[{1, 3}]]
{{5, 1, - 2}, {1, 2, 6}}
MatrixForm[%]
1 2 3 4 5 6 7 8 9 10
2 4 6 8 10 12 14 16 18 20
3 6 9 12 15 18 21 24 27 30
4 8 12 16 20 24 28 32 36 40
5 10 15 20 25 30 35 40 45 50
6 12 18 24 30 36 42 48 54 60
7 14 21 28 35 42 49 56 63 70
8 16 24 32 40 48 56 64 72 80
9 18 27 36 45 54 63 72 81 90
10 20 30 40 50 60 70 80 90 100
(* Matrice di Hilbert *)
Det[%]
1 / 46 206 893 947 914 691 316 295 628 839 036 278 726 983 680 000 000 000
N[%]
2.16418 10-53
f[x_] = AbsLogx x ^ 2 - 1
x
AbsLog
- 1 + x2
-4 -2 2 4
f[x_] = Logx x ^ 2 - 1
x
Log
- 1 + x2
-4 -2 2 4
-1
-2
-3
-4
(* studio di funzione *)
f[x_] = x ^ 3 x ^ 2 - 1
x3
- 1 + x2
15
10
-4 -2 2 4
-5
-10
-15
(* asintoto verticale *)
Limit[f[x], x 1]
Limit[f[x], x 1, Direction 1]
-
(* asintoto obliquo *)
Limit[f[x] / x, x + ]
1
Limit[f[x] - x, x + ]
0
15
10
-4 -2 2 4
-5
-10
-15
-4 -2 2 4
-2
-4
(* derivata prima *)
fp = D[f[x], x]
2 x4 3 x2
- +
- 1 + x2 2 - 1 + x2
Together[% ]
- 3 x2 + x4
- 1 + x2 2
(* punti critici *)
Solve[fp 0, x]
{x 0}, {x 0}, x - 3 , x 3
(* valori critici *)
f[x] /. %
3 3 3 3
0, 0, - ,
2 2
(* crescenza *)
Reduce[fp > 0, x]
x<- 3 || x > 3
Reduce[fp < 0, x]
- 3 < x < - 1 || - 1 < x < 0 || 0 < x < 1 || 1 < x < 3
Reduce[fp 0, x]
- 3 x < - 1 || - 1 < x < 1 || 1 < x 3
fs = D[fp, x]
8 x5 14 x3 6x
- +
- 1 + x 2 3 - 1 + x 2 2 - 1 + x2
Together[%]
2 3 x + x3
- 1 + x2 3
(* convessit *)
Reduce[fs > 0, x]
- 1 < x < 0 || x > 1
Reduce[fs < 0, x]
x < - 1 || 0 < x < 1
T = Normal[%]
- x3 - x5 - x7
-2 -1 1 2
-1
-2
-3
Sum1 k, {k, 1, + }
Sum::div : Sum does not converge.
1
k=1 k
Sum1 k ^ 2, {k, 1, + }
2
6
Sum1 k ^ 4, {k, 1, + }
4
90
N[%]
1.08232
Sum1 k ^ 3, {k, 1, + }
Zeta[3]
Plot3D[Abs[Zeta[x + I y]], {x, - 16, 16}, {y, - 16, 16}, PlotRange {0, 16}]
-5
-10
-5
-10
-5
-10
-5
-10
Normal[%]
x3 x3 x5 x3 x5 x7
x, x - , x- + , , x- + -
6 6 120 5040120 6
x3 x5 x7 x9 x3 x5 x7 x9 x11
x- + - + , x- + - + -
6 120 5040 362 880 6 120 5040 362 880 39 916 800
T=%
x3 x3 x5 x3 x5 x7
x, x - , x- + , , x- + -
6 6 120 5040120 6
x3 x5 x7 x9 x3 x5 x7 x9 x11
x- + - + , x- + - + -
6 120 5040 362 880 6 120 5040 362 880 39 916 800
Plot{Sin[x], T}, x, - 2, 2
1.5
1.0
0.5
-0.5
-1.0
-1.5
-3 -2 -1 1 2 3
-1
-2
-3
-6 -4 -2 2 4 6
-2
-4
(* serie *)
Sum1 n ^ 2, {n, 1, }
2
6
Sum1 n ^ 2, {n, 1, , 2}
2
8
Sum1 n ^ 2, {n, 2, , 2}
2
24
Sum1 n ^ 3, {n, 1, }
Zeta[3]
(* integrale indefinito *)
Integratex + 2 x ^ 3 + 2 x ^ 2 + 5 x, x
3 1+x 2 Log[x] 1
ArcTan + - Log5 + 2 x + x2
10 2 5 5
(* fratti semplici *)
Apartx + 2 x ^ 3 + 2 x ^ 2 + 5 x
2 1-2x
+
5x 5 5 + 2 x + x2
(* integrale definito *)
Integratex + 2 x ^ 3 + 2 x ^ 2 + 5 x, {x, 0, 3}
2+x
Integrate::idiv : Integral of does not converge on {0, 3}.
5 x + 2 x 2 + x3
3 2+x
x
0 5 x + 2 x2 + x3
Integratex + 2 x ^ 3 + 2 x ^ 2 + 5 x, {x, 1, 3}
1 324
- 3 + 4 3 ArcTan[2] + Log
40 25
N[%]
0.352712
Integratex + 2 x ^ 3 + 2 x ^ 2 + 5 x, {x, 1, + }
3
( + Log[256])
40
N[%]
0.651508
0.8
0.6
0.4
0.2
1 2 3 4 5 6
0.5
2 4 6 8 10
-0.5
-1.0
D[Sin[x], x]
Cos[x]
LimitDx ^ 3 (Sin[x]) ^ 3, x, x, x 0
1
f = x^2 - y^2
x2 - y2
dx = D[f, x]
2x
dy = D[f, y]
-2 y
f = x^2 - y^2 + x - 2 y
x + x2 - 2 y - y 2
dx = D[f, x]
1+2x
dy = D[f, y]
-2 - 2 y
MatrixForm[%]
2 0
0 -2
f = x^2 - y^2
x2 - y2
h = Graphics3D[Sphere[]]
h = Graphics3D[{Opacity[0.5], Sphere[]}]
Show[{g, h}]
(* centro O e raggio 2 *)
Show[{g, k}]
Show[{g, k}]
Show[{k, g}]
f = x^2 - y^2
x2 - y2
fx = D[f, x]
2x
fy = D[f, y]
-2 y
f[x_, y_] = x ^ 2 - y ^ 2
x2 - y2
Plot3D[{f[x, y], p}, {x, - 2, 2}, {y, - 2, 2}, PlotStyle {Pink, Yellow}]
f[x_, y_] = x ^ 2 + y ^ 2
x2 + y2
f[x_, y_] = x ^ 2 + y ^ 2
x2 + y2
-1
-2
-2 -1 0 1 2
f[x_, y_] = x ^ 2 - y ^ 2
x2 - y2
-1
-2
-2 -1 0 1 2
-1
-2
-2 -1 0 1 2
-1
-2
-2 -1 0 1 2
-1
-2
-2 -1 0 1 2
ContourPlot3D[f[x, y, z], {x, - 10, 10}, {y, - 10, 10}, {z, - 10, 10}]
0
0 1 2 3 4 5 6
60
50
40
30
20
10
0
0 10 20 30 40 50 60
(* manipolazione *)
a = ParametricPlot[{Cos[], Sin[]}, {, 0, 2 }]
1.0
0.5
-0.5
-1.0
Manipulate[
Show[{a, Graphics[{Red, PointSize[0.02], Point[{Cos[t], Sin[t]}]}]}], {t, 0, 2 }]
1.0
0.5
-0.5
-1.0
(* discontinuit da 5 a 0 *)
(*scatola vuota*)
(* cauchy relativo*)
DSolve[{y '[t] y[t], y[0] 2}, y[t], t]
{{y[t] 2 t }}
2.0
1.5
1.0 (* decadimento *)
0.5
1 2 3 4
1.5
1.0
0.5
1 2 3 4
5 10 15 20
-1
-2
(* venuto un pasticcio*)
0.10
0.05
5 10 15 20
-0.05
-0.10
(* si smorza subito *)
1.5
1.0
0.5
5 10 15 20
(* ci uscito un pasticcio *)
10 20 30 40
-1
0.1
-0.1
-0.2
(* Soluzione esatta *)
Plot[p[t], {t, 0, 4 }]
0.5
2 4 6 8 10 12
-0.5
0.5
2 4 6 8 10 12
-0.5
Animate[ParametricPlot[{{Sin[q[t]], 1 - Cos[q[t]]},
{Sin[q[f]] t / f, 1 - Cos[q[f]] t / f}, {Sin[p[f]] t / f, 1 - Cos[p[f]] t / f}},
{t, 0, f}, PlotRange {{- 1.2, 1.2}, {- 1.2, 1.2}}], {f, 0.01, 6 , 0.1}]
Manipulate[ParametricPlot[{{Sin[q[t]], 1 - Cos[q[t]]},
{Sin[q[f]] t / f, 1 - Cos[q[f]] t / f}, {Sin[p[f]] t / f, 1 - Cos[p[f]] t / f}},
{t, 0, f}, PlotRange {{- 1.2, 1.2}, {- 1.2, 1.2}}], {f, 0.01, 6 , 0.1}]
(* Fibonacci *)
fib[0] = 1
fib[1] = 1
1
(* troppo lenta *)
(* pi veloce *)
fib[1000] // Timing
{0.,
70 330 367 711 422 815 821 835 254 877 183 549 770 181 269 836 358 732 742 604 905 087 154 537
118 196 933 579 742 249 494 562 611 733 487 750 449 241 765 991 088 186 363 265 450 223 647
106 012 053 374 121 273 867 339 111 198 139 373 125 598 767 690 091 902 245 245 323 403 501}
fib[2000] // Timing
{0.015600,
6 835 702 259 575 806 647 045 396 549 170 580 107 055 408 029 365 524 565 407 553 367 798 082
454 408 054 014 954 534 318 953 113 802 726 603 726 769 523 447 478 238 192 192 714 526 677
939 943 338 306 101 405 105 414 819 705 664 090 901 813 637 296 453 767 095 528 104 868 264
704 914 433 529 355 579 148 731 044 685 634 135 487 735 897 954 629 842 516 947 101 494 253
575 869 699 893 400 976 539 545 740 214 819 819 151 952 085 089 538 422 954 565 146 720 383
752 121 972 115 725 761 141 759 114 990 448 978 941 370 030 912 401 573 418 221 496 592 822 626}
fib[3000] // Timing
{0.015600,
664 390 460 366 960 072 280 217 847 866 028 384 244 163 512 452 783 259 405 579 765 542 621 214
161 219 257 396 449 810 982 999 820 391 132 226 802 809 465 132 446 349 331 994 409 434 926
019 045 342 723 749 188 530 316 994 678 473 551 320 635 101 099 619 382 973 181 622 585 687
336 939 784 373 527 897 555 489 486 841 726 131 733 814 340 129 175 622 450 421 605 101 025
897 173 235 990 662 770 203 756 438 786 517 530 547 101 123 748 849 140 252 686 120 104 032
647 025 145 598 956 675 902 135 010 566 909 783 124 959 436 469 825 558 314 289 701 354 227
151 784 602 865 710 780 624 675 107 056 569 822 820 542 846 660 321 813 838 896 275 819 753
281 371 491 809 004 412 219 124 856 375 121 694 811 728 724 213 667 814 577 326 618 521 478
357 661 859 018 967 313 354 840 178 403 197 559 969 056 510 791 709 859 144 173 304 364 898 001}
a=1
1
b=1
1
fib[10]
89
fibo[10]
{Null, 89}
(* rimandare a e b sempre *)
fibo[10]
89
fibo[10]
89
Fibonacci[10]
55
Fibonacci[11]
89
FactorInteger[%]
{{89, 1}}
Fibonacci[102]
927 372 692 193 078 999 176
FactorInteger[%]
{{2, 3}, {919, 1}, {1597, 1}, {3469, 1}, {3571, 1}, {6 376 021, 1}}
(* Grafica *)
(* Non si pu mischiare 2D e 3D *)
GraphicsRed, Thickness[0.005], Line[{{0, 0}, {2, 0}, {1, 1}, {0, 0}}],
{RGBColor[0.5, 0.5, 0.9], Polygon[{{2, 2}, {4, 2}, {3, 3}, {2, 2}}]},
Disk[{1, 2}, {0.5, 0.3}], Blue, Thickness[0.01],
Arrow4, 3 2, 0, 3 2, {0, 0}, Text["Prova di grafica", {3, 0.5}]
Prova di grafica
1 2 !
2
(*Figure*)
GraphicsRed, Thickness[0.005], Line[{{0, 0}, {2, 0}, {1, 1}, {0, 0}}],
{RGBColor[0.8, 0.8, 0.1], Polygon[{{2, 2}, {4, 2}, {3, 3}, {2, 2}}]},
Disk[{1, 2}, {0.5, 0.3}], Blue, Thickness[0.01],
Arrow4, 3 2, 0, 3 2, {0, 0}, {1.8, 1.2},
Text["Prova di grafica", {3, 1}]
Prova di grafica
GraphicsRed, Thickness[0.005], Line[{{0, 0}, {2, 0}, {1, 1}, {0, 0}}],
{RGBColor[0.8, 0.8, 0.1], Polygon[{{2, 2}, {4, 2}, {3, 3}, {2, 2}}]},
Disk[{1, 2}, {0.5, 0.3}], Blue, Thickness[0.01],
Arrow4, 3 2, 0, 3 2, {0, 0}, {1.8, 1.2},
Text["Prova di grafica", {3, 0}]
Prova di grafica
Graphics3DRed, Thickness[0.005],
Line[{{0, 0, 0}, {2, 0, 1}, {3, 1, 2}, {1, 3, 2}, {0, 0, 0}}], {Opacity[1],
RGBColor[0.8, 0.5, 0.9], Polygon[{{2, 2, 4}, {4, 2, 4}, {3, 3, 6}, {2, 2, 4}}]},
Opacity[1], Sphere[{1, 2, 3}, {1}], Blue, Thickness[0.01],
Dashed, Arrow4, 3 2, 1, 0, 3 2, 2, {0, 0, 5},
Text["Prova di grafica", {3, 0.5, 1}]
Graphics3D
Red, Thickness[0.005], Line[{{0, 0, 0}, {2, 0, 1}, {3, 1, 2}, {1, 3, 2}, {0, 0, 0}}],
{Opacity[0.1], RGBColor[0.8, 0.5, 0.9],
Polygon[{{2, 2, 4}, {4, 2, 4}, {3, 3, 6}, {2, 2, 4}}]},
Opacity[0.01], Sphere[{1, 2, 3}, {1}], Blue, Thickness[0.01],
Dashed, Arrow4, 3 2, 1, 0, 3 2, 2, {0, 0, 5},
Text["Prova di grafica", {3, 0.5, 1}]
Graphics3D
Red, Thickness[0.005], Line[{{0, 0, 0}, {2, 0, 1}, {3, 1, 2}, {1, 3, 2}, {0, 0, 0}}],
{Opacity[0.9], RGBColor[0.2, 0.9, 0.2],
Polygon[{{2, 2, 4}, {4, 2, 4}, {3, 3, 6}, {6, 5, 4}, {2, 2, 4}}]},
Opacity[0.9], Sphere[{1, 2, 3}, {1}], Blue, Thickness[0.01],
Dashed, Arrow4, 3 2, 1, 0, 3 2, 2, {0, 0, 5},
Text["Prova di grafica", {3, 0.5, 1}]
(*Triangolo di Sierpinski*)
(*Concoide*)
a = ParametricPlot[{t - Sin[t], 1 - Cos[t]}, {t, 0, 2 }]
2.0
1.5
1.0
0.5
1 2 3 4 5 6