MathGroup Archive 2007

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: How to change symbolic values to numbers


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



  • Prev by Date: Zoom 2D
  • Next by Date: Re: How to change symbolic values to numbers
  • Previous by thread: Re: How to change symbolic values to numbers
  • Next by thread: Re: How to change symbolic values to numbers