# Define solution for automated notebooks

Posted 2 months ago
359 Views
|
2 Replies
|
2 Total Likes
|
 Good eveningI have tried to find a solution for some time now, but have not found an answer, so I hope that you can help. I am looking to make automated solutions for specific exam question types. I am running into a problem, however.When using operations such as Solve[ ], the output might look something like: "x --> n". To calculate the next step using "x = n", I currently need to define this manually.Is there any way to automatically assign x the value n found using commands like Solve[ ]?With regards.
2 Replies
Sort By:
Posted 2 months ago
 Not quite sure I understand your question. Do you want something like that? x = x /. Solve[x^2 + a x + 1 == 0, x] Check also this example in the documentation of Solve, which make a convenient way to substitute solutions in other formulas of code eqns = {x^2 + y^2 == 1 && 2 x + 3 y == 4}; eqns /.Solve[eqns, {x, y}]