Python Packages for Complex Numbers and Matrix Math
Maan Hamze
mmhamze at pleiades.net
Sun Aug 26 21:39:15 EDT 2001
More information about the Python-list mailing list
Sun Aug 26 21:39:15 EDT 2001
- Previous message (by thread): Python Packages for Complex Numbers and Matrix Math
- Next message (by thread): Question about indentation and bugs
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
"Ignacio Vazquez-Abrams" <ignacio at openservices.net> wrote in message news:mailman.998866419.18595.python-list at python.org... > On Sun, 26 Aug 2001, Maan Hamze wrote: > > > 2. Also, > > >>> x = 4 + 7j > > >>> x.imag = 6 > > error: object has a read-only attrib > > >>> x.real = 7 > > same error of read-olny attrib > > > > why? > > Because. I could look into the source (or point you to the source), but the > answer would still simply be "Because". > So to pass a value to either the imag or real part: >>> a=1 >>> b=2 >>> c=complex(a,b) >>> b = 3 >>> c=complex(a,b) and so on........ or something like: >>> def PassValue(a,b): ... r=complex(a,b) ... return r Maan
- Previous message (by thread): Python Packages for Complex Numbers and Matrix Math
- Next message (by thread): Question about indentation and bugs
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list