test

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 16, 2020 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Example (Nan64)
nan := math.NaN()
fmt.Printf("0 < NaN: %t\n", 0 < nan)
fmt.Printf("0 > NaN: %t\n", 0 > nan)
fmt.Printf("nan isNan(): %t\n", math.IsNaN(nan))
tmp := 3.14 + nan
fmt.Println("tmp := 3.14 + nan")
fmt.Printf("tmp isNan(): %t\n", math.IsNaN(tmp))
fmt.Printf("tmp == nan : %t\n", tmp == nan)
Output:

0 < NaN: false
0 > NaN: false
nan isNan(): true
tmp := 3.14 + nan
tmp isNan(): true
tmp == nan : false

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dist

func Dist(p, q Point) float32

Types

type Point

type Point [2]float32

func RandomPoints

func RandomPoints(n groph.VIdx, ps []Point) []Point

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL