MathGroup Archive 1998

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

Search the Archive

Re: Triangle function


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.

Kevin

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


>Hello,
>
>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:
>
>
>  /\    /\
>-/--\--/--\---->t
>/    \/    \
>
>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