Re: How to change symbolic values to numbers
- To: mathgroup at smc.vnet.net
- Subject: [mg77074] Re: [mg77030] How to change symbolic values to numbers
- From: Bob Hanlon <hanlonr at cox.net>
- Date: Sat, 2 Jun 2007 04:24:27 -0400 (EDT)
- Reply-to: hanlonr at cox.net
f1[{x1_, x2_}] = Block[{}, {x1, 1 - x1}]; f1[{.5, 7}] {0.5,0.5} Bob Hanlon ---- "krzysztof.lisowski at wp.pl" <krzysztof.lisowski at wp.pl> wrote: > Hello for all. > I have a problem with changeing symbolic to number values: > > f1[{x1_,x2_}]=Block[{}, > L={x1, 1-x1}; > > Print[L]; (*Print prints {x1, 1-x1} but I want to get value {.5, . > 5)*) > > ]; > > fCE=f1[{x1,x2}]; fC[{x1_, x2_}]=fCE; > fCi:=(N[f1[#]])&; > fCa=fCi[{.5,.5}]; > fCa > > Any help would by very appreciated. > With best regards, > Krzysztof Lisowski > >