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
#TensorFlowのインポート | |
import tensorflow as tf | |
#数値計算用ライブラリのNumpuのインポート | |
import numpy as np | |
#tensorflow.contrib.learn.python.learn.datasets.mnist.pyの関数read_data_setsをインポート | |
from tensorflow.contrib.learn.python.learn.datasets.mnist import read_data_sets | |
#MNISTデータの読み込み | |
mnist = read_data_sets("MNIST_data/", one_hot=True) |
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
C234567 | |
IMPLICIT REAL*8(A-H,O-Z) | |
write(*,*) 'r,N=' | |
read(*,*) r,N | |
PI=3.1415926d0 | |
dx=r/N | |
v=0.0 | |
DO 100 I=1,N+1 | |
x=dx*(I-1) |