Added powmod in utility and PowerMod in the sintax and semantics of MiniImp
This commit is contained in:
@ -10,7 +10,7 @@ let program =
|
||||
)
|
||||
;;
|
||||
|
||||
Printf.printf "%d\n" (reduce 100 program)
|
||||
Printf.printf "%d\n" (reduce 1 program)
|
||||
|
||||
(* -------------------------------------------------------------------------- *)
|
||||
(* y not defined program *)
|
||||
@ -57,7 +57,7 @@ Printf.printf "%d\n" (reduce 10 program)
|
||||
;;
|
||||
|
||||
(* -------------------------------------------------------------------------- *)
|
||||
(* hailstone sequence lenght program *)
|
||||
(* hailstone sequence's lenght program *)
|
||||
let program =
|
||||
Main
|
||||
("a",
|
||||
|
||||
Reference in New Issue
Block a user