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: [mg77070] Re: How to change symbolic values to numbers
  • From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
  • Date: Sat, 2 Jun 2007 04:22:16 -0400 (EDT)
  • Organization: Uni Leipzig
  • References: <f3of5j$oq2$1@smc.vnet.net>
  • Reply-to: kuska at informatik.uni-leipzig.de

Hi,

and what does

f1[{x1_, x2_}] := Block[{L}, L = {x1, 1 - x1};
    Print[L];(*Print prints {x1,1-x1} but I want to get value {.5, .5)*)
];

and is Block[{},___] not nonsense ? because if you don't
have local variabels you don't need a block and

f1[{x1_, x2_}] := Print[{x1,1-x1}]

would do it as well?

Regards
   Jens

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: Re: How-to's in v6 ???
  • Next by Date: Zoom 2D
  • Previous by thread: How to change symbolic values to numbers
  • Next by thread: Re: How to change symbolic values to numbers