In nuclear physics the semiempirical mass formula is a formu
Solution
%nuclear.m
clc;
clear all;
a1=15.67; a2=17.23;a3=0.75; a4=93.2
A=input(\'Enter the mass number A = \')% asking input of A from user
Z=input( \'Enter the atomic number Z = \')%asking input of Z from user
%%Checking whether A is a odd /even number
%Calculating the remainder when divided by 2; If it is a
% even number remainder will be zero otherwise non zero
z1=rem(Z,2);
a1=rem(A,2);
if a1~=0 % when remainder is a non zero, i.e when A is an odd number
a5=0
disp(\'A is an odd number\')
elseif a1==0 & z1==0 % when when A is an even and Z is a even number
a5= 12
disp(\'A and Z both are even numbers\')
elseif a1==0 & z1~=0 %when when A is an even and Z is a odd number
a5= -12
disp(\'A is an even and Z is a odd number\')
end
%Calculating binding energy
B=a1*A- a2*A^(2/3)-a3*Z^2*A^(-1/3)-a4*(A-2*Z)^2*A^(-1)+a5/A^(1/2)
disp(\'meV\')
%%%%%%%%%%%%%%%% End%%%%%%%%%%%
Out put of the program:
Enter the mass number A = 58
A =
58
Enter the atomic number Z = 28
Z =
28
a5 =
12
A and Z both are even numbers
B =
-414.9244
meV

