asked on # Calculate TriangleWave

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.

DelphiMath / Science

I had try the above formula. And the problem is that if you change the freqency and amplitude then the height og the triangle Varies.

The amplitude IS the height on every graph I have seen. I imagine that means you have some custom trait you want for your graph. How would it show the amplitude without changing the height? If you can explain this then we should be able to help you achieve the desired effect.

Your help has saved me hundreds of hours of internet surfing.

fblack61

The problem is that if you use the following formula to draw a triangle wave (2/pi)*10*arcsin(sin(5x)) (amplitude: 10 - freqency: 5) you Will see that the amplitude varies over time. I need a triangle wave with a constant amplitude at all the time.

Log in or sign up to see answer

Become an EE member today7-DAY FREE TRIAL

Members can start a 7-Day Free trial then enjoy unlimited access to the platform

or

Learn why we charge membership fees

We get it - no one likes a content blocker. Take one extra minute and find out why we block content.

Not exactly the question you had in mind?

Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.

ask a question
Sorry for the waiting time I just want back from vacation.

developmentguru: U are right is was an illusion, the amplutide does not varying.

developmentguru: U are right is was an illusion, the amplutide does not varying.

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...

Open in new window

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