Giter VIP home page Giter VIP logo

p1_komnum_e6's Introduction

Komputasi_Numerik

Nama Kelompok :

  1. Muhammad Adib Syambudi (5025211017)
  2. Ilham Insan Wafi (5025211255)
  3. Yusna Millaturrosyidah (5025211254)

Dengan menggunakan dua library dari phython yaitu numpy dan matplotlib. Variabel yang digunakan a,b,c,d untuk variabel pada fungsi. Kemudian xl adalah input batas bawah dan xu adalah input batas atas. Terdapat juga variabel error dan toleransi, dimana kedua variabel ini digunakan sebagai acuan berjalan iterasi. Kemudian menyimpan titik-titik x pada xlist dan hasil perhitungan fungsi x ke dalam ylist.

Kemudian langkah-langkah algoritma bolzano sebagai berikut :

  1. Mengecek fungsi dengan batas bawah dikali dengan batas atas. Jika hasilnya positif maka hasil terdapat pada rentang yang dimasukkan,
  2. Perulangan proses selama memiliki nilai error diatas nilai toleransi.
  3. Menggunakan rumus xr = (xl + xu )/2
  4. Mencetak nilai dari xr.
  5. Mengubah nilai error dengan rumus nilai mutlak dari ((xr - xr_lama)/xr) * 100
  6. Jika hasil dimasukkan ke fungsi dikali dengan batas atas bernilai negatif, maka xr menjadi batas bawah. Selain itu, maka xr menjadi batas atas.
  7. Proses yang diulang adalah NO 3 sampe 6.
  8. Menggambar grafik dengan menggunakan plot dengan memasukkan xlist dan ylist.
  9. Menggeser garis sumbu x ke tengah dan memberi judul.
  10. Menampilkan grafik fungsi

Gambar proses run dari code

p1_komnum_e6's People

Contributors

averous13 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.