1 / 9

java.lang.math

java.lang.math. Mathematics with Java. Java nın temel matematik paketi java.lang.math Nesnesi oluşturulmadan direkt olarak kullanılabilir Math.abs(-123.6) Matematiksel denklemlerin çözümü için birçok faydalı metod sağlar. Sabit Sayılar.

ewan
Download Presentation

java.lang.math

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. java.lang.math

  2. Mathematics with Java • Javanın temel matematik paketi java.lang.math • Nesnesi oluşturulmadan direkt olarak kullanılabilir Math.abs(-123.6) • Matematiksel denklemlerin çözümü için birçok faydalı metod sağlar

  3. Sabit Sayılar • Math.E doğal logaritma tabanı System.out.println(Math.E) = 2.718281828459045 • Math.PIPI sayısıSystem.out.println(Math.PI) = 3.141592653589793

  4. Temel Metodlar

  5. Exponensiyel ve Logaritmik metodlar

  6. Trigonometric Metodlar

  7. Denklemler • y = 3x2 + 2x + 1 double y = 3 * Math.pow(x,2) + 2 * x + 1; • y = Math.sqrt(Math.abs((Math.sin(x) - Math.exp(z)))); Math.abs((x-3)/(2*Math.Pi*y))

  8. System.out.println( "e sabitsayisi= "+Math.E + "\nPIsabitsayisi= " + Math.PI + "\n-123.678 mutlakdeger= " + Math.abs(-123.6) + "\n7.3 tavandegeri= " + Math.ceil(7.3) + "\n7.3 tabandegeri= " + Math.floor(7.3) + "\n3.4 ve 5.3 hipotenusu= " + Math.hypot(3.4, 5.3) + "\n8.8 e tabaninda log = " + Math.log(8.8) + "\n8.8 10 tabaninda log = " + Math.log10(8.8) + "\n9.7 ve 3.3 maximum = " + Math.max(9.7, 3.3) + "\n9.7 ve 3.3 minimum = " + Math.min(9.7, 3.3) + "\n3 karesi= " + Math.pow(3,2) + "\n3 kupu= " + Math.pow(3,3) + "\nRastgelebirsayi= " + Math.random() + "\n66.23 yuvarla= " + Math.round(66.23) + "\n66.53 yuvarla= " + Math.round(66.53) + "\n25 karekoku= " + Math.sqrt(25) + "\ncosinus 60 = " + Math.cos(60) + "\nsinus 60 = " + Math.sin(60) + "\ntanjant 60 = " + Math.tan(60)) ;

  9. public static void kokler(int a, int b, int c){ double delta = Math.pow(b, 2) - (4*a*c); if(delta<0){ System.out.println("kok yok"); } else{ double kokdelta = Math.sqrt(delta); double kok1 = (-b - kokdelta) / (2*a); double kok2 = (-b + kokdelta) / (2*a); System.out.println("kok1 = " + kok1); System.out.println("kok2 = " + kok2); } }

More Related