summaryrefslogtreecommitdiff
path: root/1673/CH1/EX1.5/1_5.sce
blob: f5688ed56c528bfb76da2f3e7095f57414717e9a (plain)
1
2
3
4
5
6
7
8
9
//relative error
//example 1.5
//page 10
clc;clear;close;
n=8.6;// the corrected number
N=1;//the no is rounded to one decimal places
E_A=(10^-N)/2;
E_R=E_A/n;
printf('the relative error of the number is:%0.4f',E_R);