Lightning73 0 Report post Posted January 13, 2009 Does anyone know how to use Imaginary Numbers in PHP? Or has anyone written a script to use them in PHP?Would be very grateful since I need it for a school project but I can't find anything useful.. Share this post Link to post Share on other sites
rvalkass 5 Report post Posted January 13, 2009 There are a couple of links from a quick Google search:http://forums.xisto.com/no_longer_exists/http://www.phpclasses.org/package/593-PHP-Class-for-imaginary-number-calculations.htmlDepending on what you need to do with them, however, it might just be easier to split the number into two variables - one representing the real part, and the other representing the imaginary part, then just bring them together for the output. Share this post Link to post Share on other sites
Lightning73 0 Report post Posted January 13, 2009 I already found the first two links, even though the first one's download links don't work. I don't want to use some class that someone else made. :PI'm trying to solve a cubic equation, or a third degree equation, whichever you like. And at some part I have to take the root of a negative number.. Share this post Link to post Share on other sites