FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
lpython/tests/complex1.py at main · certik/lpython · GitHub
certik
/
lpython
Public
forked from
lcompilers/lpython
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
lpython
/
tests
/
complex1.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
25 lines (23 loc) · 500 Bytes
Breadcrumbs
lpython
/
tests
/
complex1.py
Copy path
File metadata and controls
25 lines (23 loc) · 500 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
def
test_complex
():
c
:
c32
c1
:
c32
c2
:
c32
c3
:
c64
b
:
bool
# constant real or int as args
c
=
complex
()
c
=
complex
(
3.4
)
c
=
complex
(
5.
,
4.3
)
c
=
complex
(
1
)
c1
=
complex
(
3
,
4
)
c2
=
complex
(
2
,
4.5
)
c3
=
complex
(
3.
,
4.
)
b
=
c1
!=
c2
b
=
c1
==
c3
# binary ops
c
=
c1
+
c2
c
=
c2
-
c1
c
=
c1
*
c2
c
=
complex
(
1
,
2
)
**
complex
(
3.34534
,
4.8678678
)
c
=
complex
(
1
,
2
)
*
complex
(
3
,
4
)
c
=
complex
(
4
,
5
)
-
complex
(
3
,
4
)
Back
|
FazBrowse Home
|
New Git URL