Skip to content

Commit 7c2b838

Browse files
committed
Math::Trig: correct interval in documentation
This effectively undoes commit 02b54f9, which tried to fix a typo, but introduced a technical inaccuracy because it wasn't a typo. The intent is to specify a half-open interval including 0 but not including 2pi. The original notation used was [a, b[ which is common in some European countries, but [a, b) seems to be more common in the English-speaking world.
1 parent 3746dea commit 7c2b838

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dist/Math-Complex/lib/Math/Trig.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ and the imaginary part of approximately C<-1.317>.
425425
=back
426426
427427
The full circle is 2 I<pi> radians or I<360> degrees or I<400> gradians.
428-
The result is by default wrapped to be inside the [0, {2pi,360,400}] circle.
428+
The result is by default wrapped to be inside the [0, {2pi,360,400}) circle.
429429
If you don't want this, supply a true second argument:
430430
431431
$zillions_of_radians = deg2rad($zillions_of_degrees, 1);

0 commit comments

Comments
 (0)