| |
comp.soft-sys.math.mathematica |
I've been battling to try to get a solution to my equation, but it temp = Piecewise[{ N -> Piecewise[{ Is this type of operation possible, or am I stuck editing them by hand?
requires solving of a piecewise function, which I cannot work out how
to do. Say I have a piecewise function of the form
{ 2*N*x, x < 0},
{ N*x, x >= 0}
Solve[1==temp, N]
and either get, with the inequalities,
{1/(2*x), x < 0},
{1/x, x >= 0}
and factor it out to, say,
N * Piecewise[{
{2*x, x < 0},
{x, x >= 0}