Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2007
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2007

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

Search the Archive

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



  • 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