Qurak

Use rule solutions

How-to 20 stappen, op volgorde uitgevoerd in één sessie. Elke stap is tegen de engine uitgevoerd en de uitvoer hieronder is wat hij opleverde.

Stap 1
s = Solve[x + 3 == 5, x]
Uitvoer
{{x -> 2}}
Stap 2
s[[1]]
Uitvoer
{x -> 2}
Stap 3
x + 4 /. s[[1]]
Uitvoer
6
Stap 4
t = Solve[x ^ 2 == 9, x]
Uitvoer
{{x -> -3}, {x -> 3}}
Stap 5
x + 4 /. t[[2]]
Uitvoer
7
Stap 6
eqns = {x + 3 == 4, y - 5 == 2, 3z == 4}
Uitvoer
{3 + x == 4, -5 + y == 2, 3*z == 4}
Stap 7
u = Solve[eqns, {x, y, z}]
Uitvoer
{{x -> 1, y -> 7, z -> 4/3}}
Stap 8
u[[1]]
Uitvoer
{x -> 1, y -> 7, z -> 4/3}
Stap 9
x + y + z /. u[[1]]
Uitvoer
28/3
Stap 10
u[[1, 1]]
Uitvoer
x -> 1
Stap 11
x + y + z /. u[[1, 1]]
Uitvoer
1 + y + z
Stap 12
x + y + z /. {u[[1, 2]], u[[1, 3]]}
Uitvoer
25/3 + x
Stap 13
v = Solve[{x ^ 2 + y ^ 2 + z ^ 2 == 9, y == x, y == z}, {x, y, z}]
Uitvoer
{{x -> Sqrt[3], y -> Sqrt[3], z -> Sqrt[3]}}
Stap 14
x + y + z /. v
Uitvoer
{3*Sqrt[3]}
Stap 15
eqn = x ^ 2 + 2a x + 1 == 0;

Geen uitvoer - deze stap zet iets klaar voor de volgende.

Stap 16
sol = Solve[eqn, x]
Uitvoer
{{x -> (-2*a - 2*Sqrt[-1 + a^2])/2}, {x -> (-2*a + 2*Sqrt[-1 + a^2])/2}}
Stap 17
sub = eqn /. sol
Uitvoer
{1 + (-2*a - 2*Sqrt[-1 + a^2])^2/4 + a*(-2*a - 2*Sqrt[-1 + a^2]) == 0, 1 + (-2*a + 2*Sqrt[-1 + a^2])^2/4 + a*(-2*a + 2*Sqrt[-1 + a^2]) == 0}
Stap 18
Simplify[sub]
Uitvoer
{True, True}
Stap 19
Plot[x /. sol, {a, -5, 5}]
Uitvoer
-Graphics-
Stap 20
Plot[x /. sol[[1]], {a, -5, 5}]
Uitvoer
-Graphics-

Gebruikte functies

Gerelateerde recepten

Alle recepten · Functiereferentie · Gebruik dit vanuit een MCP-client