MathGroup Archive 2005

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

Search the Archive

Re: display of function


Hi,

u[y] /. n -> 3 /. Subscript -> Part

??

Regards

  Jens

"Bosch, Darrell" <bosch at vt.edu> schrieb im 
Newsbeitrag news:dad7oo$t91$1 at smc.vnet.net...
>
> Dear Math Group:
>
>            The first equation below shows a 
> function for u(y) which is
> the sum of the products of pi times yi.  In the 
> following steps, I
> assign values of p and y.   How can I get 
> Mathematica to display the
> numerical value of u for the given p and y 
> values?  When I insert the
> u[y] command, I just get a repeat of the 
> equation I have entered.
> Thanks for your suggestions.  This group is a 
> great help.  Darrell
>
>
>
> u[y_] := Sum[Subscript[p, i]*Subscript[y, i],
>
>   {i, 1, n}]
>
>
>
> p = {.3,.4,.3}
>
>
>
> y={10000, 20000, 30000}
>
> 



  • Prev by Date: Any ideas about solving an underdetermined system?
  • Next by Date: Re: Function to handle array with variable _number_ of dimensions?
  • Previous by thread: Re: display of function
  • Next by thread: Re: display of function