Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for ErrNaN (0.12 sec)

  1. src/math/big/float_test.go

    					panic("unreachable")
    				}
    				var errnan bool // set if execution of f panicked with ErrNaN
    				// protect execution of f
    				func() {
    					defer func() {
    						if p := recover(); p != nil {
    							_ = p.(ErrNaN) // re-panic if not ErrNaN
    							errnan = true
    						}
    					}()
    					f(got, xx, yy)
    				}()
    				if math.IsNaN(z) {
    					if !errnan {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 20:22:45 UTC 2024
    - 51.9K bytes
    - Viewed (0)
  2. src/math/big/float.go

    	prec uint32
    	mode RoundingMode
    	acc  Accuracy
    	form form
    	neg  bool
    	mant nat
    	exp  int32
    }
    
    // An ErrNaN panic is raised by a [Float] operation that would lead to
    // a NaN under IEEE 754 rules. An ErrNaN implements the error interface.
    type ErrNaN struct {
    	msg string
    }
    
    func (err ErrNaN) Error() string {
    	return err.msg
    }
    
    // NewFloat allocates and returns a new [Float] set to x,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 15:46:54 UTC 2024
    - 44.5K bytes
    - Viewed (0)
  3. src/math/big/sqrt.go

    // case.
    func (z *Float) Sqrt(x *Float) *Float {
    	if debugFloat {
    		x.validate()
    	}
    
    	if z.prec == 0 {
    		z.prec = x.prec
    	}
    
    	if x.Sign() == -1 {
    		// following IEEE754-2008 (section 7.2)
    		panic(ErrNaN{"square root of negative operand"})
    	}
    
    	// handle ±0 and +∞
    	if x.form != finite {
    		z.acc = Exact
    		z.form = x.form
    		z.neg = x.neg // IEEE754-2008 requires √±0 = ±0
    		return z
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:34:30 UTC 2022
    - 2.8K bytes
    - Viewed (0)
  4. api/go1.5.txt

    pkg math/big, method (*Int) ModSqrt(*Int, *Int) *Int
    pkg math/big, method (Accuracy) String() string
    pkg math/big, method (ErrNaN) Error() string
    pkg math/big, method (RoundingMode) String() string
    pkg math/big, type Accuracy int8
    pkg math/big, type ErrNaN struct
    pkg math/big, type Float struct
    pkg math/big, type RoundingMode uint8
    pkg mime, const BEncoding = 98
    pkg mime, const BEncoding WordEncoder
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 30 21:14:09 UTC 2015
    - 46.6K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"(*Rat).Sub", Method, 0},
    		{"(*Rat).UnmarshalText", Method, 3},
    		{"(Accuracy).String", Method, 5},
    		{"(ErrNaN).Error", Method, 5},
    		{"(RoundingMode).String", Method, 5},
    		{"Above", Const, 5},
    		{"Accuracy", Type, 5},
    		{"AwayFromZero", Const, 5},
    		{"Below", Const, 5},
    		{"ErrNaN", Type, 5},
    		{"Exact", Const, 5},
    		{"Float", Type, 5},
    		{"Int", Type, 0},
    		{"Jacobi", Func, 5},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
Back to top