res = sinpi(x)
| Parameter | Description |
|---|---|
| x | a numeric value |
| Parameter | Description |
|---|---|
| res | a numeric value |
res = sinpi(x) computes sin(x * pi) accurately.
For odd integers, sinpi(x / 2) is +1 or -1.
For integers, sinpi(x) is exactly zero.
x = [0, 1/2, 1, 3/2, 2];
r = sin(x * pi)
res = sinpi(x)
| Version | Description |
|---|---|
| 1.0.0 | initial version |