Example #1
0
// 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
}
Example #2
0
func (f *Float) RelDiff(x, y *Float) *Float {
	C.mpf_reldiff(&f.i[0], &x.i[0], &y.i[0])
	return f
}