1606:. 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
84:
74:
53:
22:
1195:- 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).
1467:
1126:
964:
560:
388:
638:
Neither of the two formulas for x(t) actually give (a non-bandlimited version of) the waveform shown at the top of the page. They give some combination of incorrect amplitude, incorrect vertical shift, incorrect frequency, or incorrect phase. They are easy to fix but nonetheless it is misleading to
608:
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.
1315:
684:. 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
1600:
975:
826:
400:
228:
765:
I agree - I am trying to implement it in the time-domain and I was surprised to find the energy-output only half of what it should be. Had a "duh" moment when I saw the graph. I'll change it on the main page.
660:
I was just generating a triangle wave via additive synthesis and found this page unhelpful. What I ended up with was trivial: cos(wt)+cos(3wt)/9+cos(5wt)/25+... Any reason this isn't the expression shown?
202:
While doing some experiments, I actually noticed that a triangle wave has the odd members of the harmonics encountered in a square wave; that is, that in contains the harmonic frequencies 1, 5, 9, 13 aso.
692:, 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,
1210:
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 :)
1462:{\displaystyle y=2{\frac {a\arcsin \left(\sin \left({\frac {1}{\frac {\lambda }{4}}}\left({\frac {x\pi }{2}}-{\frac {\pi \left(h-{\frac {\lambda }{4}}\right)}{2}}\right)\right)\right)}{\pi }}+v}
405:
233:
1204:
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:
140:
1295:
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</math: -->
1198:
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...
1121:{\displaystyle 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 }}
959:{\displaystyle 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 }}
1180:
184:
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.
1508:
1189:
1252:
It does appear that the summation in the
Harmonics section should start at 0, otherwise there is no fundamental and the series does not converge to a triangle wave.
1155:
555:{\displaystyle {\begin{aligned}&{}={\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{aligned}}}
383:{\displaystyle {\begin{aligned}&{}={\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{aligned}}}
1505:
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
1639:
130:
1634:
1205:
1619:
1238:
Shouldn't the approximation include normalization coefficient if I want to have it normalized ? Other pages like square, sawtooth all have this.
583:
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.
106:
1225:
171:
1253:
804:
646:
1615:
1474:
662:
1181:
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
204:
97:
58:
1190:
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
1478:
746:
1611:
1470:
33:
730:
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.
1271:
I can play the longer audio sample, but when I press the 5 second sample play button, nothing happens. Safari/iOS.
1206:
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
1488:
1303:
779:
771:
1221:
175:
21:
650:
1257:
800:
1164:
208:
1500:
1484:
1299:
666:
1217:
796:
756:
742:
39:
83:
1213:
792:
775:
767:
734:
642:
752:
738:
189:
105:
on
Knowledge. If you would like to participate, please visit the project page, where you can join
1595:{\displaystyle y(x)={\frac {2a}{\pi }}\arcsin \left(\sin \left({\frac {2\pi }{p}}x\right)\right)}
1243:
701:
685:
610:
584:
89:
569:
73:
52:
1276:
1160:
573:
1178:
The mentioned
Fourier series in the "Harmonics" section seems to be a bad approximation:
1134:
185:
1628:
1607:
1603:
1239:
1272:
1188:
You should use k = 0 to 10, not k = 1 to 10, btw nice estimation of inf by 10 ;-)
688:. The piece is unsourced and is littered with errors as can easily be seen from
102:
79:
689:
1483:
Yes. You can try it in Desmos to see if it works. I replace w with lambda.
1184:
And it doesn't get any better with more iterations. Can somebody explain?
693:
1492:
1312:
Your original formula had some syntax errors, is this what you meant?
1307:
1280:
1261:
1247:
1229:
1168:
808:
783:
760:
720:
670:
654:
629:
603:
577:
212:
193:
179:
1201:
Odd numbers generator 2. Odd number = 2k+1, where k = 0,1,2,3,4...
15:
774:) 21:21, 25 October 2012 (UTC) (note: it's 2*(function)-1)
681:
1511:
1318:
1137:
978:
829:
403:
231:
162:
arcsin(sin(x))= /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
101:, a collaborative effort to improve the coverage of
1594:
1461:
1149:
1120:
958:
554:
382:
639:imply that they will yield the given waveform.
170:yepp, ((acos(sin(t)))/pi-0.5)*2*max_amplitude --
8:
19:
1211:
47:
1564:
1527:
1510:
1411:
1394:
1376:
1356:
1328:
1317:
1136:
1101:
1083:
1077:
1044:
1026:
994:
977:
939:
926:
920:
887:
874:
845:
828:
682:triangle wave implementation with ICL8038
680:I have reverted the recent addition of a
503:
466:
426:
417:
412:
404:
402:
331:
294:
254:
245:
240:
232:
230:
1602:, already appears at the bottome of the
49:
7:
95:This article is within the scope of
38:It is of interest to the following
1131:When I graph the first one, with :
14:
1640:Low-priority mathematics articles
700:) although this is equally dire.
115:Knowledge:WikiProject Mathematics
1635:Start-Class mathematics articles
565:? (Notice I changed a - to a +)
118:Template:WikiProject Mathematics
82:
72:
51:
20:
1290:How do I insert this equation?
135:This article has been rated as
1521:
1515:
1074:
1064:
988:
982:
917:
907:
839:
833:
749:) 21:43, 14 October 2012 (UTC)
534:
519:
497:
482:
460:
445:
362:
347:
325:
310:
288:
273:
1:
1248:06:57, 17 December 2017 (UTC)
1230:23:36, 16 December 2016 (UTC)
671:22:17, 19 December 2010 (UTC)
109:and see a list of open tasks.
784:22:09, 25 October 2012 (UTC)
761:08:37, 15 October 2012 (UTC)
180:18:48, 20 January 2008 (UTC)
1620:17:41, 14 August 2019 (UTC)
1493:03:58, 14 August 2019 (UTC)
1479:18:07, 13 August 2019 (UTC)
1308:06:41, 13 August 2019 (UTC)
788:Try sin y = cos x Alfred.
213:14:24, 29 August 2008 (UTC)
1656:
1169:05:59, 13 March 2013 (UTC)
578:12:03, 18 March 2010 (UTC)
1281:17:26, 19 July 2016 (UTC)
1262:06:36, 16 June 2019 (UTC)
721:17:01, 2 March 2011 (UTC)
630:16:12, 3 April 2010 (UTC)
604:11:09, 3 April 2010 (UTC)
134:
67:
46:
809:19:13, 2 July 2015 (UTC)
655:06:09, 14 May 2010 (UTC)
141:project's priority scale
1612:The Editor's Apprentice
1471:The Editor's Apprentice
194:14:13, 9 May 2009 (UTC)
98:WikiProject Mathematics
1596:
1463:
1151:
1122:
960:
816:More Definiton Section
556:
384:
28:This article is rated
1597:
1464:
1152:
1123:
961:
690:the device data sheet
557:
385:
1509:
1316:
1286:A different equation
1135:
976:
827:
401:
229:
121:mathematics articles
1604:Definitions section
1157:, its period is 2.
1150:{\displaystyle a=1}
1592:
1459:
1147:
1118:
956:
726:definition section
552:
550:
380:
378:
90:Mathematics portal
34:content assessment
1577:
1540:
1451:
1430:
1419:
1389:
1369:
1368:
1232:
1216:comment added by
1174:Bad approximation
1109:
1096:
1052:
1039:
1002:
947:
934:
895:
882:
853:
812:
795:comment added by
751:
737:comment added by
645:comment added by
511:
474:
432:
339:
302:
260:
218:Fourier expansion
155:
154:
151:
150:
147:
146:
1647:
1601:
1599:
1598:
1593:
1591:
1587:
1586:
1582:
1578:
1573:
1565:
1541:
1536:
1528:
1504:
1468:
1466:
1465:
1460:
1452:
1447:
1446:
1442:
1441:
1437:
1436:
1432:
1431:
1426:
1425:
1421:
1420:
1412:
1395:
1390:
1385:
1377:
1370:
1361:
1357:
1329:
1156:
1154:
1153:
1148:
1127:
1125:
1124:
1119:
1117:
1116:
1115:
1111:
1110:
1102:
1097:
1092:
1084:
1063:
1059:
1058:
1054:
1053:
1045:
1040:
1035:
1027:
1003:
995:
965:
963:
962:
957:
955:
954:
953:
949:
948:
940:
935:
927:
906:
902:
901:
897:
896:
888:
883:
875:
854:
846:
811:
789:
750:
731:
717:
714:
713:
710:
709:
657:
626:
623:
622:
619:
618:
600:
597:
596:
593:
592:
561:
559:
558:
553:
551:
547:
543:
512:
504:
475:
467:
433:
431:
430:
418:
413:
389:
387:
386:
381:
379:
375:
371:
340:
332:
303:
295:
261:
259:
258:
246:
241:
123:
122:
119:
116:
113:
92:
87:
86:
76:
69:
68:
63:
55:
48:
31:
25:
24:
16:
1655:
1654:
1650:
1649:
1648:
1646:
1645:
1644:
1625:
1624:
1566:
1563:
1559:
1552:
1548:
1529:
1507:
1506:
1501:Entity Valkyrie
1498:
1485:Entity Valkyrie
1404:
1400:
1396:
1378:
1375:
1371:
1355:
1351:
1344:
1340:
1330:
1314:
1313:
1300:Entity Valkyrie
1288:
1269:
1176:
1133:
1132:
1085:
1082:
1078:
1073:
1028:
1025:
1021:
1008:
1004:
974:
973:
925:
921:
916:
873:
869:
859:
855:
825:
824:
820:Shouldn't this
818:
790:
776:RonaldKunenborg
768:RonaldKunenborg
732:
728:
715:
711:
707:
705:
703:
678:
640:
624:
620:
616:
614:
612:
598:
594:
590:
588:
586:
549:
548:
438:
434:
422:
408:
399:
398:
377:
376:
266:
262:
250:
236:
227:
226:
220:
160:
120:
117:
114:
111:
110:
88:
81:
61:
32:on Knowledge's
29:
12:
11:
5:
1653:
1651:
1643:
1642:
1637:
1627:
1626:
1623:
1622:
1590:
1585:
1581:
1576:
1572:
1569:
1562:
1558:
1555:
1551:
1547:
1544:
1539:
1535:
1532:
1526:
1523:
1520:
1517:
1514:
1469:
1458:
1455:
1450:
1445:
1440:
1435:
1429:
1424:
1418:
1415:
1410:
1407:
1403:
1399:
1393:
1388:
1384:
1381:
1374:
1367:
1364:
1360:
1354:
1350:
1347:
1343:
1339:
1336:
1333:
1327:
1324:
1321:
1297:
1296:
1287:
1284:
1268:
1267:audio problems
1265:
1218:Flyingmadpakke
1193:
1192:
1183:
1179:
1175:
1172:
1146:
1143:
1140:
1129:
1128:
1114:
1108:
1105:
1100:
1095:
1091:
1088:
1081:
1076:
1072:
1069:
1066:
1062:
1057:
1051:
1048:
1043:
1038:
1034:
1031:
1024:
1020:
1017:
1014:
1011:
1007:
1001:
998:
993:
990:
987:
984:
981:
967:
966:
952:
946:
943:
938:
933:
930:
924:
919:
915:
912:
909:
905:
900:
894:
891:
886:
881:
878:
872:
868:
865:
862:
858:
852:
849:
844:
841:
838:
835:
832:
817:
814:
727:
724:
677:
674:
636:
635:
634:
633:
632:
563:
562:
546:
542:
539:
536:
533:
530:
527:
524:
521:
518:
515:
510:
507:
502:
499:
496:
493:
490:
487:
484:
481:
478:
473:
470:
465:
462:
459:
456:
453:
450:
447:
444:
441:
437:
429:
425:
421:
416:
411:
409:
407:
406:
393:
391:
390:
374:
370:
367:
364:
361:
358:
355:
352:
349:
346:
343:
338:
335:
330:
327:
324:
321:
318:
315:
312:
309:
306:
301:
298:
293:
290:
287:
284:
281:
278:
275:
272:
269:
265:
257:
253:
249:
244:
239:
237:
235:
234:
219:
216:
201:
199:
198:
197:
196:
172:217.230.116.48
165:
159:
156:
153:
152:
149:
148:
145:
144:
133:
127:
126:
124:
107:the discussion
94:
93:
77:
65:
64:
56:
44:
43:
37:
26:
13:
10:
9:
6:
4:
3:
2:
1652:
1641:
1638:
1636:
1633:
1632:
1630:
1621:
1617:
1613:
1609:
1605:
1588:
1583:
1579:
1574:
1570:
1567:
1560:
1556:
1553:
1549:
1545:
1542:
1537:
1533:
1530:
1524:
1518:
1512:
1502:
1497:
1496:
1495:
1494:
1490:
1486:
1481:
1480:
1476:
1472:
1456:
1453:
1448:
1443:
1438:
1433:
1427:
1422:
1416:
1413:
1408:
1405:
1401:
1397:
1391:
1386:
1382:
1379:
1372:
1365:
1362:
1358:
1352:
1348:
1345:
1341:
1337:
1334:
1331:
1325:
1322:
1319:
1310:
1309:
1305:
1301:
1294:<math: -->
1293:
1292:
1291:
1285:
1283:
1282:
1278:
1274:
1266:
1264:
1263:
1259:
1255:
1254:219.89.88.252
1250:
1249:
1245:
1241:
1236:
1233:
1231:
1227:
1223:
1219:
1215:
1208:
1207:
1202:
1199:
1196:
1191:
1187:
1186:
1185:
1182:
1173:
1171:
1170:
1166:
1162:
1158:
1144:
1141:
1138:
1112:
1106:
1103:
1098:
1093:
1089:
1086:
1079:
1070:
1067:
1060:
1055:
1049:
1046:
1041:
1036:
1032:
1029:
1022:
1018:
1015:
1012:
1009:
1005:
999:
996:
991:
985:
979:
972:
971:
970:
950:
944:
941:
936:
931:
928:
922:
913:
910:
903:
898:
892:
889:
884:
879:
876:
870:
866:
863:
860:
856:
850:
847:
842:
836:
830:
823:
822:
821:
815:
813:
810:
806:
802:
798:
797:Alfredsimpson
794:
786:
785:
781:
777:
773:
769:
763:
762:
758:
754:
748:
744:
740:
736:
725:
723:
722:
719:
718:
699:
695:
691:
687:
683:
675:
673:
672:
668:
664:
658:
656:
652:
648:
647:75.172.177.67
644:
631:
628:
627:
607:
606:
605:
602:
601:
582:
581:
580:
579:
575:
571:
566:
544:
540:
537:
531:
528:
525:
522:
516:
513:
508:
505:
500:
494:
491:
488:
485:
479:
476:
471:
468:
463:
457:
454:
451:
448:
442:
439:
435:
427:
423:
419:
414:
410:
397:
396:
395:
372:
368:
365:
359:
356:
353:
350:
344:
341:
336:
333:
328:
322:
319:
316:
313:
307:
304:
299:
296:
291:
285:
282:
279:
276:
270:
267:
263:
255:
251:
247:
242:
238:
225:
224:
223:
217:
215:
214:
210:
206:
195:
191:
187:
183:
182:
181:
177:
173:
169:
168:
167:
163:
157:
142:
138:
132:
129:
128:
125:
108:
104:
100:
99:
91:
85:
80:
78:
75:
71:
70:
66:
60:
57:
54:
50:
45:
41:
35:
27:
23:
18:
17:
1482:
1311:
1298:
1289:
1270:
1251:
1237:
1234:
1212:— Preceding
1209:
1203:
1200:
1197:
1194:
1177:
1159:
1130:
968:
819:
791:— Preceding
787:
764:
733:— Preceding
729:
702:
697:
679:
663:72.48.75.131
659:
637:
611:
585:
567:
564:
392:
221:
200:
164:
161:
137:Low-priority
136:
96:
62:Low‑priority
40:WikiProjects
1235:Hello all,
1161:Eyamseryath
686:WP:NOTHOWTO
641:—Preceding
205:91.155.86.4
112:Mathematics
103:mathematics
59:Mathematics
30:Start-class
1629:Categories
166:try it...
969:Be this?
394:not read
186:LokiClock
1240:Potasmic
1226:contribs
1214:unsigned
805:contribs
793:unsigned
753:Jcwill23
747:contribs
739:Jcwill23
735:unsigned
643:unsigned
1273:Mcandre
694:8038 ic
676:ICL8038
222:Should
139:on the
1608:WP:TPO
1543:arcsin
1335:arcsin
158:arcsin
36:scale.
716:Spark
625:Spark
599:Spark
570:Evilc
1616:talk
1489:talk
1475:talk
1304:talk
1277:talk
1258:talk
1244:talk
1222:talk
1165:talk
801:talk
780:talk
772:talk
757:talk
743:talk
667:talk
651:talk
574:talk
209:talk
190:talk
176:talk
1554:sin
1346:sin
698:sic
514:sin
477:sin
440:sin
342:sin
305:sin
268:sin
131:Low
1631::
1618:)
1610:.
1571:π
1557:
1546:
1538:π
1491:)
1477:)
1449:π
1414:λ
1409:−
1398:π
1392:−
1383:π
1363:λ
1349:
1338:
1306:)
1279:)
1260:)
1246:)
1228:)
1224:•
1167:)
1068:−
1016:−
911:−
864:−
807:)
803:•
782:)
759:)
745:•
712:ng
708:ni
706:in
704:Sp
669:)
653:)
621:ng
617:ni
615:in
613:Sp
595:ng
591:ni
589:in
587:Sp
576:)
568:--
541:⋯
526:π
523:10
517:
509:25
489:π
480:
452:π
443:
424:π
369:⋯
354:π
351:10
345:
337:25
317:π
308:
292:−
280:π
271:
252:π
211:)
203:--
192:)
178:)
1614:(
1589:)
1584:)
1580:x
1575:p
1568:2
1561:(
1550:(
1534:a
1531:2
1525:=
1522:)
1519:x
1516:(
1513:y
1503::
1499:@
1487:(
1473:(
1457:v
1454:+
1444:)
1439:)
1434:)
1428:2
1423:)
1417:4
1406:h
1402:(
1387:2
1380:x
1373:(
1366:4
1359:1
1353:(
1342:(
1332:a
1326:2
1323:=
1320:y
1302:(
1275:(
1256:(
1242:(
1220:(
1163:(
1145:1
1142:=
1139:a
1113:⌋
1107:2
1104:1
1099:+
1094:a
1090:t
1087:2
1080:⌊
1075:)
1071:1
1065:(
1061:)
1056:⌋
1050:2
1047:1
1042:+
1037:a
1033:t
1030:2
1023:⌊
1019:a
1013:t
1010:2
1006:(
1000:a
997:2
992:=
989:)
986:t
983:(
980:x
951:⌋
945:2
942:1
937:+
932:a
929:t
923:⌊
918:)
914:1
908:(
904:)
899:⌋
893:2
890:1
885:+
880:a
877:t
871:⌊
867:a
861:t
857:(
851:a
848:2
843:=
840:)
837:t
834:(
831:x
799:(
778:(
770:(
755:(
741:(
696:(
665:(
649:(
572:(
545:)
538:+
535:)
532:t
529:f
520:(
506:1
501:+
498:)
495:t
492:f
486:6
483:(
472:9
469:1
464:+
461:)
458:t
455:f
449:2
446:(
436:(
428:2
420:8
415:=
373:)
366:+
363:)
360:t
357:f
348:(
334:1
329:+
326:)
323:t
320:f
314:6
311:(
300:9
297:1
289:)
286:t
283:f
277:2
274:(
264:(
256:2
248:8
243:=
207:(
188:(
174:(
143:.
42::
Text is available under the Creative Commons Attribution-ShareAlike License. Additional terms may apply.