tried this x=[ 0
-0.041389004581424
-0.049979175343607
-0.057007496876302
-0.062473969179509
-0.066378592253228
-0.068721366097459
-0.069502290712203
-0.068721366097459
-0.066378592253228
-0.062473969179509
-0.057007496876302
-0.049979175343607
-0.041389004581424
0.500000000000000
-0.500000000000000]
matlab's dst gives :
dst(x)=[-0.524649937006448
-0.208549082037091
0.175438242940290
-0.201365706563574
0.122632326416342
0.023410695189363
-0.170916792532103
0.404635063593086
-0.557336293807673
0.766827077578399
-0.834391996423464
0.916008576298954
-0.836787527646708
0.743037852780101
-0.522660424688284
0.285317021943821]
using FFTW with "FFTW_RODFT00" flag
gives
[-1.0493
-0.417098
0.350876
-0.402731
0.245265
0.0468214
-0.341834
0.80927
-1.11467
1.53365
-1.66878
1.83202
-1.67358
1.48608
-1.04532
0.570634]
Basically a factor of two is the difference, even if one uses same flag