Skip to content

Commit 0e1bff1

Browse files
author
p12
committed
images: Add sin(), cos(), tan()
1 parent 08c1cd4 commit 0e1bff1

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

images/math.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,28 @@
7777
( 2.5, 2, 'F', 2.5, 3, 'T'),
7878
( 3.5, 3, 'F', 3.5, 4, 'T')
7979
)
80+
),
81+
( 'sin',
82+
( -6.3, 6.3, -1, 1),
83+
arange(-6.3, 6.3, 0.02),
84+
sin(arange(-6.3, 6.3, 0.02)),
85+
()
86+
),
87+
( 'cos',
88+
( -6.3, 6.3, -1, 1),
89+
arange(-6.3, 6.3, 0.02),
90+
cos(arange(-6.3, 6.3, 0.02)),
91+
()
92+
),
93+
( 'tan',
94+
( -6.3, 6.3, -4, 4),
95+
arange(-6.3, 6.3, 0.02),
96+
tan(arange(-6.3, 6.3, 0.02)),
97+
( ( -4.72, 100, 'F', -4.70, -100, 'F'),
98+
( -1.59, 100, 'F', -1.57, -100, 'F'),
99+
( 1.57, 100, 'F', 1.59, -100, 'F'),
100+
( 4.70, 100, 'F', 4.72, -100, 'F')
101+
)
80102
)
81103
)
82104

0 commit comments

Comments
 (0)