File: main.ml

package info (click to toggle)
ocaml-obuild 0.1.11-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 796 kB
  • sloc: ml: 6,570; sh: 171; ansic: 34; makefile: 11
file content (9 lines) | stat: -rw-r--r-- 237 bytes parent folder | download | duplicates (4)
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);
    ()