Hi,

I took the known results for higher order QED corrections to the
magnetic moment of an electron:

http://theoretical-physics.net/dev/src/quantum/qed.html#magnetic-moment-of-an-electron

and evaluated them using SymPy, for example the correction A_3 above
(go almost to the very end of the page to see the sympy code) contains
some logs, zeta function and infinite series. I just created a sympy
expression and did .n() and I got the right answer, on the first try.

I obtained the latex expression using latex() and just put it in. It's great.

Let me know if you have any suggestions about the sympy integration in
the sphinx book. I think I'll use "git submodules" to import a
specific sympy revision that is known to work and implement some
doctesting framework for it (I think that Sphinx already has some).

I am undecided how to handle formulas, that sympy can generate. So far
I just copy & paste the latex output by hand into sphinx. Should they
be autogenerated?

Ondrej

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sympy?hl=en.

Reply via email to