Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F60685195
test_math_helper.py
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Wed, May 1, 23:00
Size
447 B
Mime Type
text/x-python
Expires
Fri, May 3, 23:00 (2 d)
Engine
blob
Format
Raw Data
Handle
17396329
Attached To
R3683 Slides
test_math_helper.py
View Options
#!/bin/env python3
from
__future__
import
print_function
import
unittest
try
:
from
Slides
import
math_helper
as
mh
import
numpy
as
np
from
sympy
import
Matrix
except
:
pass
class
MathHelperTest
(
unittest
.
TestCase
):
"Unit tests for MathHelper"
def
setUp
(
self
,
):
pass
def
test_print_colored_matrix
(
self
):
a
=
Matrix
(
np
.
zeros
((
2
,
2
)))
a
=
mh
.
ColoredMatrix
(
a
)
mh
.
print_latex
(
'{0}'
,
a
)
Event Timeline
Log In to Comment