Tag Info

New answers tagged

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 + ...


0

ReplaceAll[x/(1 + 3 c^2) + y/(1 + 3 c^2), 1/(1 + 3 c^2) -> z] x z + y z


4

The simplest way is to put a Print expression into your Table expression. Table[Print["i = ", i]; foo[i], {i, 0, 10}] If you only want to see the what is printed while the evaluation is running and have it automatically deleted upon completion, then use Table[PrintTemporary["i = ", i]; foo[i], {i, 0, 10}]



Top 50 recent answers are included