Skip to content

Commit

Permalink
Fix bug getting precision for 3-argument numeric methods.
Browse files Browse the repository at this point in the history
Without the parentheses, we were trying to call things like
numeric(min, 53, 53).
  • Loading branch information
d-torrance committed Jul 20, 2024
1 parent e0e7bdc commit 251f45a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions M2/Macaulay2/m2/typicalvalues.m2
Original file line number Diff line number Diff line change
Expand Up @@ -216,13 +216,13 @@ typval = x -> (
else if #args === 3 then (
if args#0 === RR then
variants#(f, Number, args#1, args#2) =
(x,y,z) -> f'((numeric_min(precision y, precision z)) x, y, z);
(x,y,z) -> f'(numeric(min(precision y, precision z), x), y, z);
if args#1 === RR then
variants#(f, args#0, Number, args#2) =
(x,y,z) -> f'(x, (numeric_min(precision x, precision z)) y, z);
(x,y,z) -> f'(x, numeric(min(precision x, precision z), y), z);
if args#2 === RR then
variants#(f, args#0, args#1, Number) =
(x,y,z) -> f'(x, y, (numeric_min(precision x, precision y)) z);
(x,y,z) -> f'(x, y, numeric(min(precision x, precision y), z));
if args#0 === RR and args#1 === RR then
variants#(f, Number, Number, args#2) =
(x,y,z) ->
Expand Down

0 comments on commit 251f45a

Please sign in to comment.