complex numbers in Python
|
10-12-2024, 01:18 PM
Post: #1
|
|||
|
|||
complex numbers in Python
In Python on my computer,
Code: complex("1.2+3.4j") Code: (1.2+3.4j) However, in Python on the Prime, these give a "ValueError: invalid syntax for number" error message. Interestingly, Code: complex("1.2") Code: (1.2+0j) Even Code: complex("1.2+0j") Code: complex("1.2")+complex("3.4j") Code: (1.2+3.4j) Is this a microPython issue or a Prime issue? Or am I doing something completely wrong? |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
complex numbers in Python - Wes Loewer - 10-12-2024 01:18 PM
RE: complex numbers in Python - komame - 10-12-2024, 02:25 PM
RE: complex numbers in Python - Wes Loewer - 10-12-2024, 05:51 PM
RE: complex numbers in Python - Wes Loewer - 10-12-2024, 06:04 PM
RE: complex numbers in Python - Wes Loewer - 10-12-2024, 06:34 PM
|
User(s) browsing this thread: 3 Guest(s)