File: imaginary.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 (5 lines) | stat: -rw-r--r-- 182 bytes parent folder | download | duplicates (4)
1
2
3
4
5

let imaginary_plus t1 t2 =
      { Math.Types.real = Math.Accessor.get_real t1 + t2.Math.Types.real
      ; Math.Types.imag = t1.Math.Types.imag + Math.Accessor.get_imag t2
      }