def test_Div(self): t = tl.Node(value=15) t2 = tl.Node(value=5) out = tl.Div(t, t2) assert out() == 3
def test_Arcsin(self): t = tl.Node(value=2) out = tl.Arcsin(tl.Div(t, 3)) assert out() == math.asin(2 / 3)
def test_Arccos(self): t = tl.Node(value=2) out = tl.Arccos(tl.Div(t, 3)) assert out() == math.acos(2 / 3)
def test_Div(self): t = tl.Node(value=(15, 1), use_dual=True) t2 = tl.Node(value=(5, 1), use_dual=True) out = tl.Div(t, t2) assert out() == (3, -10 / 25)