Tag Info

New answers tagged

0

There are a few issues. One is that your initial and boundary conditions do not match. I cleaned out some syntactical stuff, but I have no idea what you had in mind for the the WhenEvent. In general it's good to start with something simple and then add more complexity to the example. Here is something to get you started: gamma = 0.08; tMax = 10000.; xMax = ...


0

I just had the same question - and one thing that helped me with Mathematica was the Formula Manipulation help site which shows functions like Simplify, Expand, Factor, Reduce, Collect, Together, ... etc. Maybe it's possible to shrink your equation - or at least Expand or Factor out something to be able to make it a multiline equation.


4

You have a typo in your second equation. eqns = {2 + 2 a*d + 2 a*e == 0, 1 - 2 e + 2 d*b + 2 e*b == 0, 1 + 2 d*c + 2 e*c == 0, -2 + a^2 - 2 b + b^2 + c^2 == 0, -2 + a^2 + b^2 + c^2 == 0}; Solve[eqns, {a, b, c, d, e}] // Simplify


5

Oh, you just incorrectly type the equation in Mathematica, your second one should be: 1 - 2 d + 2 d b + 2 e b == 0, check the 2 d term. It's not a 2 b. Solve[{2 + 2 a d + 2 a e == 0, 1 - 2 d + 2 d b + 2 e b == 0, 1 + 2 d c + 2 e c == 0, a^2 + b^2 + c^2 - 2 == 2 b, a^2 + b^2 + c^2 - 2 == 0}, {a, b, c, d, e}] (* {{a -> -2 Sqrt[2/5], b -> 0, c ...


3

It's difficult to answer this question definitively, without more detail on the type of function that you're after. As you refer to the PiecewiseExpand function, I'm rather guessing that you're looking for a single, piecewise linear function that passes through the points. If so, perhaps this works: affineFormula[{{x1_, y1_}, {x2_, y2_}}, x_] := y1 + ...



Top 50 recent answers are included