File: main.ml

package info (click to toggle)
ocaml-obuild 0.2.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,456 kB
  • sloc: ml: 14,491; sh: 211; ansic: 34; makefile: 11
file content (9 lines) | stat: -rw-r--r-- 237 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
open Imaginary
open Math

let () =
    let t1 = { Types.real = 0; Types.imag = 1 } in
    let t2 = { Types.real = 1; Types.imag = 2 } in
    let t3 = imaginary_plus t1 t2 in
    Printf.printf "real = %d\n" (Accessor.get_real t3);
    ()