Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
140 lines (130 loc) · 4.67 KB
/
Copy pathindex.html
File metadata and controls
140 lines (130 loc) · 4.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Kalkulator Metode Tabel</title>
<link rel="stylesheet" href="/styles/styles.css" />
<link rel="shortcut icon" href="https://img.icons8.com/?size=100&id=Eb_WjSQOlQGi&format=png&color=000000" type="image/x-icon">
</head>
<body>
<header>
<div class="header-container">
<a href="/index.html" class="header-title">Kalkulator Metode Tabel</a>
<button class="burger-menu" aria-label="Toggle menu">☰</button>
<nav>
<ul class="nav-links">
<li><a href="/page/metode-numerik.html">Mengenal Metode Numerik</a></li>
<li><a href="/page/metode-tabel.html">Belajar Metode Tabel</a></li>
<li><a href="/page/info.html">Informasi Penggunaan</a></li>
</ul>
</nav>
</div>
</header>
<div class="wrapper">
<div class="container">
<form id="numericalForm">
<label for="fungsi">Masukkan Fungsi</label>
<input
type="text"
id="fungsi"
name="fungsi"
placeholder="Contoh: x^3 - 4x + 1"
/>
<label for="batasAtas">Masukkan Batas Atas</label>
<input
type="text"
id="batasAtas"
name="batasAtas"
placeholder="Contoh: 3"
/>
<label for="batasBawah">Masukkan Batas Bawah</label>
<input
type="text"
id="batasBawah"
name="batasBawah"
placeholder="Contoh: -3"
/>
<label for="jumlahPembagian">Masukkan Jumlah Pembagian</label>
<input
type="text"
id="jumlahPembagian"
name="jumlahPembagian"
placeholder="Contoh: 10"
/>
<label for="maksimalIterasi">Masukkan Maksimal Iterasi</label>
<input
type="text"
id="maksimalIterasi"
name="maksimalIterasi"
placeholder="Contoh: 15"
/>
<label for="toleransiError">Masukkan Toleransi Error</label>
<input
type="text"
id="toleransiError"
name="toleransiError"
placeholder="Contoh: 0.01"
/>
<button type="button" class="button reset" onclick="resetForm()">
Reset
</button>
<button type="button" class="button" onclick="prosesMetodeTabel()">
Hitung
</button>
</form>
</div>
<div class="sidebar">
<label for="prosesIterasi">Proses Iterasi</label>
<textarea id="prosesIterasi" name="prosesIterasi" readonly></textarea>
<label for="hasil">Hasil</label>
<textarea id="hasil" name="hasil" readonly></textarea>
</div>
</div>
<div class="popup" id="popupInformasi">
<div class="popup-content">
<h3>Informasi Umum</h3>
<p>
Kalkulator Metode Tabel digunakan untuk mencari solusi dari persamaan
non-linear menggunakan metode pembagian interval. Masukkan fungsi,
batas atas, batas bawah, dan jumlah pembagian untuk mendapatkan hasil
yang mendekati akar dari fungsi.
</p>
<ul>
<li>
Fungsi harus ditulis dengan format yang valid, misalnya:
<code>x^3 - 4x + 1</code>.
</li>
<li>Batas atas harus lebih besar dari batas bawah.</li>
<li>
Jumlah pembagian menentukan seberapa detail perhitungan dilakukan.
</li>
</ul>
<br />
<h4>Format Penulisan Operasi Matematika</h4>
<ul>
<li>Penjumlahan, contoh : <code>2 + 3 = 5</code></li>
<li>Pengurangan, contoh : <code>5 - 3 = 2</code></li>
<li>Perkalian, contoh : <code>2 * 3 = 6</code></li>
<li>Pembagian, contoh : <code>6 / 3 = 2</code></li>
<li>Pangkat, contoh : <code>2^3 = 8</code></li>
<li>Sisa Pembagian, contoh : <code>7 % 3 = 1</code></li>
<li>Akar Kuadrat, contoh : <code>sqrt(9) = 3</code></li>
<li>Eksponensial, contoh : <code>e^1</code></li>
</ul>
<br />
<h4>
Kelompok 1 Teknik Informatika Semester 3 Pagi
</h4>
<ul>
<li>Achmat Rahmadi (143223002)</li>
<li>Achmad Rif’an (143223003)</li>
<li>Naila Mufidah Aulia’ (143223005)</li>
</ul>
<button class="button" id="closePopup">Next</button>
</div>
</div>
<script src="/script/script.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjs/11.8.0/math.min.js"></script>
</body>
</html>