folder Tahribat.com Forumları
linefolder Programlamaya Giriş
linefolder Odev Programlama Bi El Atin Beyler



Odev Programlama Bi El Atin Beyler

  1. KısayolKısayol reportŞikayet pmÖzel Mesaj
    musdawdaf
    musdawdaf's avatar
    Kayıt Tarihi: 01/Ağustos/2006
    Erkek

    ikincisi de boyle olur


    Max range is 0.0 and Max height is 0.0 for angle 0
    Max range is 1.4244692531633047 and Max height is 0.01243210165110755 for angle 1
    Max range is 2.8472030099642978 and Max height is 0.04971326000358677 for angle 2
    Max range is 4.266467888475652 and Max height is 0.11179805370870737 for angle 3
    Max range is 5.680534733063895 and Max height is 0.19861084200876908 for angle 4
    Max range is 7.087680721099197 and Max height is 0.31004585689371295 for angle 5
    Max range is 8.486191461949359 and Max height is 0.4459673319631501 for angle 6
    Max range is 9.874363085700724 and Max height is 0.6062096678368066 for angle 7
    Max range is 11.25050431906119 and Max height is 0.7905776339118598 for angle 8
    Max range is 12.612938545916219 and Max height is 0.9988466062213555 for angle 9
    Max range is 13.960005850027292 and Max height is 1.23076284110391 for angle 10
    Max range is 15.290065037384164 and Max height is 1.4860437843512773 for angle 11
    Max range is 16.601495635746943 and Max height is 1.764378415457124 for angle 12
    Max range is 17.892699868941932 and Max height is 2.0654276265476117 for angle 13
    Max range is 19.162104603505746 and Max height is 2.388824635532103 for angle 14
    Max range is 20.40816326530612 and Max height is 2.734175432970639 for angle 15
    Max range ....arayı sildim
    Max range is 11.250504319061193 and Max height is 40.025748896700385 for angle 82
    Max range is 9.874363085700724 and Max height is 40.210116862775436 for angle 83
    Max range is 8.486191461949359 and Max height is 40.37035919864909 for angle 84
    Max range is 7.087680721099213 and Max height is 40.50628067371853 for angle 85
    Max range is 5.68053473306389 and Max height is 40.61771568860347 for angle 86
    Max range is 4.266467888475662 and Max height is 40.70452847690353 for angle 87
    Max range is 2.847203009964307 and Max height is 40.76661327060865 for angle 88
    Max range is 1.4244692531633119 and Max height is 40.80389442896114 for angle 89
    Max range is 4.998558363866748E-15 and Max height is 40.816326530612244 for angle 90

     

    class Assingment2{
    	public static void main(String[] args){
    		for(int i=0; i<=90; i++){
    
    			double MaxRange=(20.*20*Math.sin(Math.toRadians(2*i)))/9.8;
    			double MaxHeight=(20.*Math.sin(Math.toRadians(i)))*(20*Math.sin(Math.toRadians(i)))/9.8;
    			
    			System.out.println("Max range is "+MaxRange+" and Max height is "+MaxHeight+" for angle "+i);
    			
    		}
    	}
    }
    
    
    
    
    

     

  2. KısayolKısayol reportŞikayet pmÖzel Mesaj
    ltcelik
    ltcelik's avatar
    Kayıt Tarihi: 11/Mayıs/2007
    Erkek

    HeYeT bunu yazdı:
    -----------------------------
    Y =1+x+x^2/2!+x^3 /3!+....+ x^N/N! girilen herhangi bir x ve N degeri iÇin bu sesinin Çözümünü saglayan programi yazini Beyler aciklamali yazacak birilerl varmi.
    -----------------------------

    Zaten soRunun çözümü içinde

    Serinin X^N/N! olduğu verilmiş

    Yapılması gereken her X, N değeri için Bir Önceki X,N değeriyle toplamak

    genel anlamıyla

    Y=Y+ X^N/N!

    Serinin genel ifadesinde N=0 için 1. terim 1,  N=1 için x kendiliğinden çıkyor

    programın çekirdeği

    50 input x,N

    100 Y=0

    120     FOR n=0 to N

    130 GOSUB 500 // 500 SATIRINDA N NİN FAKTÖRYELİ HESAPLANIR "FACN" OLARAK KAYDEDİLİR

     140Y=Y+(x^N)/FACN  // EĞER FONKSİYON TANIMLAYABİLİYOSAN, FACN YERİNE  FAC(N) YAZARSIN

    150 NEXT n / EDİT YAPILDI BURASI küçük n olacaktı büyük n yazmıştım düzelttim

    160 PRINT "GİRİLEN X=",X,"VE N=",N,"DEĞERİ İÇİN Y DEĞERİ", Y

    END

    GİBİ olacaktır...

    Fakat Qbasicte bildiğim kadarıyla  Faktöryel fonksiyonu tanımlı değil dolayısıyla ya bir Faktöryel fonksiyonu tanımlayacak

    ya da bir alt program yazıp orda hesaplatacaksın eğer derleyicin fonksiyon tanımlamana izin vermiyorsa

    Alt program da böyle bir şey olur END satırırnın altına yazıalcak

    500 REM BU ALT PROGRAM HAFIZADAKİ N SAYISININ FAKTORYELINI HESAPLAR

    520 FACN=1

    530 FOR  I=0 TO N

    540 IF I=0 GO TO 560

    550 FACN=FACN*N

    560 NEXT I

    570 REURN

     

     


    Din Kitaplarını Okuyup Anlayana Ateist, Okuyup Anlamayanlara "dindar" denir... Nikola TESLA.. ben mi? Ne okurum ne anlarım... Kendi kendime de uyuz oluyorum ama olamıyorum.. "Ama efsaneyi çıkarıp atarsan ve yaptıkları eylemlere bakarsan... ..Jedi'ların mirası başarısızlıktır. İkiyüzlülüktür, kibirdir."
  3. KısayolKısayol reportŞikayet pmÖzel Mesaj
    SinusX
    SinusX's avatar
    Kayıt Tarihi: 14/Aralık/2010
    Erkek

    Euler sayısının yani e=2.71 in açılımı bu bu şekilde araştır bulursun :) bunu bizde yapmıştık 1. sınıfta çokta kısa sürüyürodu bunu toplam sembolunde yaz sonra toplam sembolunu for la ifade et tamamdır 

     

    Edit: Y dediğin orda e^x açılımı vesaire http://www.wolframalpha.com/input/?i=e^x burda var


    Si vis pacem para bellum.
  4. KısayolKısayol reportŞikayet pmÖzel Mesaj
    HeYeT
    HeYeT's avatar
    Kayıt Tarihi: 03/Ocak/2006
    Erkek
    Cok saolunbeyler:))

    matematik24.com
Toplam Hit: 2457 Toplam Mesaj: 15