Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,232 for exp5 (0.05 sec)

  1. src/math/big/floatconv.go

    	}
    	// exp consumed - not needed anymore
    
    	// apply 2**exp2
    	if MinExp <= exp2 && exp2 <= MaxExp {
    		z.prec = prec
    		z.form = finite
    		z.exp = int32(exp2)
    		f = z
    	} else {
    		err = fmt.Errorf("exponent overflow")
    		return
    	}
    
    	if exp5 == 0 {
    		// no decimal exponent contribution
    		z.round(0)
    		return
    	}
    	// exp5 != 0
    
    	// apply 5**exp5
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 11:59:09 UTC 2023
    - 8.3K bytes
    - Viewed (0)
  2. src/math/big/ratconv.go

    			exp2 = d * 4 // hexadecimal digits are 4 bits each
    		default:
    			panic("unexpected mantissa base")
    		}
    		// fcount consumed - not needed anymore
    	}
    
    	// take actual exponent into account
    	switch ebase {
    	case 10:
    		exp5 += exp
    		fallthrough // see fallthrough above
    	case 2:
    		exp2 += exp
    	default:
    		panic("unexpected exponent base")
    	}
    	// exp consumed - not needed anymore
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 15 22:16:34 UTC 2023
    - 12.3K bytes
    - Viewed (0)
  3. src/math/exp.go

    //              R1(r) = r - (P1*r  + P2*r  + ... + P5*r   ).
    //
    //   3. Scale back to obtain exp(x):
    //      From step 1, we have
    //         exp(x) = 2**k * exp(r)
    //
    // Special cases:
    //      exp(INF) is INF, exp(NaN) is NaN;
    //      exp(-INF) is 0, and
    //      for finite argument, only exp(0)=1 is exact.
    //
    // Accuracy:
    //      according to an error analysis, the error is always less than
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 11:59:09 UTC 2023
    - 5.4K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/typecheck/expr.go

    	}
    	return n
    }
    
    // tcSlice typechecks an OSLICE or OSLICE3 node.
    func tcSlice(n *ir.SliceExpr) ir.Node {
    	n.X = DefaultLit(Expr(n.X), nil)
    	n.Low = indexlit(Expr(n.Low))
    	n.High = indexlit(Expr(n.High))
    	n.Max = indexlit(Expr(n.Max))
    	hasmax := n.Op().IsSlice3()
    	l := n.X
    	if l.Type() == nil {
    		n.SetType(nil)
    		return n
    	}
    	if l.Type().IsArray() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:29:45 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/types2/expr.go

    func (check *Checker) binary(x *operand, e syntax.Expr, lhs, rhs syntax.Expr, op syntax.Operator) {
    	var y operand
    
    	check.expr(nil, x, lhs)
    	check.expr(nil, &y, rhs)
    
    	if x.mode == invalid {
    		return
    	}
    	if y.mode == invalid {
    		x.mode = invalid
    		x.expr = y.expr
    		return
    	}
    
    	if isShift(op) {
    		check.shift(x, &y, e, op)
    		return
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 02:09:54 UTC 2024
    - 51.7K bytes
    - Viewed (0)
  6. src/go/build/constraint/expr.go

    	return andArg(x.X) + " && " + andArg(x.Y)
    }
    
    func andArg(x Expr) string {
    	s := x.String()
    	if _, ok := x.(*OrExpr); ok {
    		s = "(" + s + ")"
    	}
    	return s
    }
    
    func and(x, y Expr) Expr {
    	return &AndExpr{x, y}
    }
    
    // An OrExpr represents the expression X || Y.
    type OrExpr struct {
    	X, Y Expr
    }
    
    func (x *OrExpr) isExpr() {}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 14.2K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/walk/expr.go

    			return n
    		}
    		a := ir.Copy(n).(*ir.UnaryExpr)
    		a.X = l
    		return walkExpr(typecheck.Expr(a), init)
    
    	case ir.ODOT, ir.ODOTPTR:
    		n := n.(*ir.SelectorExpr)
    		l := safeExpr(n.X, init)
    		if l == n.X {
    			return n
    		}
    		a := ir.Copy(n).(*ir.SelectorExpr)
    		a.X = l
    		return walkExpr(typecheck.Expr(a), init)
    
    	case ir.ODEREF:
    		n := n.(*ir.StarExpr)
    		l := safeExpr(n.X, init)
    		if l == n.X {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:34:01 UTC 2024
    - 27.6K bytes
    - Viewed (0)
  8. src/go/types/expr.go

    func (check *Checker) binary(x *operand, e ast.Expr, lhs, rhs ast.Expr, op token.Token, opPos token.Pos) {
    	var y operand
    
    	check.expr(nil, x, lhs)
    	check.expr(nil, &y, rhs)
    
    	if x.mode == invalid {
    		return
    	}
    	if y.mode == invalid {
    		x.mode = invalid
    		x.expr = y.expr
    		return
    	}
    
    	if isShift(op) {
    		check.shift(x, &y, e, op)
    		return
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 02:09:54 UTC 2024
    - 49.7K bytes
    - Viewed (0)
  9. src/internal/buildcfg/exp.go

    func (exp *ExperimentFlags) String() string {
    	return strings.Join(expList(&exp.Flags, &exp.baseline, false), ",")
    }
    
    // expList returns the list of lower-cased experiment names for
    // experiments that differ from base. base may be nil to indicate no
    // experiments. If all is true, then include all experiment flags,
    // regardless of base.
    func expList(exp, base *goexperiment.Flags, all bool) []string {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 17:38:52 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  10. test/fixedbugs/issue15071.dir/exp.go

    // Copyright 2016 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package exp
    
    func Exported(x int) int {
    	return inlined(x)
    }
    
    func inlined(x int) int {
    	y := 0
    	switch {
    	case x > 0:
    		y += 5
    		return 0 + y
    	case x < 1:
    		y += 6
    		fallthrough
    	default:
    		y += 7
    		return 2 + y
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:39:41 UTC 2019
    - 378 bytes
    - Viewed (0)
Back to top