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 tensorflow as tf | |
import numpy as np | |
import matplotlib.pyplot as plt | |
learning_rate = 0.01 | |
training_epochs = 40 | |
trX = np.linspace(-1, 1, 101) | |
num_coeffs = 6 | |
trY_coeffs = [1, 2, 3, 4, 5, 6] | |
trY = 0 | |
for i in range(num_coeffs): |
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
<html> | |
<head> | |
<title>Contact</title> | |
<meta name="viewport" content="width=device-width, initialscale=1"> | |
<link rel="stylesheet" href="jquery.mobile-1.4.5.css" /> | |
<script type="text/javascript" src="http://code.jquery.com/jquery-1.7.1.min.js"></script> | |
<script type="text/javascript" src="jquery.mobile-1.4.5.min.js"></script> | |
</head> | |
<body> | |
<div data-role="page" id="contactPage"> |
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
<html> | |
<head> | |
<title>About</title> | |
<meta name="viewport" content="width=device-width, initialscale=1"> | |
<link rel="stylesheet" href="jquery.mobile-1.4.5.css" /> | |
<script type="text/javascript" src="http://code.jquery.com/jquery-1.7.1.min.js"></script> | |
<script type="text/javascript" src="jquery.mobile-1.4.5.min.js"></script> | |
</head> | |
<body> | |
<div data-role="page" id="aboutPage"> |
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
<html> | |
<head> | |
<title>Home</title> | |
<meta name="viewport" content="width=device-width, initialscale=1"> | |
<link rel="stylesheet" href="jquery.mobile-1.4.5.css" /> | |
<script type="text/javascript" src="http://code.jquery.com/jquery-1.7.1.min.js"></script> | |
<script type="text/javascript" src="jquery.mobile-1.4.5.min.js"></script> | |
</head> | |
<body> | |
<div data-role="page" id="homePage"> |
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 tensorflow as tf | |
import numpy as np | |
import matplotlib.pyplot as plt | |
x_train = np.linspace(0, 10, 100) | |
y_train = x_train + np.random.normal(0,1,100) | |
learning_rate = 0.01 | |
training_epoches = 100 |
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 matplotlib.pyplot as plt | |
import numpy as np | |
import tensorflow as tf | |
sess = tf.Session() | |
# the training set | |
x_train = np.linspace(0, 10, 100) | |
y_train = x_train + np.random.normal(0,1,100) | |
# Creating X |
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
<html> | |
<head> | |
<title>First Mobile Example</title> | |
<meta name="viewport" content="width=device-width, initialscale=1"> | |
<link rel="stylesheet" href="jquery.mobile-1.4.5.css" /> | |
<script type="text/javascript" src="http://code.jquery.com/jquery-1.7.1.min.js"></script> | |
<script type="text/javascript" src="jquery.mobile-1.4.5.min.js"></script> | |
</head> | |
<body> | |
<div data-role="page" id="homePage"> |
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
fun main(args: Array<String>) { | |
var OK = 'Y' | |
do { | |
print("Nhap a = ") | |
var a = readLine()!!.toInt() | |
print("Nhap b = ") | |
var b = readLine()!!.toInt() | |
if(a==0) | |
print("Phuong trinh ${a}x + $b = 0 vo nghiem") | |
else { |
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
while True: | |
a = int(raw_input("Nhap a=")) | |
b = int(raw_input("Nhap b=")) | |
if(a is 0): | |
print "Phuong trinh %dx + %d = 0 vo nghiem."%(a,b) | |
else: | |
x = -b/(a*1.0) | |
print "Phuong trinh %dx + %d = 0 co nghiem x = %.2f"%(a,b,x) | |
OK = raw_input("Ban co muon tiep tuc?(Y/N)") | |
if (OK is 'N'): |
NewerOlder