summaryrefslogtreecommitdiff
path: root/3535/CH7/EX7.7/Ex7_7.sce
blob: 9f8003496156773afe4946d973152a35cb008af8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//Chapter 7, Example 7.7, Page 209
clc
clear
// Range in water
x = poly([-2.5839, 1.3767, 0.20954],'x','c')
r = log10(2)
pow = horner(x,r)
Rp = 10**pow
RT = 3*Rp
printf("Rp = %f cm\n",Rp)
printf("RT = %f cm\n",RT)
//Answers may vary due to round off error