Hi

How to calculate a bipolar trianglewave and save the values in an array?

Is must be posible to change amplitude and freqency.

How to calculate a bipolar trianglewave and save the values in an array?

Is must be posible to change amplitude and freqency.

Here you get the function to calculate a bipolar triangular wave...

How Do I Plot a Triangular Sine Wave?

Principle of storing points in a dynamic array...

```
Type
TPointReal = record
X: Real;
Y: Real;
end;
TriangleWavePointArray = array of TPointReal;
var
TriangleWavePoints: TriangleWavePointArray;
//initialze/clear array
SetLength(TriangleWavePoints,0);
//for each coordinate pair to add
SetLength(TriangleWavePoints,High(TriangleWavePoints)+1); //add a point
TriangleWavePoints[High(TriangleWavePoints)].X:=..
TriangleWavePoints[High(TriangleWavePoints)].Y:=..
```

Now all you have to do is calculate X and Y values by implementing the triangle wave formula from above link...

This one is on us!

(Get your first solution completely free - no credit card required)

UNLOCK SOLUTION
Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.