GitHub Repository:https://github.com/wavebitscientific/functional-fortran
Fortran (FORTRAN) is a general purpose, procedural, mandatory programming language, particularly suitable for numerical computation and scientific computing.
The first version for the IBM 704, produced by IBM in 1954, was developed by John Backus and his team. Backus and his team published a report in November 1954 entitled "The IBM Mathematical FORmula TRANslating System: Fortran".
X = A * B + C
X = A * B + C
Opcode Operand
1) 00010000000000000000010000000000 (A’daki değeri reg. yükle)
Hex: 08 00 04 00
2) 00100100000000000000010000000001 (B’deki değerle çarp)
Hex: 24 00 04 01
3) 00100011000000000000010000000010 (C’deki değeri reg. ile topla)
Hex: 23 00 04 02
4) 00010001000000000000010000000011 (Registerdeki değeri X’e taşı)
Hex: 11 00 04 03
İki tabanındaki sayılar : 0, 1
Ondalık sayılar : 0, 1, 2, 3, 4, 5, 6, 7, 8, 9
Onaltılık (hex) sayılar : 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F
Ondalık -> Hex
1 = 1
10 = A
36 = 24
147 = 93
255 = FF
X = A * B + C
08 00 04 00
24 00 04 01
23 00 04 02
11 00 04 03
Beam Core, Let's Graduate in a Diploma. He is the core physicist at the University. For the experiment, 10 mg. It's polonium. Then forgotten 180 days past. Polonium has a half-life of 140 days. Now you have it. How many mg Po is left?
Inputs
Starting quantity: 10 mg
Half life: 140 days
Elapsed time: 180 days
Output /
Amount left ?
BaslangicMiktari
YariOmur
GecenZaman
KalanMiktarı
BaslangicMiktari, YariOmur, GecenZaman
read values.
KalanMiktar
calculate
KalanMiktar
write value
IMPLICIT NONE
REAL :: BaslangicMiktari, YariOmur, GecenZaman, KalanMiktar
! BaslangicMiktari, GecenZaman, YariOmur read values
PRINT *, “Başlangıç miktarı, yarı ömür ve gecen zaman enter the values: ”
READ *, BaslangicMiktari, YariOmur, GecenZaman
! KalanMiktar = BaslangicMiktari * 0.5**(GecenZaman/YariOmur) calculate
KalanMiktar = BaslangicMiktari * 0.5 ** (GecenZaman / YariOmur)
! KalanMiktar write value
PRINT *, “Kalan miktar =“, KalanMiktar, “mg”
END PROGRAM Radyoaktif_Bozunma
PROGRAM Radyoaktif_bozunma
IMPLICIT NONE
REAL :: BaslangicMiktari, GecenZaman
INTEGER :: OgrenciSayisi, OgrenciNumarasi
READ *, BaslangicMiktari, YariOmur, GecenZaman
PRINT *, “The remaining amount = ”, KalanMiktar, “mg”
WRITE(*, *) “The remaining amount = ”, KalanMiktar, “mg”
Delta = b*b – 4.* a * c
KalanMiktar = BaslangicMiktari * 0.5 ** (GecenZaman / YariOmur)
ATTENTION: This is not an algebraic equation. In some languages = instead used. Things like A * b = c + d can not be written.
Bitiş: END program-ismi
END Radyoaktif_bozunma
So we learned how to solve engineering questions. If we put the values in the queries into the given codes, we can solve the convenience.