Skip to content

Commit ccb2f6c

Browse files
committed
switch * cot to / tan since cot not in PDL
1 parent 6400565 commit ccb2f6c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/perl/fbench.pl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,8 +184,8 @@ sub transit_surface {
184184
my $sagitta = sin(($old_axis_slope_angle + $iang) / 2);
185185
$sagitta = 2 * $radius_of_curvature * $sagitta * $sagitta;
186186
$object_distance = (($radius_of_curvature * sin(
187-
$old_axis_slope_angle + $iang)) *
188-
cot($axis_slope_angle)) + $sagitta;
187+
$old_axis_slope_angle + $iang)) /
188+
tan($axis_slope_angle)) + $sagitta;
189189
return;
190190
}
191191
my $rang = -asin(($from_index / $to_index) *

0 commit comments

Comments
 (0)