Diễn đàn hỏi đáp học thuật - Download Tài Liệu Miễn Phí
Bạn có muốn phản ứng với tin nhắn này? Vui lòng đăng ký diễn đàn trong một vài cú nhấp chuột hoặc đăng nhập để tiếp tục.

Diễn đàn hỏi đáp học thuật - Download Tài Liệu Miễn PhíĐăng Nhập

VỮNG TIN - TIẾP BƯỚC - THÀNH CÔNG


descriptionGraphics 2D and 3D EmptyGraphics 2D and 3D

more_horiz

Code:

Plot[{x^2, -x^2, Sin[x]}, {x, -2Pi, 2Pi},
      PlotRange -> {{-5, 5}, {-5, 5}},
      Axes -> {True,True},
      AxesLabel -> "Park Min Young",
      AxesStyle -> {RGBColor[0, 1, 0],
      Thickness[0.001]},
      PlotStyle -> {{Hue[0.5]}, {Hue[0.6]}, {Hue[0.7]}}
];

Graphics 2D and 3D Abc10

Code:

ParametricPlot3D[{Cos[j]*Sin[i],Sin[j]Sin[i] , -Cos[i]}, {i, 0, Pi/2}, {j, -2Pi, 2Pi}]


Graphics 2D and 3D Abcd10

Đường hoa hổng r = aSin[nx], a là độ rộng của cánh và n là số cánh. Nếu n chẵn số cánh sẽ nhân đôi.
Biến đổi qua tọa độ cực ta được:
    x = a*Sin[n*x]*Cos[x]
    y = a*Sin[n*x]*Sin[x]

Code:

Show[Table[ParametricPlot[{{i*Sin[6*x]*Cos[x], i*Sin[6*x]*Sin[x]}}, {x, -Pi, Pi}], {i, 5}]];


Graphics 2D and 3D Ab10

Code:

Plot3D[Sin[x y]*Cos[3 y], {x, 0, 4}, {y, 0, 4},
      PlotPoints -> 40,
      Mesh ->False,
      Axes -> False,
      Boxed -> False
];


Graphics 2D and 3D A10

Hình cầu x^2+y^2+z^2 = 1. Ta biến đổi toạn độ trụ
    x = Cos[j]*Sin[i]
    y = Sin[j]Sin[i]
    z = Cos[i]

Code:

ParametricPlot3D[{Cos[j]*Sin[i], Sin[j]Sin[i] , Cos[i]}, {i, 0, Pi}, {j, 0, 2Pi},
      Boxed -> False,
      Axes -> False
]


Graphics 2D and 3D A110


Được sửa bởi Admin ngày Thu Apr 29, 2010 12:52 am; sửa lần 1.

descriptionGraphics 2D and 3D EmptyVẽ các đường tròn đồng tâm với các màu ngẫu nhiên

more_horiz

Code:

(*Ve cac duong tron dong tam voi mau khac nhau*)
dtron = Table[Graphics[{RGBColor[Random[Integer, {0, 1}], Random[Integer, {0,
      1}], Random[Integer, {0, 1}]], Circle[{0, 0}, i]}], {i, 0, 1, 0.1}];
Show[dtron];


Graphics 2D and 3D Dtron10

descriptionGraphics 2D and 3D EmptySử dụng phép quay 1 điểm quanh giốc tọa độ vẽ chùm đường thẳng quay quanh trục tọa độ

more_horiz

Code:

(*Su dung phep xoay ve chum duong thang xoay quanh tam*)
k = Table[{{0, 0}, {Cos[k], Sin[k]}}, {k, 0, 2Pi, 0.1}];
dthang = {};
For[i = 1, i ≤ Length[k], i++,
       dthang = Append[dthang, Graphics[
               {
                 RGBColor[
                      Random[Integer, {0, 1}],
                      Random[Integer, {0, 1}],
                      Random[Integer, {0, 1}]
                   ],
                 Line[k[[i]]]
                 }
               ]
             ];
       ];
Show[dthang];


Graphics 2D and 3D Dthang10

descriptionGraphics 2D and 3D EmptyKết hợp chùm đường thẳng và đường cong

more_horiz

Code:

Show[{dthang, dtron}];

Graphics 2D and 3D Dtron-10

descriptionGraphics 2D and 3D EmptyTịnh tuyến chùm đường tròn

more_horiz

Code:

