Skip to content

Commit

Permalink
switch * cot to / tan since cot not in PDL
Browse files Browse the repository at this point in the history
  • Loading branch information
mohawk2 committed Sep 29, 2021
1 parent 6400565 commit ccb2f6c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/perl/fbench.pl
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,8 @@ sub transit_surface {
my $sagitta = sin(($old_axis_slope_angle + $iang) / 2);
$sagitta = 2 * $radius_of_curvature * $sagitta * $sagitta;
$object_distance = (($radius_of_curvature * sin(
$old_axis_slope_angle + $iang)) *
cot($axis_slope_angle)) + $sagitta;
$old_axis_slope_angle + $iang)) /
tan($axis_slope_angle)) + $sagitta;
return;
}
my $rang = -asin(($from_index / $to_index) *
Expand Down

0 comments on commit ccb2f6c

Please sign in to comment.