summaryrefslogtreecommitdiff
path: root/1673/CH1/EX1.11/1_11.sce
blob: 82caff41eb72b15bdb10496d3d2835d980dcbb6f (plain)
1
2
3
4
5
6
7
8
9
10
//relative error
//example 1.11
//page 13
clc;clear;close;
x=1;y=1;z=1;
u=(5*x*y^3)/z^3;
dx=0.001;dy=0.001;dz=0.001;
u_max=((5*y^2)/z^3)*dx+((10*x*y)/z^3)*dy+((15*x*y^2)/z^4)*dz;
r_err=u_max/u;
printf(' the relative error is :%f',r_err);