This file contains hidden or 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
| # -*- coding: cp1254 -*- | |
| import math | |
| import time | |
| def f(x, sbt): | |
| return math.e ** x - sbt | |
| def regulaFalsi(sbt=5, a=1, b=2, iterasyon=100, epsilon=10 ** -9): | |
| t1 = time.clock() |
This file contains hidden or 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
| # -*- coding: cp1254 -*- | |
| import math | |
| import time | |
| # bu fonksiyon ile bulunan x değerlerini topluca ekrana yazdırdık. | |
| def analiz(liste): | |
| for ind, i in enumerate(liste): | |
| if i != 0: | |
| print "x[%s] = %s" %(ind, i) |
This file contains hidden or 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
| # -*- coding: cp1254 -*- | |
| import math | |
| import time | |
| def hesapla(x, sbt): | |
| return math.e ** x - sbt | |
| # n = iterasyon sayısı | |
| # sbt : e ** x - c deki c = sbt' dir. | |
| # sbt = 1 olamaz. |
This file contains hidden or 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
| #-*- coding: utf-8 -*- | |
| def en_buyuk_ardil_toplam(dizi): | |
| dizi2 = [0] * len(dizi) | |
| en_buyuk = 0 | |
| for ind, i in enumerate(dizi): | |
| if ind == 0: | |
| dizi2[ind] = dizi[ind] |
This file contains hidden or 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
| # -*- coding: utf-8 -*- | |
| def eleman_sayilarini_esitle(liste1, liste2, yer, eleman): | |
| n = len(liste1) | |
| m = len(liste2) | |
| while n != m: | |
| if n > m: | |
| liste2.insert(yer, eleman) | |
| m += 1 | |
| else: | |
| liste1.insert(yer, eleman) |
This file contains hidden or 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> | |
| <meta charset="UTF-8" /> | |
| <title>deneme 1-2-3</title> | |
| </head> | |
| <body> | |
| <section> | |
| <div> | |
| <canvas id="canvas" width="400" height="300"></canvas> |
This file contains hidden or 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
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| from Tkinter import * | |
| import sys | |
| def temizle(): | |
| kutu1.delete(1.0, END) | |
| kutu2.delete(1.0, END) |
This file contains hidden or 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> | |
| </head> | |
| <style> | |
| html { background-color: #656565;} | |
| body {margin:auto; width:400; height:400; margin-top:30px; background-color:grey; padding:20px} | |
| </style> | |
| <title>Asal Sayı mı?</title> | |
| <?php | |
| echo "Sizce 727271 sayısı asal sayı mıdır? Merak mı ettiniz?<br>"; |
This file contains hidden or 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
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| from Tkinter import * | |
| import os | |
| pencere = Tk() | |
| pencere.geometry("200x75+75+50") | |
| pencere.title("Gökhan CEYLAN") |
This file contains hidden or 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
| #!/usr/bin/env python | |
| #-*- coding: utf-8 -*- | |
| def sifreLe(sifrelenecek_dosya, sifreli_dosya): | |
| dosya = open(sifrelenecek_dosya, 'r') | |
| sifreli = open(sifreli_dosya, 'w') | |
| while True: | |
| sifre = dosya.readline(50) | |
| for i in sifre: |