Code Comments
Programming Forum and web based access to our favorite programming groups.hi there, Just messing around with some c++ code just now. In matlab if you want to deign an algorithm that uses the imaginary unit j (sqrt(-1)) you simply insert j, right? But how do you do this in C++? If humans can hardly comprehend the imaginary unit then how does a computer manage to handle it? Any views? Thanks, David
Post Follow-up to this messageHi David, in C++ you usually use elements of the class complex. Imaginary unit would be complex X = complex(0,1); Titus "D" <dav@anon.co.uk> schrieb im Newsbeitrag news:ef07856.-1@webx.raydaftYaTP... > hi there, > > Just messing around with some c++ code just now. In matlab if you > want to deign an algorithm that uses the imaginary unit j (sqrt(-1)) > you simply insert j, right? But how do you do this in C++? If humans > can hardly comprehend the imaginary unit then how does a computer > manage to handle it? > > Any views? > > Thanks, > > David
Post Follow-up to this messagePowered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.