summaryrefslogtreecommitdiff
path: root/1553/CH5/EX5.15/5Ex15.sce
blob: b7227d0da7df1842f5c79053971670f651667be6 (plain)
1
2
3
4
5
6
7
8
9
//chapter 5 Ex 15
clc;
clear;
close;

//let the value to be found out be z
z=(1+sqrt(2))^2+(1-sqrt(2))^2;

mprintf("The value of expression (x^2+y^2) is %.0f",z);