New answers tagged arithmetic
7
Calculating eigenvalues involves solving for the roots of the characteristic polynomial, which is of degree equal to the order of the size of the matrix. When you input real numbers, it can search for the roots of the polynomial using numerical techniques. When you input exact integers (or rationals, probably) it tries to find exact answers for the roots of ...
4
Independently I arrived at something similar to Michael's answer, yet different. I borrowed his formatting function after seeing it as it works better than what I had. Perhaps this will also be of use:
evalFromBottom[expr_, lv_: 1] :=
If[lv > Depth@expr, expr,
With[{ev = Replace[expr, x_ :> RuleCondition[x], {-lv}]},
If[expr === ev, ...
10
Here's one idea. Hold the expression unevaluated and go up the expression tree from (near) the bottom, level by level, and evaluate.
expr = HoldForm[1/((a + 2 b)/c^2)] /. {a -> 1, b -> 2, c -> 3}
out = ToExpression@ToString[FullForm@#] & /@
(ReplacePart[expr, # -> Extract[expr, #] & /@ #] & /@
...
Top 50 recent answers are included

