summaryrefslogtreecommitdiff
path: root/1322/CH19/EX19.12/169ex4.sce
blob: 917793dcd0556b0ad848f525b743f3eae7667445 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13

//logarithm: -1.8738*1.3
clear;
clc;
close;
//multiply mantissa & characteristic seperately and add results
x=0.8738*1.3;
y=-1*1.3;
//as y=-1.3 is -ve, change it to -2.7 to make mantissa +ve
y=-2.7;
mantissa_sum=0.13594+0.7; //of x & y
characteristic_sum=1-2;
characteristic_sum-mantissa_sum