{"id":8696,"date":"2025-09-16T03:13:09","date_gmt":"2025-09-16T03:13:09","guid":{"rendered":"https:\/\/ccitonline.com\/wp\/?p=8696"},"modified":"2025-09-16T03:16:21","modified_gmt":"2025-09-16T03:16:21","slug":"ordinary-differential-equations","status":"publish","type":"post","link":"https:\/\/ccitonline.com\/wp\/2025\/09\/16\/ordinary-differential-equations\/","title":{"rendered":"ORDINARY DIFFERENTIAL EQUATIONS"},"content":{"rendered":"\n<!DOCTYPE html>\n<html lang=\"id\">\n<head>\n  <meta charset=\"UTF-8\">\n  <title>Solusi RK4 untuk dy\/dx = x + y<\/title>\n  <style>\n    body {\n      font-family: 'Segoe UI', sans-serif;\n      background-color: #f4f4f9;\n      padding: 20px;\n      color: #333;\n    }\n    h1 {\n      color: #005a9c;\n    }\n    .output {\n      background-color: #fff;\n      border: 1px solid #ccc;\n      padding: 15px;\n      margin-top: 20px;\n      border-radius: 8px;\n    }\n    button {\n      background-color: #005a9c;\n      color: white;\n      padding: 10px 15px;\n      border: none;\n      border-radius: 5px;\n      cursor: pointer;\n    }\n    button:hover {\n      background-color: #003f6b;\n    }\n  <\/style>\n<\/head>\n<body>\n\n  <h1>Runge-Kutta Orde 4 (RK4)<\/h1>\n  <p>Menyelesaikan persamaan: <strong>dy\/dx = x + y<\/strong> dengan kondisi awal <strong>y(0) = 1<\/strong> dan langkah <strong>h = 0.1<\/strong><\/p>\n  <button onclick=\"solveRK4()\">Hitung y(0.1)<\/button>\n\n  <div class=\"output\" id=\"result\"><\/div>\n\n  <script>\n    function f(x, y) {\n      return x + y;\n    }\n\n    function solveRK4() {\n      let x0 = 0;\n      let y0 = 1;\n      let h = 0.1;\n\n      let k0 = f(x0, y0);\n      let k1 = f(x0 + h\/2, y0 + h\/2 * k0);\n      let k2 = f(x0 + h\/2, y0 + h\/2 * k1);\n      let k3 = f(x0 + h, y0 + h * k2);\n\n      let k = (1\/6) * (k0 + 2*k1 + 2*k2 + k3);\n      let y1 = y0 + h * k;\n\n      document.getElementById(\"result\").innerHTML = `\n        <strong>Langkah RK4:<\/strong><br>\n        k\u2080 = ${k0.toFixed(4)}<br>\n        k\u2081 = ${k1.toFixed(4)}<br>\n        k\u2082 = ${k2.toFixed(4)}<br>\n        k\u2083 = ${k3.toFixed(4)}<br>\n        <br>\n        y(0.1) \u2248 ${y1.toFixed(4)}\n      `;\n    }\n  <\/script>\n\n<\/body>\n<\/html>\n\n","protected":false},"excerpt":{"rendered":"<p>Dalam pemodelan sistem biologis, metode RK4 sering dipilih karena kestabilannya dalam menangani persamaan pertumbuhan nonlinier<\/p>\n","protected":false},"author":207,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[],"class_list":["post-8696","post","type-post","status-publish","format-standard","hentry","category-general"],"_links":{"self":[{"href":"https:\/\/ccitonline.com\/wp\/wp-json\/wp\/v2\/posts\/8696","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ccitonline.com\/wp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ccitonline.com\/wp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ccitonline.com\/wp\/wp-json\/wp\/v2\/users\/207"}],"replies":[{"embeddable":true,"href":"https:\/\/ccitonline.com\/wp\/wp-json\/wp\/v2\/comments?post=8696"}],"version-history":[{"count":2,"href":"https:\/\/ccitonline.com\/wp\/wp-json\/wp\/v2\/posts\/8696\/revisions"}],"predecessor-version":[{"id":8701,"href":"https:\/\/ccitonline.com\/wp\/wp-json\/wp\/v2\/posts\/8696\/revisions\/8701"}],"wp:attachment":[{"href":"https:\/\/ccitonline.com\/wp\/wp-json\/wp\/v2\/media?parent=8696"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ccitonline.com\/wp\/wp-json\/wp\/v2\/categories?post=8696"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ccitonline.com\/wp\/wp-json\/wp\/v2\/tags?post=8696"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}