Tagged Questions
2
votes
1answer
93 views
How to transform an expression using algebraical instead of pattern rules [duplicate]
I would like to transform rules algebraically. A very simple example would be: -
k^2 - 2 k x + x^2 /. {2*k -> 1}
This transforms to: -
$$k^2-2 k x+x^2$$
...
0
votes
2answers
83 views
How to use Solve rules as a function body?
Solve gives me an expression which I want to use as the body of a function. Rather than run Solve every time inside my function ...
4
votes
3answers
223 views
Replace function and its derivatives found with Solve
If I have an equation
eq = f[x] + g[x] == 0
and I solve for f[x]
sol = Solve[eq,f[x]]
...
0
votes
1answer
85 views
Numerical rule evaluation -> {True, False} to deviation of target equation
I solve some equations numerically with FindRoot[] returning a quadruple {1,2,3,4}.
Because the solver sometimes do not find any roots depending on parameterization of these equations I select only ...
6
votes
3answers
438 views
Arithmetic operation on the value returned by Solve
I want to modify the value that is returned by Solve. Example:
SolC1 = Solve[Sin[ π x / L] == 1, x]
{{x -> L/2}}
I need to add n to x so that x becomes ...
15
votes
3answers
371 views
Using results of Reduce
Suppose I have function f:
f[x_, y_] := 50000 + x 30000 + y 35000;
Now I want to find the x and y when f[]<=200000.
I use Reduce:
...