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