Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1998

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

Search the Archive

Re: Triangle function

  • To: mathgroup at
  • Subject: [mg14433] Re: [mg14410] Triangle function
  • From: "Kevin J. McCann" <kevinmccann at>
  • Date: Wed, 21 Oct 1998 03:32:29 -0400
  • Sender: owner-wri-mathgroup at

Try this

triangle[t_,T_]:=2Mod[t,T]/T /; Mod[t,T] <= T/2 triangle[t_,T_]:=2 -2
Mod[t,T]/T /; Mod[t,T] > T/2

Starts at t=0, peak at T/2, back to zero at t=T, and is periodic.


-----Original Message-----
From: Andrew Strobel <A.Strobel at> To: mathgroup at
Subject: [mg14433] [mg14410] Triangle function

>Has Mathematica got a triangle function where I can choose the frequency
>and the amplitude?
>The function is necessary to describe a voltage source. It must be an
>analytical function. 
>like this:
>  /\    /\
>/    \/    \
>Thank you for your help.
>Andrew Strobel

  • Prev by Date: RE: FactorInteger
  • Next by Date: Re: Corrupted NB
  • Previous by thread: RE: Triangle function
  • Next by thread: Re: Triangle function