This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PROGRAM RAND2 | |
IMPLICIT NONE | |
REAL R | |
REAL ran2 | |
R=ran2(65000) | |
WRITE(*,310) R | |
310 FORMAT(F6.6) | |
STOP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Control.Monad | |
import Data.Char | |
main = do | |
l <- getLine | |
putStrLn $ show ( foldr myfunction (0, 0, 0, 0) l) | |
myfunction :: Char -> (Integer, Integer, Integer, Integer) -> (Integer, Integer, Integer, Integer) | |
myfunction x (a,c,g,t) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Data.List | |
--Data.List elemIndex :: Eq a => a -> [a] -> Maybe Int | |
main = do | |
l <- getContents | |
let l' = lines l | |
-- putStrLn $ (show l') | |
let l'' = fixlist l' | |
-- putStrLn $ (show l'') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Data.List | |
import Char | |
main = do | |
l <- getContents | |
let l' = myToInt l | |
let list = getList l' | |
let perms = getPermutations list | |
putStrLn $ show (length perms) | |
printing perms |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
x = lambda x: x/2 - ((x-1)/2) | |
for i in range(5): | |
print "x("+str(i)+"): " + str(x(i)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"metadata": { | |
"name": "" | |
}, | |
"nbformat": 3, | |
"nbformat_minor": 0, | |
"worksheets": [ | |
{ | |
"cells": [ | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"metadata": { | |
"name": "" | |
}, | |
"nbformat": 3, | |
"nbformat_minor": 0, | |
"worksheets": [ | |
{ | |
"cells": [ | |
{ |
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"metadata": { | |
"name": "" | |
}, | |
"nbformat": 3, | |
"nbformat_minor": 0, | |
"worksheets": [ | |
{ | |
"cells": [ | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"metadata": { | |
"name": "" | |
}, | |
"nbformat": 3, | |
"nbformat_minor": 0, | |
"worksheets": [ | |
{ | |
"cells": [ | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--------------------------------------------------------------------------- | |
AttributeError Traceback (most recent call last) | |
<ipython-input-4-3272cd51cdba> in <module>() | |
29 #GPy.core.SparseGP? | |
30 #m=GPy.core.SparseGP(X, Y, Z, k, likelihood, inference_method=VarDTCMissingData(inan=inan)) | |
---> 31 m=GPy.core.GP(X, Y, k, likelihood, inference_method=VarDTCMissingData(inan=inan)) | |
32 | |
33 |
OlderNewer