Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for i2tor (0.06 sec)

  1. test/chan/powser1.go

    		a[2] = i2tor(3, 2)
    		a[3] = i2tor(13, 6)
    		a[4] = i2tor(73, 24)
    		a[5] = i2tor(167, 40)
    		a[6] = i2tor(4051, 720)
    		a[7] = i2tor(37633, 5040)
    		a[8] = i2tor(43817, 4480)
    		a[9] = i2tor(4596553, 362880)
    		checka(e, a, "Exp") // 1 1 3/2 13/6 73/24
    		at := Integ(zero, MonSubst(Ones, neg(one), 2))
    		for c, i := 1, 0; i < N; i++ {
    			if i%2 == 0 {
    				a[i] = zero
    			} else {
    				a[i] = i2tor(int64(c), int64(i))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 25 22:22:20 UTC 2020
    - 12.7K bytes
    - Viewed (0)
  2. test/chan/powser2.go

    		a[2] = i2tor(3, 2)
    		a[3] = i2tor(13, 6)
    		a[4] = i2tor(73, 24)
    		a[5] = i2tor(167, 40)
    		a[6] = i2tor(4051, 720)
    		a[7] = i2tor(37633, 5040)
    		a[8] = i2tor(43817, 4480)
    		a[9] = i2tor(4596553, 362880)
    		checka(e, a, "Exp") // 1 1 3/2 13/6 73/24
    		at := Integ(zero, MonSubst(Ones, neg(one), 2))
    		for c, i := 1, 0; i < N; i++ {
    			if i%2 == 0 {
    				a[i] = zero
    			} else {
    				a[i] = i2tor(int64(c), int64(i))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 25 22:22:20 UTC 2020
    - 13.3K bytes
    - Viewed (0)
  3. test/complit.go

    	if s != "hello" {
    		panic("s")
    	}
    
    	m := map[string]float64{"one": 1.0, "two": 2.0, "pi": 22. / 7.}
    	if len(m) != 3 {
    		panic("m")
    	}
    
    	eq([]*R{itor(0), itor(1), itor(2), itor(3), itor(4), itor(5)})
    	eq([]*R{{0}, {1}, {2}, {3}, {4}, {5}})
    
    	p1 := NewP(1, 2)
    	p2 := NewP(1, 2)
    	if p1 == p2 {
    		panic("NewP")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Feb 19 02:19:43 UTC 2012
    - 1.7K bytes
    - Viewed (0)
  4. test/abi/idata.go

    	return "OOPS"
    }
    
    func (x complexVal) String() string { return fmt.Sprintf("(%s + %si)", x.re, x.im) }
    
    func newFloat() *big.Float { return new(big.Float).SetPrec(prec) }
    
    //go:noinline
    //go:registerparams
    func itor(x intVal) ratVal       { return ratVal{nil} }
    
    //go:noinline
    //go:registerparams
    func itof(x intVal) floatVal     { return floatVal{nil} }
    func rtof(x ratVal) floatVal     { return floatVal{newFloat().SetRat(x.val)} }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 05 20:11:08 UTC 2021
    - 2.1K bytes
    - Viewed (0)
  5. src/go/constant/value.go

    func i64tor(x int64Val) ratVal   { return ratVal{newRat().SetInt64(int64(x))} }
    func i64tof(x int64Val) floatVal { return floatVal{newFloat().SetInt64(int64(x))} }
    func itor(x intVal) ratVal       { return ratVal{newRat().SetInt(x.val)} }
    func itof(x intVal) floatVal     { return floatVal{newFloat().SetInt(x.val)} }
    func rtof(x ratVal) floatVal     { return floatVal{newFloat().SetRat(x.val)} }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 34K bytes
    - Viewed (0)
Back to top