summaryrefslogtreecommitdiff
path: root/3845/CH26/EX26.4/Ex26_4.sce
blob: 13cadef67449a9233c116bfdbb7bffe7684f119e (plain)
1
2
3
4
5
6
7
//Example 26.4
d_i=(-100+1.5)*10^-2;//Image distance (m)
d_o=(25-1.5)*10^-2;//Object distance (m)
P=1/d_o+1/d_i;//Power (D)
printf('Power of spectacle lens required = %0.2f D',P)
//Openstax - College Physics
//Download for free at http://cnx.org/content/col11406/latest