Follow-up to: Complex numbers, abs resluts in ...
Fernando Pérez
fperez528 at yahoo.com
Mon Nov 11 15:02:19 EST 2002
noyb wrote:
> I should have explained that "mcv" is a rank 1 array and not a scalar.
> atan2 does not seem to accept anything other than a scalar. Is a
> "for"
> loop in my future?
In [1]: import Numeric as N
In [2]: N.arctan
N.arctan N.arctan2 N.arctanh
In [2]: N.arctan ?
Type: ufunc
String Form: <ufunc 'arctan'>
Namespace: Currently not defined in user session.
Docstring:
arctan(x) returns array of elementwise inverse tangents.
In [3]: N.arctan2 ?
Type: ufunc
String Form: <ufunc 'arctan2'>
Namespace: Currently not defined in user session.
Docstring:
arctan2(x,y) is a safe and correct tan(x/y).
These are all Numeric ufuncs, so they operate on arrays
Cheers,
f.
More information about the Python-list
mailing list