Qurak

Clear my definitions

Veiledning 15 steg, kjørt i rekkefølge i én økt. Hvert steg ble kjørt mot motoren, og utdataene nedenfor er det de ga.

Steg 1
x = 5;
y = 7;
x + y
Utdata
12
Steg 2
Clear[x, y]

Ingen utdata - dette steget setter opp noe for det neste.

Steg 3
Expand[(x + y) ^ 2]
Utdata
x^2 + 2*x*y + y^2
Steg 4
Clear["Global`*"]

Ingen utdata - dette steget setter opp noe for det neste.

Steg 5
f[x_] := Table[i, {i, 0, x}]

Ingen utdata - dette steget setter opp noe for det neste.

Steg 6
f[{2, 4, 5, 6}]
Utdata
Table[i, {i, 0, {2, 4, 5, 6}}]
Steg 7
SetAttributes[f, Listable]
f[{2, 4, 5, 6}]
Utdata
{{0, 1, 2}, {0, 1, 2, 3, 4}, {0, 1, 2, 3, 4, 5}, {0, 1, 2, 3, 4, 5, 6}}
Steg 8
Clear[f]
 ? f
Utdata
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|>]
Steg 9
ClearAll[f]
 ? f
Utdata
Missing[UnknownSymbol, f]
Steg 10
f[x_] := Table[i, {i, 0, x}]
SetAttributes[f, Listable]
 ? f
Utdata
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|>]
Steg 11
ClearAttributes[f, Listable]
 ? f
Utdata
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|>]
Steg 12
x = 5
Utdata
5
Steg 13
x=.
 ? x
Utdata
Missing[UnknownSymbol, x]
Steg 14
Remove[x]
 ? x
Utdata
Missing[UnknownSymbol, x]
Steg 15
x
 ? x
Utdata
Missing[UnknownSymbol, x]

Funksjoner brukt

Relaterte oppskrifter

Alle oppskrifter · Funksjonsreferanse · Bruk dette fra en MCP-klient