Linked Questions

12 votes
3 answers
11k views

Assign output of solve to variables [duplicate]

I have this input: Solve[x^2 + 3 x + 2 == 0, x] which gives this output: {{x -> -2}, {x -> -1}} I want the first x ...
Onizuka's user avatar
  • 349
10 votes
1 answer
17k views

Setting a variable equal to the output of FindRoot [duplicate]

I define a function $f(x)$ as f[x_] := x*Exp[-x] - 0.16064; Then I set a variable actualroot to the function ...
DWC's user avatar
  • 103
1 vote
8 answers
125 views

How to automatically get {a,b,c} from {x -> a, y -> b, z -> c}? [duplicate]

I want to get the graphic of a 3D-straight line: First: ...
lotus2019's user avatar
  • 2,091
5 votes
2 answers
460 views

Verifying the solution of a numerically solved ODE [duplicate]

I am solving this equation; ...
12345's user avatar
  • 199
4 votes
1 answer
2k views

How to use output from previous line in Plot? [duplicate]

Suppose, I want to solve a equation and want to obtain it's first root. In this case I've used In[1]=:Solve[b^2 + b*z + 1 == 0, b][[1]] This gives ...
Doon's user avatar
  • 319
0 votes
2 answers
4k views

How to get a number from Solve [duplicate]

It's often useful to get just one number from Solve. I use the following construction for acquiring one solution from the expression returned by ...
Himura's user avatar
  • 131
2 votes
1 answer
2k views

How to extract Solve results as variables [duplicate]

Possible Duplicate: Assign the results from a Solve to variable(s) In the following example: ...
Peeter Joot's user avatar
  • 6,418
0 votes
1 answer
3k views

Assign the result of Solve in a list [duplicate]

Possible Duplicate: Assign the results from a Solve to variable(s) I want to assign the results of a Solve command in a list. For example Solve[-((287 s^3)/50) == 0, s] returns {{s -> 0}, {s -> 0}...
Lazaros Moysis's user avatar
4 votes
1 answer
526 views

Check if an inequality holds among the solutions returned by Solve [duplicate]

Let's say I solve a system: Solve[{a == 3* c, b == 2 *a}, {a, b}] and then want to see if the values found for a and ...
Sulli's user avatar
  • 2,185
3 votes
2 answers
1k views

Saving DSolve results [duplicate]

...
Kendall's user avatar
  • 363
0 votes
3 answers
175 views

beginner's question: change a parameter while get variable answers [duplicate]

I'm new to Mathematica from R, since R is not quite good at dealing with the following problem. Say, i want to solve the function a x - 10 = 0. Each time I change the value of a, say, from 1 to 10 by ...
Yanyuan Zhu's user avatar
0 votes
1 answer
489 views

How do I make a function from a solution? [duplicate]

This expression: FullSimplify[Solve[dx == dL - (1/2) dd, dL]] Gives this solution (I've simplified it for brevity): $$\left\{\left\{ d_L\rightarrow \frac{\sqrt{...
Quark Soup's user avatar
  • 1,610
0 votes
1 answer
1k views

How do I assign the solutions of an equation to separate variables? [duplicate]

I'm a beginner to Mathematica. Here's my question. I'd like to store the output(s) of a Solve command to variable(s) that can be manipulated later. For example, I would like x1 and x2 to be the two ...
user31012's user avatar
0 votes
1 answer
692 views

Storing output of Solve in the variables themselves [duplicate]

I solved a set of equations with indexed variables using Solve. How can I get the output solution to be stored in the variables themselves? I obtained the results ...
Bran's user avatar
  • 275
0 votes
1 answer
691 views

How to define the result of Solve as the variable [duplicate]

Consider the operation Solve[f[x,y,z] == 0, x] I want to put the solutions for x obtained by this operation as the new variable. I tried to use ToString, ...
John Taylor's user avatar
  • 5,733

15 30 50 per page