Qurak

Clear my definitions

Hướng dẫn 15 bước, chạy theo thứ tự trong một phiên. Từng bước đều được thực thi trên bộ máy và đầu ra bên dưới là những gì nó tạo ra.

Bước 1
x = 5;
y = 7;
x + y
Đầu ra
12
Bước 2
Clear[x, y]

Không có đầu ra - bước này chuẩn bị cho bước kế tiếp.

Bước 3
Expand[(x + y) ^ 2]
Đầu ra
x^2 + 2*x*y + y^2
Bước 4
Clear["Global`*"]

Không có đầu ra - bước này chuẩn bị cho bước kế tiếp.

Bước 5
f[x_] := Table[i, {i, 0, x}]

Không có đầu ra - bước này chuẩn bị cho bước kế tiếp.

Bước 6
f[{2, 4, 5, 6}]
Đầu ra
Table[i, {i, 0, {2, 4, 5, 6}}]
Bước 7
SetAttributes[f, Listable]
f[{2, 4, 5, 6}]
Đầu ra
{{0, 1, 2}, {0, 1, 2, 3, 4}, {0, 1, 2, 3, 4, 5}, {0, 1, 2, 3, 4, 5, 6}}
Bước 8
Clear[f]
 ? f
Đầu ra
InformationData[<|ObjectType -> Symbol, Usage -> Global`f, Documentation -> None, OwnValues -> None, UpValues -> None, DownValues -> None, SubValues -> None, DefaultValues -> None, NValues -> None, FormatValues -> None, Options -> None, Attributes -> {Listable}, FullName -> Global`f|>]
Bước 9
ClearAll[f]
 ? f
Đầu ra
Missing[UnknownSymbol, f]
Bước 10
f[x_] := Table[i, {i, 0, x}]
SetAttributes[f, Listable]
 ? f
Đầu ra
InformationData[<|ObjectType -> Symbol, Usage -> Global`f, Documentation -> None, OwnValues -> None, UpValues -> None, DownValues -> Information`InformationValueForm[DownValues, f, {f[x_] :> Table[i, {i, 0, x}]}], SubValues -> None, DefaultValues -> None, NValues -> None, FormatValues -> None, Options -> None, Attributes -> {Listable}, FullName -> Global`f|>]
Bước 11
ClearAttributes[f, Listable]
 ? f
Đầu ra
InformationData[<|ObjectType -> Symbol, Usage -> Global`f, Documentation -> None, OwnValues -> None, UpValues -> None, DownValues -> Information`InformationValueForm[DownValues, f, {f[x_] :> Table[i, {i, 0, x}]}], SubValues -> None, DefaultValues -> None, NValues -> None, FormatValues -> None, Options -> None, Attributes -> {}, FullName -> Global`f|>]
Bước 12
x = 5
Đầu ra
5
Bước 13
x=.
 ? x
Đầu ra
Missing[UnknownSymbol, x]
Bước 14
Remove[x]
 ? x
Đầu ra
Missing[UnknownSymbol, x]
Bước 15
x
 ? x
Đầu ra
Missing[UnknownSymbol, x]

Các hàm được dùng

Công thức liên quan

Tất cả công thức · Tài liệu tham chiếu hàm · Dùng cái này từ một client MCP