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

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

Search the Archive

Re: periodic function

  • To: mathgroup at smc.vnet.net
  • Subject: [mg4085] Re: periodic function
  • From: wagner at motel6.cs.colorado.edu (Dave Wagner)
  • Date: Fri, 31 May 1996 01:36:11 -0400
  • Organization: University of Colorado, Boulder
  • Sender: owner-wri-mathgroup at wolfram.com

In article <4obep3$na9 at dragonfly.wolfram.com>,
Michel GOSSE  <101632.1565 at CompuServe.COM> wrote:
>I want to plot with Mathematica a periodic fonction. I would like 
>to give the expression between 0 and T (the period) and then use a 
>command like plot(f,{x,a,b}) and the function will plot directly. 
>Is it possible ? 

You should be able to make a definition like this:

	f[t_] := whatever /; 0 <= t < T
	f[t_] := f[Mod[t, T]]

The second rule will be used only when t is outside the range 0..T.

		Dave Wagner
		Principia Consulting
		(303) 786-8371
		dbwagner at princon.com
		http://www.princon.com/princon

==== [MESSAGE SEPARATOR] ====


  • Prev by Date: Dirac Delta Function
  • Next by Date: Vector field plotting on Mathematica ??!
  • Previous by thread: periodic function
  • Next by thread: mathematica and HP-UX 10.10