GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||
GeezerVison is showing reasonml.github.io — Reason · Reason lets you write simple, fast and quality type safe code while leveraging both the JavaScript & OCaml ecosystems. Module Complexmodule Complex: sig .. endComplex numbers. This module provides arithmetic operations on complex numbers.
Complex numbers are represented by their real and imaginary parts
(cartesian representation). Each part is represented by a
double-precision floating-point number (type type t = {
}
The type of complex numbers. val zero : t The complex number val one : t The complex number val i : t The complex number val neg : t -> t Unary negation. val conj : t -> t Conjugate: given the complex val add : t -> t -> t Addition val sub : t -> t -> t Subtraction val mul : t -> t -> t Multiplication val inv : t -> t Multiplicative inverse ( val div : t -> t -> t Division val sqrt : t -> t Square root. The result val norm2 : t -> float Norm squared: given val norm : t -> float Norm: given val arg : t -> float Argument. The argument of a complex number is the angle
in the complex plane between the positive real axis and a line
passing through zero and the number. This angle ranges from
val polar : float -> float -> t
val exp : t -> t Exponentiation. val log : t -> t Natural logarithm (in base val pow : t -> t -> t Power function. | ||||
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |