[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
creating Inf*i
From: |
withaar |
Subject: |
creating Inf*i |
Date: |
Mon, 12 May 2003 10:05:20 +0100 |
Hi all,
I need to create an imaginary infinity number. These methods don't work:
a = complex(0,Inf)
a = 1i*Inf
Both methods multiply (0+i)*Inf and the result is NaN+Infi because 0*Inf
is undefined. This, however, works:
a = (1i*realmax)*2
Is there a better way to do this?
cheers,
Willem
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------