Skip to content

Commit

Permalink
fix #275
Browse files Browse the repository at this point in the history
  • Loading branch information
gares committed Nov 22, 2024
1 parent 0058048 commit 7b953e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/API.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1158,7 +1158,7 @@ module Calc = struct
| [ CData x ] when is_float x -> (map float float sqrt x)
| _ -> type_error "Wrong arguments to sqrt") ;
register_eval 1 ("sin",["float"]) (function
| [ CData x ] when is_float x -> (map float float sqrt x)
| [ CData x ] when is_float x -> (map float float sin x)
| _ -> type_error "Wrong arguments to sin") ;
register_eval 1 ("cos",["float"]) (function
| [ CData x ] when is_float x -> (map float float cos x)
Expand Down

0 comments on commit 7b953e3

Please sign in to comment.