dtron = Table[
      Graphics[
        {
          RGBColor[
               Random[Integer, {0, 1}],
               Random[Integer, {0, 1}],
               Random[Integer, {0, 1}]
            ],
          Circle[{j, 0}, i]
          }
        ],
      {i, 0, 1, 0.1},
      {j, 1, 10, 1.5}
      ];
Show[dtron];


Graphics 2D and 3D Chum-d10

descriptionGraphics 2D and 3D EmptyRe: Graphics 2D and 3D

more_horiz

Code:

(*x = a*Cos[j]*sin[i];
y = b*Sin[j]Sin[i];
z = c*Cos[i];*)
a = 1;
b = 1;
c = 6;
ParametricPlot3D[{a*Cos[j]*Sin[i] , c*Cos[i], b*Sin[j]Sin[i]}, {i, 0,
Pi/2}, {j, -2Pi, 2Pi}]

Graphics 2D and 3D Hyperb10

descriptionGraphics 2D and 3D EmptyRe: Graphics 2D and 3D

more_horiz

Code:

Show[
    {
         ParametricPlot3D[
              {
                   2*Cos[j]*Sin[i] ,
                   2*Sin[j]Sin[i],
                   6*Cos[i]
                },
              {i, 0, Pi/2},
              {j, -2Pi, 2Pi}
           ],
         ParametricPlot3D[
              {
                Cos[j]*Sin[i] ,
                Sin[j]Sin[i],
                3Cos[i]
                },
              {i, 0, Pi},
              {j, -2Pi, 2Pi}]
      }
    ];

Graphics 2D and 3D Hyperb11

descriptionGraphics 2D and 3D EmptyĐường trái tim

more_horiz
r = a*(1+sinx)
Biến đổi trong tọa độ cực:
x = rcosx = a*(1+sinx)*cosx
y = rsinx = a*(1+sinx)*sinx

Code:

Show[
    Table[
         ParametricPlot[
              {{i*(1 + Sin[x])*Cos[x], i*(1 + Sin[x])*Sin[x]}},
              {x, -Pi, Pi},
              PlotStyle -> Hue[Random[Real, {0, 5}]]
           ]
         ,
         {i, 5}
      ]
    ];

Graphics 2D and 3D Dtrait10

descriptionGraphics 2D and 3D EmptySử dụng phép quay 1 điểm A với một góc i quanh điểm M

more_horiz

Code:

(*Su dung phep xoay ve chum duong thang xoay quanh tam*)
k1 = Table[{{0, 0}, {0.5*Cos[i], 0.5*Sin[i]}}, {i, 0, Pi/2, 0.025}];
k2 = Table[{{1, 0}, {0.5*
        Cos[i] + (1 - Cos[i]), 0.5*Sin[i] - Sin[i] }}, {i, -Pi/2, 0, 0.025}];
k3 = Table[{{1, 1}, {0.5*Cos[i] - Sin[
    i] + (1 - Cos[i]) + Sin[i], 0.5*
        Sin[i] + Cos[i] - Sin[i] + (1 - Cos[i])}}, {i, 0, Pi/2, 0.025}];
k4 = Table[{{0, 1}, {-0.5*Sin[i] + Sin[
      i], 0.5*Cos[i] + (1 - Cos[i])}}, {i, 0, Pi/2, 0.025}];
dt1 = {};
dt2 = {};
dt3 = {};
dt4 = {};
For[i = 1, i ≤ Length[k2], i++,
       mau = RGBColor[
              Random[Integer, {0, 1}],
              Random[Integer, {0, 1}],
              Random[Integer, {0, 1}]
           ];
       dt1 = Append[dt1, Graphics[{mau, Line[k1[[i]]]}]];
       dt2 = Append[dt2, Graphics[{mau, Line[k2[[i]]]}]];
       dt3 = Append[dt3, Graphics[{mau, Line[k3[[i]]]}]];
       dt4 = Append[dt4, Graphics[{mau, Line[k4[[i]]]}]];
    ];
Show[{dt1, dt2, dt3, dt4}];



Graphics 2D and 3D Phepxo10

descriptionGraphics 2D and 3D EmptyVẽ tam giác qua các trung điểm.

more_horiz

Code:

