CODIGOS USADOS EN LOS PROBLEMAS1a)clear; clc;%Redondeoformatlongx=4.853xa= round(round(3*x,2)*round(x+3/7,3),2)fprintf('El primer termino es: %f',xa);xb= round(x*x,2)xbb= round(2*x-1,3)xbbb= round(xb*log(xbb),2)fprintf('El segundo termino es: %f',xbbb);xc=sin(x)xcc=round(xc*xc,4)fprintf('El tercer termino es: %f',xcc);%Truncamientoya=fix(3*x*100)/100yaa= fix((x+3/7)*1000)/1000yaaa= fix(ya*yaa*100)/100fprintf('El primer termino es: %f',yaaa);yb=fix(x*x*100)/100ybb=fix(log(2*x-1)*1000)/1000ybbb= fix(yb*ybb*100)/100fprintf('El segundo termino es: %f',ybbb);yc=fix(sin(x)*10000)/10000ycc=fix(yc*yc*10000)/10000fprintf('El tercer termino es: %f',ycc);%Valores halladosfxreal=3*x*(x+3/7)-x*x*log(2*x-1)+sin(x)*sin(x)fxredondeo=round(round(xa-xbbb,2)+xcc,2)fxtruncado= fix((fix((yaaa-ybbb)*100)/100 +ycc)*100)/100fprintf('El resultado real es: %f',fxreal);fprintf('El resultado por redondeo es: %f',fxredondeo);fprintf('El resultado por truncamiento es: %f',fxtruncado);erelativoredondeo= (fxreal-fxredondeo)/fxrealn=(erelativoredondeo^2)^0.5erelativotruncamiento= (fxreal-fxtruncado)/fxrealm=(erelativotruncamiento^2)^0.5fprintf('El error relativo por redondeo es: %f',n);fprintf('El error relativo por truncamiento es: %f',m);