blob: 469ce0af5917474774805d660003c5fbe2c27338 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
//Eg-1.9
//pg-22
clear
clc
a=input("enter any number")
if a<=0 then
disp("logarithm cannot be computed")
exit(0);
end
p=log(a);
disp("logarithm of given number is ")
disp(p)
|