Talk:Triangle wave

message: arcsin(sin(x))= /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
try it...
:yepp, ((acos(sin(t)))/pi-0.5)*2*max_amplitude --217.230.116.48 (talk) 18:48, 20 January 2008 (UTC)
replies: text: Just because it's shaped like a triangle wave doesn't mean it's a triangle wave. A true triangle wave has equal DC offset, and y=acos(sin(t)) is all above the y axis. LokiClock (talk) 14:13, 9 May 2009 (UTC)
thread_title: arcsin

message: Should
:
\begin{align}
& {} = \frac{8}{\pi^2} \left( \sin (2\pi ft)-{1 \over 9} \sin (6 \pi ft)+{1 \over 25} \sin (10 \pi ft) + \cdots \right)
\end{align}
not read
:
\begin{align}
& {} = \frac{8}{\pi^2} \left( \sin (2\pi ft)+{1 \over 9} \sin (6 \pi ft)+{1 \over 25} \sin (10 \pi ft) + \cdots \right)
\end{align}
? (Notice I changed a - to a +)
--Evilc (talk) 12:03, 18 March 2010 (UTC)
replies: text: Good catch, I have fixed it (and a few other things).  Next time feel free to make the correction yourself, you don't need anyone's permission. SpinningSpark 11:09, 3 April 2010 (UTC)
replies: text: Just realised the article was changed by an IP to the wrong version and your version is wrong also, I didn't read it properly, I assumed you were proposing a changing the wrong version I could see in the article. The change I have made in the article is to the correct version. SpinningSpark 16:12, 3 April 2010 (UTC)
thread_title: Fourier expansion

message: I have reverted the recent addition of a triangle wave implementation with ICL8038.  First of all, this device is obsolete so this is not actually a practical means of generating triangle waves.  I am not at all sure that this belongs here in any case: it is aimed at the electronics hobbyist and as such is sailing close to WP:NOTHOWTO.  The piece is unsourced and is littered with errors as can easily be seen from the device data sheet, or else if they are not errors there is even more need for a reliable source.  It also seems to have escaped the poster (as s/he did not link to it) that there is already an article on this device, 8038 ic (sic) although this is equally dire. SpinningSpark 17:01, 2 March 2011 (UTC)
thread_title:  ICL8038 

message: The use of the abs(sawtooth) results in a range of 0-1, not -1 to 1 as implied in the first sentence of this section.  — Preceding unsigned comment added by Jcwill23 (talk • contribs) 21:43, 14 October 2012 (UTC)
thread_title:  definition section  

message: Shouldn't this
: x(t)=\frac{2}{a} \left (t-a \left \lfloor\frac{t}{a}+\frac{1}{2} \right \rfloor \right )(-1)^\left \lfloor\frac{t}{a}+\frac{1}{2} \right \rfloor
Be this?
: x(t)=\frac{2}{a} \left (2t-a \left \lfloor\frac{2t}{a}+\frac{1}{2} \right \rfloor \right )(-1)^\left \lfloor\frac{2t}{a}+\frac{1}{2} \right \rfloor
When I graph the first one, with :a = 1, its period is 2.
Eyamseryath (talk) 05:59, 13 March 2013 (UTC)
thread_title:  More Definiton Section 

message: The mentioned Fourier series in the "Harmonics" section seems to be a bad approximation:
https://www.wolframalpha.com/input/?i=sum+%28-1%29^k+*+sin%282+*+pi+*+t+*+%282+*+k+%2B+1%29%29+%2F+%282+*+k+%2B+1%29^2%2C+k%3D1+to+10
And it doesn't get any better with more iterations.
Can somebody explain?
:You should use k = 0 to 10, not k = 1 to 10, btw nice estimation of inf by 10 ;-) https://www.wolframalpha.com/input/?i=sum+%28-1%29^k+*+sin%282+*+pi+*+t+*+%282+*+k+%2B+1%29%29+%2F+%282+*+k+%2B+1%29^2,+k%3D0+to+10
- 2016. k = 1 to infinite can still work, however it requires a few changes. The approximation itself contains the Fourier series and the fourier coefficient (bn) as well as a method to automaticly sort out all the unnecessary bn coefficients (where bn = 0), of which there a lot. This is because the triangle wave best resembles a harmonic wave (compared to the sawtooth and square wave).
The root problem is the inbuilt number generator. Here's an example of two generators generating the same numbers:
Odd numbers generator 1.
Odd number = 2k-1, where k = 1,2,3,4,5...
Odd numbers generator 2.
Odd number = 2k+1, where k = 0,1,2,3,4...
That's why the approximation was dependant on k = 0 to infinite it was using + instead of -, however it also means it can be rewritten to work with k = 1 to infinite. I personally use this: https://www.wolframalpha.com/input/?i=sum+(-1)%5E(k%2B1)*+(sin%E2%81%A1(2%CF%80(2k-1)t))%2F(2k-1)%5E2),+k%3D1+to+10
The reason I like this better is because the constant k will be equal to the n'th-harmonic wave of the triangle wave, and seeing as this hasn't been changed I still think this has its relevance :)  — Preceding unsigned comment added by Flyingmadpakke (talk • contribs) 23:36, 16 December 2016 (UTC)
thread_title:  Bad approximation 

message: I can play the longer audio sample, but when I press the 5 second sample play button, nothing happens. Safari/iOS. Mcandre (talk) 17:26, 19 July 2016 (UTC)
thread_title:  audio problems 

message: How do I insert this equation?
: y=2 \frac{a \arcsin \left(\sin \left ( \frac{1}{ \frac{w}{4}} \left( \frac{x\pi} {2}-\frac{ \pi \left(h-\frac{w}{4} \right)}{2} \right) \right) \right)}{\pi}+v \right \rfloor
Entity Valkyrie (talk) 06:41, 13 August 2019 (UTC)
replies: text: I see that the equation that you provided does indeed work. Despite that, I am going to go ahead and remove your addition since a similar formula, specifically y(x) = \frac{2a}{\pi}\arcsin\left(\sin\left(\frac{2\pi}{p}x\right)\right), already appears at the bottome of the Definitions section. Although this equation, as well the rest of the equations in section, does not explicitly include variables for a horizontal or vertical shift I think that is okay because a reader can probably figure out how to include such shifts themself. In additon, the inclusion of such variables in the formulas would add detail which I think would also clutter the formulas. I also ask that you not edit my posts, nor anyone elses except your own, on talk pages as doing so can misrpresent the posts original meaning. More details regarding editing other's talk page posts can be found at WP:TPO. The Editor's Apprentice (talk) 17:41, 14 August 2019 (UTC)
thread_title:  A different equation