Skip to content

Commit

Permalink
fixed bug in trig func convexity detection
Browse files Browse the repository at this point in the history
  • Loading branch information
hhijazi committed Oct 4, 2023
1 parent 2338f28 commit 29d52df
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/gravity/func.h
Original file line number Diff line number Diff line change
Expand Up @@ -10625,6 +10625,8 @@ func<T1> exp(const var<T1>& p1){
return {undet_,unknown_};
}
pair<Convexity,Sign> res = {undet_,zero_};
if(range.second - range.first > 2*pi)
return res;
auto lb = fmod(range.first,(2*pi));
auto ub = fmod(range.second,(2*pi));
if(ub<= -3*pi/2){
Expand Down

0 comments on commit 29d52df

Please sign in to comment.