Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2002
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2002

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

Search the Archive

Testing that the elements are a list are exponential

  • To: mathgroup at smc.vnet.net
  • Subject: [mg32178] Testing that the elements are a list are exponential
  • From: guillerm at usal.es
  • Date: Fri, 4 Jan 2002 05:03:53 -0500 (EST)
  • Sender: owner-wri-mathgroup at wolfram.com

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/




  • Prev by Date: Length and Drop
  • Next by Date: Fractional derivative
  • Previous by thread: Re: Length and Drop
  • Next by thread: Re: Testing that the elements are a list are exponential