vault backup: 2023-09-15 16:17:18
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
|
||||
|## Exercise 2.2 (Power)
|
||||
## Exercise 2.2 (Power)
|
||||
|
||||
```Ocaml
|
||||
(*First version ; 6 multiplications*)
|
||||
@ -366,3 +366,11 @@ let rec multiply x y =
|
||||
eg b;;
|
||||
|
||||
```
|
||||
|
||||
## Exercise 4.11
|
||||
```Ocaml
|
||||
let rec puissance = function
|
||||
|n when n = 0 -> 1
|
||||
|n when n = 1 -> x
|
||||
|n ->
|
||||
```
|
Reference in New Issue
Block a user