From: Mischa POSLAWSKY Date: Mon, 23 Sep 2019 18:18:46 +0000 (+0200) Subject: test more sine wave input X-Git-Tag: v1.07~32 X-Git-Url: http://git.shiar.net/barcat.git/commitdiff_plain/958dc21ea1386a618a54e8d68edc5d1a88b8b4d1 test more sine wave input Longer range generated by perl -E 'say cos($_/8) for -3..96'; --- diff --git a/t/t1003-sinine.in b/t/t1003-sinine.in new file mode 100644 index 0000000..58a3342 --- /dev/null +++ b/t/t1003-sinine.in @@ -0,0 +1,100 @@ +0.930507621912314 +0.968912421710645 +0.992197667229329 +1 +0.992197667229329 +0.968912421710645 +0.930507621912314 +0.877582561890373 +0.810963119505218 +0.731688868873821 +0.640996858163325 +0.54030230586814 +0.431176516798666 +0.315322362395269 +0.194547707988987 +0.0707372016677029 +-0.0541771350269363 +-0.178246055649492 +-0.299533506189574 +-0.416146836547142 +-0.526266334704305 +-0.628173622722739 +-0.720278471456692 +-0.801143615546934 +-0.869507181465984 +-0.924302378632464 +-0.964674146321316 +-0.989992496600445 +-0.999862345081687 +-0.994129676080546 +-0.972883945979446 +-0.936456687290796 +-0.88541633520302 +-0.820559357339561 +-0.742897825147999 +-0.653643620863612 +-0.554189526492417 +-0.446087489913793 +-0.331024407252887 +-0.21079579943078 +-0.0872777936610349 +0.0376021528879766 +0.161895330417537 +0.283662185463226 +0.401002586978036 +0.512085477241841 +0.615177444904708 +0.70866977429126 +0.791103548870739 +0.861192417161521 +0.917842665815758 +0.960170286650366 +0.987514771299061 +0.999449418224499 +0.995787991253056 +0.976587625728023 +0.942147936931692 +0.893006344689077 +0.829929687111292 +0.753902254343305 +0.666110429045427 +0.567924173288695 +0.46087565075495 +0.346635317835026 +0.226985856715469 +0.103794357219253 +-0.0210168185064484 +-0.145500033808614 +-0.267712769746941 +-0.385747937452222 +-0.497763637610298 +-0.602011902684824 +-0.696865973366046 +-0.780845683605749 +-0.852640558113384 +-0.911130261884677 +-0.955402082654664 +-0.984765173467324 +-0.998761333111264 +-0.997172156196378 +-0.98002244129691 +-0.947579803977993 +-0.90035050074427 +-0.839071529076452 +-0.764699126832135 +-0.678393850473845 +-0.581502464973608 +-0.475536927995993 +-0.362150796304442 +-0.24311342256103 +-0.120282345169942 +0.00442569798805079 +0.129064679609153 +0.251689650071754 +0.370387087724768 +0.483304758753006 +0.588680620666364 +0.684870318383553 +0.770372843843175 +0.843853958732492 diff --git a/t/t1003-sinine.out b/t/t1003-sinine.out new file mode 100644 index 0000000..62788d4 --- /dev/null +++ b/t/t1003-sinine.out @@ -0,0 +1,100 @@ + 0.930507621912314 ---<----|----->---- + 0.968912421710645 ---<----|----->----- + 0.992197667229329 ---<----|----->----- + 1 ---<----|----->----- + 0.992197667229329 ---<----|----->----- + 0.968912421710645 ---<----|----->----- + 0.930507621912314 ---<----|----->---- + 0.877582561890373 ---<----|----->---- + 0.810963119505218 ---<----|----->--- + 0.731688868873821 ---<----|----->-- + 0.640996858163325 ---<----|----->- + 0.54030230586814 ---<----|-----> + 0.431176516798666 ---<----|----- + 0.315322362395269 ---<----|---- + 0.194547707988987 ---<----|--- + 0.0707372016677029 ---<----|-- +-0.0541771350269363 ---<----| + -0.178246055649492 ---<---- + -0.299533506189574 ---<--- + -0.416146836547142 ---<-- + -0.526266334704305 ---<- + -0.628173622722739 ---< + -0.720278471456692 --- + -0.801143615546934 -- + -0.869507181465984 - + -0.924302378632464 - + -0.964674146321316 + -0.989992496600445 + -0.999862345081687 + -0.994129676080546 + -0.972883945979446 + -0.936456687290796 - + -0.88541633520302 - + -0.820559357339561 -- + -0.742897825147999 --- + -0.653643620863612 --- + -0.554189526492417 ---< + -0.446087489913793 ---<-- + -0.331024407252887 ---<--- + -0.21079579943078 ---<---- +-0.0872777936610349 ---<----| + 0.0376021528879766 ---<----|- + 0.161895330417537 ---<----|--- + 0.283662185463226 ---<----|---- + 0.401002586978036 ---<----|----- + 0.512085477241841 ---<----|-----> + 0.615177444904708 ---<----|----->- + 0.70866977429126 ---<----|----->-- + 0.791103548870739 ---<----|----->--- + 0.861192417161521 ---<----|----->---- + 0.917842665815758 ---<----|----->---- + 0.960170286650366 ---<----|----->----- + 0.987514771299061 ---<----|----->----- + 0.999449418224499 ---<----|----->----- + 0.995787991253056 ---<----|----->----- + 0.976587625728023 ---<----|----->----- + 0.942147936931692 ---<----|----->---- + 0.893006344689077 ---<----|----->---- + 0.829929687111292 ---<----|----->--- + 0.753902254343305 ---<----|----->--- + 0.666110429045427 ---<----|----->-- + 0.567924173288695 ---<----|----->- + 0.46087565075495 ---<----|-----> + 0.346635317835026 ---<----|---- + 0.226985856715469 ---<----|--- + 0.103794357219253 ---<----|-- +-0.0210168185064484 ---<----|- + -0.145500033808614 ---<----| + -0.267712769746941 ---<--- + -0.385747937452222 ---<-- + -0.497763637610298 ---<- + -0.602011902684824 ---< + -0.696865973366046 --- + -0.780845683605749 -- + -0.852640558113384 - + -0.911130261884677 - + -0.955402082654664 + -0.984765173467324 + -0.998761333111264 + -0.997172156196378 + -0.98002244129691 + -0.947579803977993 - + -0.90035050074427 - + -0.839071529076452 -- + -0.764699126832135 -- + -0.678393850473845 --- + -0.581502464973608 ---< + -0.475536927995993 ---<- + -0.362150796304442 ---<-- + -0.24311342256103 ---<---- + -0.120282345169942 ---<----| +0.00442569798805079 ---<----|- + 0.129064679609153 ---<----|-- + 0.251689650071754 ---<----|---- + 0.370387087724768 ---<----|----- + 0.483304758753006 ---<----|-----> + 0.588680620666364 ---<----|----->- + 0.684870318383553 ---<----|----->-- + 0.770372843843175 ---<----|----->--- + 0.843853958732492 ---<----|----->---