
Example Markov : simulation of a Markov chain. Use of a Random module, external call to C rand() function.
3 lines
66 B
Text
3 lines
66 B
Text
|
|
(* output : y = x^n *)
|
|
val fun power(x:float; n:int) = (y:float)
|