Re: [Libmesh-users] Using Complex Numbers

2016-07-21 Thread Shayan Hoshyari
Actually it says in libmesh_common.h: typedef std::complex Complex; typedef std::complex COMPLEX; On Wed, Jul 20, 2016 at 10:53 PM, Jayaraman, Vegnesh wrote: > Hi > > I think the behaviour is similar to std::complex. > > Thank you very much. > > Just to verify , > for > > If I wish to solve >

Re: [Libmesh-users] Using Complex Numbers

2016-07-20 Thread Jayaraman, Vegnesh
Hi I think the behaviour is similar to std::complex. Thank you very much. Just to verify , for If I wish to solve \nabla^2 u = 2+3i * f(x); How do I represent 2+3i . I guess I can do something like Complex abc (2,3)*f; and similarly (2i) nabla^2 u + 3u = f(x) I have to do the following in