MathGroup Archive 2003

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

Search the Archive

Re: Conversion Function -> List

  • To: mathgroup at
  • Subject: [mg44734] Re: Conversion Function -> List
  • From: bobhanlon at (Bob Hanlon)
  • Date: Mon, 24 Nov 2003 00:05:21 -0500 (EST)
  • References: <bpn3e7$ljo$>
  • Sender: owner-wri-mathgroup at

Here are a few ways

(List@@#)&  /@ (List @@ expr)

expr /. {Plus->List, Times->List}

Cases[expr, (f_)[x__] -> {x}]

Bob Hanlon

In article <bpn3e7$ljo$1 at>, zelenkov at (Vadim Zelenkov)

<< Given a function
    x y + Sin[x] Cos[y]

I need to convert it into the list

Generally, the purpose to convert a function
    Sum[p[i,x] q[i[y], {i,1,n}]

into the list

How to do it using Mathematica?

  • Prev by Date: How to get single letters bold instead italic
  • Next by Date: Re: solution of linear equations, please help!!
  • Previous by thread: Re: Conversion Function -> List
  • Next by thread: Re: Conversion Function -> List