Data Mining & Jaringan Komputer
Kamis, 04 Desember 2025
Perkalian Vektor (dot dan cross) pemrograman python
import
numpy
as
np
a1
=
np
.
array
([
1
,
3
])
b1
=
np
.
array
([
2
,
1
])
# perkalian dot
c1
=
np
.
dot
(
a1
,
b1
)
print
(
c1
)
a2
=
np
.
array
([
1
,
2
,
0
])
b2
=
np
.
array
([
2
,
1
,
0
])
# perkalian cross
c2
=
np
.
cross
(
a2
,
b2
)
c3
=
np
.
cross
(
b2
,
a2
)
print
(
c2
)
print
(
c3
)
Tidak ada komentar:
Posting Komentar
Posting Lebih Baru
Posting Lama
Beranda
Langganan:
Posting Komentar (Atom)
Class Abstract dan Decorator pemrograman python
Copy List pemrograman python di VSCode
# teknik menduplikat list a = ["abdul" , "muis" , "am" , "albi"] print (f"a = {a}...
Fuzzy (Metode Tsukamoto)
Contoh Metode Tsukamoto Pernyataan Sebuah perusahaan makanan kaleng akan memproduksi makanan jenis ABC. Dari data 1 bulan terakhir, permin...
Decimal to Hexadecimal Conversion
Just like binary and octal, we will also use the same calculation technique. Example 1: 67 10 = ……. 16 ? First of ...
Tidak ada komentar:
Posting Komentar