Home

Introduction

Contents

Scripts

FeedBack

Date 06/09/2010
Script S2_2_5.m
Download Script S2_2_5.m
%==============================================
%Thin lens 2
%==============================================
%
%the power of the lens
P=0.05;
%the interval of MT between -5 and -0.15
MT=(-5.0:0.1:-0.15);
%the factors of g
a=2-1./MT-MT;
b=1/P;
%the formula for the distance
%from the object to the image g
g=a*b;
%plot of g function of the transverse magnification
plot(MT,g,'ro-')
title('distance g between object and image function of M'),grid on
%the minimum y for g
[y,i]=min(g)
%the distance of the object from the lens
%see pag. 76 formula (2.3)
z=g(i)/(MT(i)-1)
%the distance of the image from the lens
zp=g(i)+z
%==============================================
%
Top