Re: Testing that the elements are a list are exponential
- To: mathgroup at smc.vnet.net
- Subject: [mg32210] Re: [mg32178] Testing that the elements are a list are exponential
- From: Andrzej Kozlowski <andrzej at tuins.ac.jp>
- Date: Sun, 6 Jan 2002 03:38:25 -0500 (EST)
- Sender: owner-wri-mathgroup at wolfram.com
On Friday, January 4, 2002, at 07:03 PM, guillerm at usal.es wrote: "Is an exponential or zero" is a bit vague but perhaps this will suffice: F[x_?(# == 0 || # == E || #[[1]] == E &)] Andrzej Kozlowski Toyama International University JAPAN http://platon.c.u-tokyo.ac.jp/andrzej/ > Dear friends, > > I have a make a function where all element of a list should > be exponentials or cero. > Here is an example > > lst1 = { 0, 1.4 Exp [-3 t] + 1.2 Exp [- t], 0, 0.24 Exp [a t]} > > F[x_] := x /. a_*E^(s_*t) -> (a*(-1 + E^(s*t)))/s > > It works > > F[lst1] > > But I need define F[x_?Test] where ?Test check that all element of > list are > exponentials or cero. How I can build the test? > > HNY every boy > > Guillermo Sanchez > > > --------------------------------------------- > This message was sent using Endymion MailMan. > http://www.endymion.com/products/mailman/ > > > > >