7 Oct
2014
7 Oct
'14
6:23 a.m.
On Tue, Oct 7, 2014 at 1:14 AM, Bill Gosper <billgosper@gmail.com> wrote:
Out[520]= 1/4 Sqrt[(a + b - c) (a - b + c) (-a + b + c) (a + b + c)] --rwg Side issue (Attention eavesdropping kids!): Given %520, how do you define Heron[a_,b_,c_], short of copying and pasting (which may not always be possible)? I'm guessing your solution doesn't create a value Heron[a_,b_,c_]:=1/4 ... , so you won't be able to reexecute the definition when you reload the notebook. How do you get an executable definition? No wonder everybody just copies and pastes!
Heron[A_,B_,C_] := %520 /. {a->A,b->B,c->C} --Michael -- Forewarned is worth an octopus in the bush.