示例#1
0
文件: float.go 项目: jamesadney/gmp
// Compute the relative difference between x and y and store the result in f.
// This is abs(x-y)/x.
func (f *Float) RelDiff(x, y *Float) *Float {
	x.doinit()
	y.doinit()
	f.doinit()
	C.mpf_reldiff(&f.i[0], &x.i[0], &y.i[0])
	return f
}
示例#2
0
func (f *Float) RelDiff(x, y *Float) *Float {
	C.mpf_reldiff(&f.i[0], &x.i[0], &y.i[0])
	return f
}