Well you are dealing with numerically exctreme values here.
Let's look at the factor of (x**2+y**2) inside the lambda:

sage: 
(exp(I*2000*(1.60217662*10**(-19))/(299792458*6.6260700*10**(-34)))-(sqrt(
....: 
I*(1.60217662*10**(-19))/(4*6.62607004*10**(-34)*299792458*2000))-((((1.60
....: 
217662*10**(-19))**2)*2000**2)/(((6.62607004*10**(-34))**2)**299792458**2)
....: )))
+infinity + NaN*I

Using inexact numerics will not work if you exceed machine limits.
It is even impossible for Sage to compute the value using exact numerics:

sage: 
(exp(I*2000*(160217662/100000000*10**(-19))/(299792458*66260700/10000000*1
....: 
0**(-34)))-(sqrt(I*(160217662/100000000*10**(-19))/(4*662607004/100000000*
....: 
10**(-34)*299792458*2000))-((((160217662/100000000*10**(-19))**2)*2000**2)
....: /(((662607004/100000000*10**(-34))**2)**299792458**2))))
sage/src/sage/rings/rational.pyx in sage.rings.rational.Rational.__pow__ 
(build/cythonized/sage/rings/rational.c:24103)()
   2575             return x
   2576         elif nn > 0:
-> 2577             sig_on()
   2578             mpz_pow_ui(mpq_numref(x.value), 
mpq_numref(_self.value), nn)
   2579             mpz_pow_ui(mpq_denref(x.value), 
mpq_denref(_self.value), nn)

MemoryError: failed to allocate 617894185381562160 bytes
 

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.

Reply via email to