heptagon/examples/random/mathext.epi
Gwenaël Delaval d5ee87b7ed Added example Markov
Example Markov : simulation of a Markov chain.

Use of a Random module, external call to C rand() function.
2015-09-17 11:17:29 +02:00

3 lines
66 B
Text

(* output : y = x^n *)
val fun power(x:float; n:int) = (y:float)