A = Table[Random[Integer, {-3, 3}], {i, 3}, {j, 2}];
A = Append[A, A[[1]]];
B = Table[{(A[[i]][[1]] + A[[i + 1]][[1]])/2,(A[[i]][[2]] + A[[i + 1]][[2]])/2}, {i, 3}];
B = Append[B, B[[1]]];
TamGiac = Graphics[{{Hue[1.6], Line[A]},{Hue[0], PointSize[0.02], Point /@ A},{Text["A", A[[1]]], Text["B", A[[2]]], Text["C", A[[3]]]}}];
DTrungDiem = Graphics[{{PointSize[0.02], Hue[0.1], Point /@ B}, {Hue[1.2],Line[B]}}];
Show[{TamGiac, DTrungDiem}];

Graphics 2D and 3D Tamgia10

descriptionGraphics 2D and 3D EmptyVẽ mặt bất kỳ bằng phương pháp biến đổi toạ độ cầu

more_horiz

Code:

Clear[f, x, y, z, r];
f = Input["Nhap f(x,y,z)"];
f = ReplaceAll[f, {x -> r Cos[φ] Sin[θ], y ->
    r Sin[φ] Sin[θ], z -> r Cos[θ]}];
f = Solve[f == 0, {r}];
x = ReplaceAll[r Cos[φ] Sin[θ], f[[1, 1]]];
y = ReplaceAll[r Sin[φ] Sin[θ], f[[1, 1]]];
z = ReplaceAll[r Cos[θ], f[[1, 1]]];
ParametricPlot3D[{x, y, z}, {φ, -Pi, Pi}, {θ, -Pi, Pi}];


Input: f(x,y,z) = x^2 + y^2 + z^2/2 - 1
Output:
Graphics 2D and 3D Hinh_b10
Input: f(x,y,z = x^2 + y^2 + z^2 - 1
Output:
Graphics 2D and 3D A110

descriptionGraphics 2D and 3D EmptyGraphics: Line, Dashing

more_horiz

Code:

Clear[L, g1, g2, g3];
L = {{0, 0}, {0, 1}, {1, 1}, {1, 0}, {0, 0}};
g1 = Graphics[Line[L]];
g2 = Graphics[Line[{{0, 1/2}, {1/2, 1}, {1, 1/2}, {1/2, 0}, {0, 1/2}}]];
g3 = Graphics[{Hue[0.7], Dashing[{0.05, 0.05}],
      Line[{{1/2, 0}, {1/2, 1}}], Line[{{0, 1/2}, {1, 1/2}}]}];
Show[g1, g2, g3];

Graphics 2D and 3D Dashin10

descriptionGraphics 2D and 3D EmptyGraphics: Rectangle, Dish

more_horiz

Code:

Clear[g1, g2];
g1 = Graphics[{Hue[Random[]], Rectangle[{0, 0}, {1, 1}]}];
g2 = Table[Graphics[{Hue[Random[]], Disk[{1/2, 1/2},1/2, {i, i + Pi/2}]}], {i, 0, 2 Pi, Pi/8}];
Show[g1, g2];

Graphics 2D and 3D Disk10

descriptionGraphics 2D and 3D EmptyGraphics: Polygon

more_horiz

Code:

Clear[x, y];
x[φ_] := Cos[φ];
y[φ_] := Sin[φ];
g1 = Graphics[{Yellow, Polygon[Table[{x[i], y[i]}, {i, 0, 2 Pi, Pi/3}]]}];
g2 = Graphics[Line[Table[{x[i], y[i]}, {i, 0, 2 Pi, Pi/6}]]];
Show[g1, g2];

Graphics 2D and 3D Polygo10

descriptionGraphics 2D and 3D EmptyEvaluate

more_horiz

Code:

Clear[funs];
funs = {x^2 - 3, x^3/5 - x};
Plot[Evaluate[funs], {x, -7, 12}, Epilog -> {PointSize[0.04], (Point[{#,funs[[1]] /. x -> #}] &) /@ (x /. Solve[Equal @@ funs, x])}];

Graphics 2D and 3D Evalua10

descriptionGraphics 2D and 3D EmptyCuboid

more_horiz

Code:

Clear[L, g];
L = Table[{i, j, k}, {i, 0, 2}, {j, 0, 2}, {k, 0, 2}];
g = Table[Cuboid[L[[i, j, k]]], {i, 3}, {j, 3}, {k, 3}];
g = Union[Delete[Union[Delete[g, 0]], 0]];
Show[Graphics3D[g]];

Graphics 2D and 3D Cuboid10

descriptionGraphics 2D and 3D EmptyRe: Graphics 2D and 3D

more_horiz
privacy_tip Permissions in this forum:
Bạn không có quyền trả lời bài viết
power_settings_newLogin to reply