Advertisement
blackpab

go_on

Nov 18th, 2018
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 4.22 KB | None | 0 0
  1. D[t^2 + Sin[5 t], {t, 2}]
  2.  
  3. 2 - 25 Sin[5 t]
  4.  
  5. D[(2 p - 1)^5, {p, 4}]
  6.  
  7. 1920 (-1 + 2 p)
  8.  
  9. Dt[x*Sin[x], {x, 10}]
  10.  
  11. 10 Cos[x] - x Sin[x]
  12.  
  13. D[5 x^2 + 3 x*y - 2*y^2 + 2, {{x, y}}]
  14.  
  15. {10 x + 3 y, 3 x - 4 y}
  16.  
  17. xt := 5*Cos[2*Pi*t]
  18.  
  19. D[xt, t]
  20.  
  21. -10 \[Pi] Sin[2 \[Pi] t]
  22.  
  23. D[xt, {t, 2}]
  24.  
  25. -20 \[Pi]^2 Cos[2 \[Pi] t]
  26.  
  27. Solve[10 == s/t && s == (3*t^2)/2, {s, t}]
  28.  
  29. {{s -> 200/3, t -> 20/3}}
  30.  
  31. Plot[y = Sin[x]*Cos[x], {x, 0, 2 Pi},
  32.  Ticks -> {Range[0, Pi, Pi/4], Automatic}, AspectRatio -> 3/1,
  33.  GridLines -> Automatic, AxesLabel -> {osy, osx}, PlotLabel -> "Chart"]
  34.  
  35.  
  36.  
  37. Plot[{Sin[x], Cos[x], Sin[x]*Cos[x], Abs[Sin[x]]}, {x, -Pi, Pi}]
  38.  
  39.  
  40.  
  41. Plot[{Sin[x], Cos[x], Sin[x] Cos[x], Abs[Sin[x]]}, {x, -\[Pi], \[Pi]},
  42.   PlotStyle -> {{Red, Thickness[0.001]}, {Yellow}, {Blue}, {Green,
  43.     Dashed}}, PlotLegends -> Automatic, AxesLabel -> {lx, ly},
  44.  Background -> Lighter[Gray, 0.5]]
  45.  
  46.  
  47.  
  48. Plot[y = Log[Cos[3 x]^2], {x, 0, 10}]
  49.  
  50.  
  51.  
  52. ParametricPlot3D[{Cos[t]*Sin[t], Sin[t]*Cos[u], Sqrt[t]}, {t, 0,
  53.   2*Pi}, {u, -Pi, Pi}]
  54.  
  55.  
  56.  
  57. ParametricPlot[{Cos[u], Sin[u]*Cos[u]}, {u, -2, 2}]
  58.  
  59.  
  60.  
  61. zp := (3 + 4 I)/(5 + 2 I)
  62.  
  63. Im[zp]
  64.  
  65. 14/29
  66.  
  67. Re[zp]
  68.  
  69. 23/29
  70.  
  71. Conjugate[zp]
  72.  
  73. 23/29 - (14 I)/29
  74.  
  75. Abs[zp]
  76.  
  77. 5/Sqrt[29]
  78.  
  79. a = {1, 2}
  80. b = {4, 5}
  81. c = {7, 4}
  82. d = {4, 4}
  83.  
  84. {1, 2}
  85.  
  86. {4, 5}
  87.  
  88. {7, 4}
  89.  
  90. {4, 4}
  91.  
  92. VectorQ[b]
  93.  
  94. True
  95.  
  96. h = MatrixForm[{4, 6}]
  97.  
  98. \!\(
  99. TagBox[
  100. RowBox[{"(", "",
  101. TagBox[GridBox[{
  102. {"4"},
  103. {"6"}
  104. },
  105. GridBoxAlignment->{
  106.        "Columns" -> {{Center}}, "ColumnsIndexed" -> {},
  107.         "Rows" -> {{Baseline}}, "RowsIndexed" -> {}, "Items" -> {},
  108.         "ItemsIndexed" -> {}},
  109. GridBoxSpacings->{"Columns" -> {
  110. Offset[0.27999999999999997`], {
  111. Offset[0.5599999999999999]},
  112. Offset[0.27999999999999997`]}, "ColumnsIndexed" -> {}, "Rows" -> {
  113. Offset[0.2], {
  114. Offset[0.4]},
  115. Offset[0.2]}, "RowsIndexed" -> {}, "Items" -> {},
  116.         "ItemsIndexed" -> {}}],
  117. Column], "", ")"}],
  118. Function[BoxForm`e$,
  119. MatrixForm[BoxForm`e$]]]\)
  120.  
  121. NSolve[x^6 == 1, x]
  122.  
  123. {{x -> -1.}, {x -> -0.5 - 0.866025 I}, {x -> -0.5 + 0.866025 I}, {x ->
  124.     0.5 - 0.866025 I}, {x -> 0.5 + 0.866025 I}, {x -> 1.}}
  125.  
  126. mg := {{1, Cos[tx], Cos[ty]}, {Cos[tx], 1, Cos[tz]}, {Cos[ty],
  127.    Cos[tz], 1}}
  128.  
  129. MatrixForm[mg]
  130.  
  131. \!\(
  132. TagBox[
  133. RowBox[{"(", "", GridBox[{
  134. {"1",
  135. RowBox[{"Cos", "[", "tx", "]"}],
  136. RowBox[{"Cos", "[", "ty", "]"}]},
  137. {
  138. RowBox[{"Cos", "[", "tx", "]"}], "1",
  139. RowBox[{"Cos", "[", "tz", "]"}]},
  140. {
  141. RowBox[{"Cos", "[", "ty", "]"}],
  142. RowBox[{"Cos", "[", "tz", "]"}], "1"}
  143. },
  144. GridBoxAlignment->{
  145.       "Columns" -> {{Center}}, "ColumnsIndexed" -> {},
  146.        "Rows" -> {{Baseline}}, "RowsIndexed" -> {}, "Items" -> {},
  147.        "ItemsIndexed" -> {}},
  148. GridBoxSpacings->{"Columns" -> {
  149. Offset[0.27999999999999997`], {
  150. Offset[0.7]},
  151. Offset[0.27999999999999997`]}, "ColumnsIndexed" -> {}, "Rows" -> {
  152. Offset[0.2], {
  153. Offset[0.4]},
  154. Offset[0.2]}, "RowsIndexed" -> {}, "Items" -> {},
  155.        "ItemsIndexed" -> {}}], "", ")"}],
  156. Function[BoxForm`e$,
  157. MatrixForm[BoxForm`e$]]]\)
  158.  
  159. Det[mg]
  160.  
  161. 1 - Cos[tx]^2 - Cos[ty]^2 + 2 Cos[tx] Cos[ty] Cos[tz] - Cos[tz]^2
  162.  
  163. lw = {};
  164. For[i = -31, i < 50, i += 1;
  165.  AppendTo[lw, {N[i], 2 i}];]
  166.  
  167. MatrixForm[lw]
  168.  
  169.  
  170.  
  171.  
  172. ListLinePlot[lw]
  173. ListPlot[lw]
  174. ListContourPlot[lw]
  175. Histogram[lw]
  176.  
  177.  
  178.  
  179.  
  180.  
  181.  
  182.  
  183.  
  184.  
  185. listaRand = RandomInteger[10, {1, 100}]
  186.  
  187. {{0, 5, 7, 2, 7, 0, 2, 2, 10, 3, 7, 6, 6, 7, 8, 1, 9, 1, 9, 10, 3, 0,
  188.   0, 4, 3, 4, 6, 3, 1, 8, 4, 8, 9, 4, 7, 1, 3, 10, 5, 9, 7, 1, 9, 8,
  189.   0, 3, 6, 3, 5, 10, 0, 6, 7, 7, 6, 5, 5, 2, 9, 7, 2, 0, 2, 1, 5, 10,
  190.   8, 10, 10, 5, 0, 2, 3, 7, 2, 5, 9, 1, 2, 2, 4, 1, 4, 8, 0, 9, 1, 7,
  191.   8, 5, 2, 6, 8, 4, 2, 10, 4, 5, 10, 7}}
  192.  
  193. ListPlot[listaRand]
  194.  
  195.  
  196.  
  197. rok := 2015
  198. A := 24
  199. B := 5
  200. rA := Mod[rok, 19]
  201. rB := Mod[rok, 4]
  202. rC := Mod[rok, 7]
  203. rD := Mod[rA*19 + A, 30]
  204. rE := Mod[2*rB + 4*rC + 6*rD + B, 7]
  205. DataW := rD + rE + 22
  206. If[DataW <= 31, Print["Marzec " DataW], DataW -= 31;
  207.  Print[DataW "Kwiecien"]]
  208.  
  209. 5 Kwiecien
  210.  
  211. lww = {};
  212. For[f = 2001, f < 2100, f += 1, Print[f];
  213.  A := 24;
  214.  B := 5; rA := Mod[f, 19]; rB := Mod[f, 4];
  215.  rC := Mod[f, 7];
  216.  rD := Mod[rA*19 + A, 30];
  217.  rE := Mod[2*rB + 4*rC + 6*rD + B, 7];
  218.  DataW := rD + rE + 22;
  219.  If[DataW < 32, AppendTo[lww, {DataW, "Marzec ", f}], DataW -= 31;
  220.   AppendTo[lww, {DataW, "Kwiecien ", f}]]; Print[lww]]
  221. MatrixForm[lww]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement