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: 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 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 yardımıyla köke yaklaşımı gözleyebiliyoruz. | |
| 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
| # bu fonksiyon girilen denklemi (ör = 2x + 3y - 1z = 5) matris formuna dönüştürür. ([0, 2, 3, -1, 5]) | |
| def denklemGirisi(satir = 3, sutun = 4): | |
| satir += 1 | |
| sutun += 1 | |
| # bu liste yardımıyla herbir denklem için bir matris oluşturduk. | |
| liste = [] | |
| #girilen denklemlerin matris şeklinde bu listede tutuk. |
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/ruby | |
| # encoding: utf-8 | |
| # DİKKAT! Fazla test edilmemiştir. İki çay/sigara arası yazılmıştır. Daha | |
| # iyisini siz yazın. -- roktas | |
| class Arac | |
| attr_reader :hiz, :vites_konumu, :yolcu_sayisi | |
| def initialize(yolcu=1) |
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
| module cpu (KEY, SW, LEDR); | |
| input [1:0] KEY; | |
| input [17:0] SW; | |
| output [17:0] LEDR; | |
| wire Resetn, Manual_Clock, Run, Done; | |
| wire [15:0] DIN, Bus; | |
| assign Resetn = KEY[0]; | |
| assign Manual_Clock = KEY[1]; |
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
| package com.ykb.eulerDüzeltme; | |
| import java.io.BufferedReader; | |
| import java.io.File; | |
| import java.io.FileNotFoundException; | |
| import java.io.FileReader; | |
| import java.io.IOException; | |
| import java.io.PrintWriter; | |
| import java.util.ArrayList; | |
| import java.util.Date; |
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
| import java.io.BufferedReader; | |
| import java.io.IOException; | |
| import java.io.InputStreamReader; | |
| import java.util.Scanner; | |
| public class SetIPAddres { | |
| String ip = null; | |
| String netmask = null; |