Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2005
*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 2005

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

Search the Archive

Periodic functions & attributes

  • To: mathgroup at smc.vnet.net
  • Subject: [mg53788] Periodic functions & attributes
  • From: "Scout" <user at domain.com>
  • Date: Thu, 27 Jan 2005 05:41:28 -0500 (EST)
  • Sender: owner-wri-mathgroup at wolfram.com

Hi all!

2 questions:

1)     How can I declare a periodic function?
That is of the type f[x+T] = f[x] for  x in Real.
I want to be able to simplify integral of the type:
Integrated [f[x], {x, h_Integer * T, k_Integer * T}] = (k-h) * Integrated 
[f[x], {x, 0, T}]

Writing:
setPeriodicFunction /:
    Integrated [
      setPeriodicFunction[f_Function, T_], {x_Symbol, h_Integer.T,
        k_Integer.T}] := (k - h)Integrate[f, {x, 0, T}];

I don't get a lot!


2)     Can I define my own attributes that can be assigned to symbol f 
(functions,...)? As for instance: Flat,Listable,ecc.

Thanks a lot!
~Scout~ 


  • Prev by Date: programming in mathematica
  • Next by Date: Re: Graphics'Master in 5.1
  • Previous by thread: Re: programming in mathematica
  • Next by thread: Re: Periodic functions & attributes