Skip to content

Instantly share code, notes, and snippets.

Avatar

Kento KAWAKAMi kimitoboku

View GitHub Profile
View 03-133136.go
package main
import (
"fmt"
)
func main(){
fmt.Println("Hello,世界");
}
View 03-135420.go
package main
import (
"math/rand"
"fmt"
)
View 03-135753.go
package main
import (
"fmt"
"math"
)
func main(){
fmt.Printf("Now you have %g problems.",math.Nextafter(2, 3))
}
View 03-143637.go
package main
import (
"fmt"
)
func add(x int,y int) int {
return x+y
}
View 03-154618.go
package main
import (
"fmt"
)
func split(sum int) (x,y int){
x = sum % 10
y = sum - x
View 03-155859.go
package main
import (
"fmt"
)
func main() {
sum := 0
for i := 0; i < 10; i++ {
sum += i
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)
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, " ")
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)
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