System4f.magnification

raytracing.System4f.magnification(self)

The magnification of the element

Returns:

magnification – You can access via indexes or .transverse and .angular index [0] output object is A in the matrix and index [1] is D in the matrix.

Return type:

namedtuple (transverse, angular)

Examples

>>> from raytracing import *
>>> # M1 is an ABCD matrix of an object
>>> Mat= Matrix(A=1,B=0,C=-1/5,D=1,physicalLength=0,label='Lens')
>>> M=Mat.magnification()
>>> print('(A , D): (',M[0],',',M[1],')')
(A , D): ( 1.0 , 1.0 )

Notes

The magnification can be calculated having both A and D.