generate a triangle
GenerateTriangle( n, magnitude, frequency, phase, asymmetry )
posint, number of samples to generate
realcons, magnitude of the signal
realcons, the frequency of the signal (0 <= frequency < 1/2)
realcons, the phase of the signal (0 <= phase < 2Pi)
realcons, the asymmetry of the signal (-Pi <= asymmetry < Pi)
container : Array, predefined Array for holding results
The GenerateTriangle(n, magnitude, frequency, phase, asymmetry ) command generates n samples for a triangular signal. The result is returned in an Array with datatype float.
The value of the magnitude argument must be positive.
The value of the frequency argument must be non-negative and strictly less than 12.
The phase argument must be non-negative and strictly less than 2⁢π.
The asymmetry argument must be greater than or equal to −π, and strictly less than π. When the value of asymmetry is equal to 0, the resulting triangle is symmetric.
If the container=C option is provided, then the results are put into C and C is returned. With this option, no additional memory is allocated to store the result. The container must be an Array of size n having datatype float.
The SignalProcessing[GenerateTriangle] command is thread-safe as of Maple 17.
For more information on thread safety, see index/threadsafe.
c ≔ Array⁡1..10,'datatype'='float'8,'order'='C_order':
The SignalProcessing[GenerateTriangle] command was introduced in Maple 17.
For more information on Maple 17 changes, see Updates in Maple 17.
Download Help Document
What kind of issue would you like to report? (Optional)