{{ message }}

Instantly share code, notes, and snippets.

# Kento KAWAKAMi kimitoboku

Created May 3, 2014
A Tour of Go#1
View 03-133136.go
 package main import ( "fmt" ) func main(){ fmt.Println("Hello,世界"); }
Created May 3, 2014
A Tour of GO#4
View 03-135420.go
 package main import ( "math/rand" "fmt" )
Created May 3, 2014
A Tour of Go#5
View 03-135753.go
 package main import ( "fmt" "math" ) func main(){ fmt.Printf("Now you have %g problems.",math.Nextafter(2, 3)) }
Created May 3, 2014
A Tour of Go#7
View 03-143637.go
 package main import ( "fmt" ) func add(x int,y int) int { return x+y }
Created May 3, 2014
A Tour of Go#10
View 03-154618.go
 package main import ( "fmt" ) func split(sum int) (x,y int){ x = sum % 10 y = sum - x
Created May 3, 2014
A Tour of GO#17
View 03-155859.go
 package main import ( "fmt" ) func main() { sum := 0 for i := 0; i < 10; i++ { sum += i
Created May 3, 2014
A Tour of Go#24
View 03-161129.go
 package main import ( "fmt" ) func Sqrt(x float64) float64 { var z float64 = 10 for i := 0; i < 10; i++ { z = z - (z*z-x)/(2*z)
Created May 3, 2014
A Tour of Go#41
View 03-165239.go
 package main import ( "code.google.com/p/go-tour/wc" "strings" ) func WordCount(s string) map[string]int { words := strings.Split(s, " ")
Last active May 4, 2019
python
View logitics.py
 import matplotlib.pyplot as plt dt = 0.01 x = 4 r = 2 k = 2 def dx(t,x): return r*x*(1-x/k)
Last active Aug 29, 2015
View allee.py
 import scipy.integrate import numpy as np import matplotlib.pyplot as plt def allee(x,t,r,a,k): return r*x*(x-a)*(1.0 - x/k) x0 = 18