Linked Questions

12 votes
3 answers

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

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

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

Verifying the solution of a numerically solved ODE [duplicate]

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

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

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

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

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

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

Saving DSolve results [duplicate]

Kendall's user avatar
  • 363
0 votes
3 answers

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

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

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

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

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