MathGroup Archive 2005

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

Search the Archive

Periodic functions & attributes


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